Set logo for info dialog via code
Set the logo for the info dialog via code instead of UI file to fix sizing issue.
This commit is contained in:
parent
faec824e8b
commit
f843cc629d
1 changed files with 5 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import gi
|
|||
gi.require_version('Gtk', '3.0')
|
||||
import logging
|
||||
|
||||
from gi.repository import Gtk, GObject, GdkPixbuf
|
||||
from gi.repository import Gtk, GdkPixbuf
|
||||
|
||||
|
||||
|
||||
|
|
@ -19,3 +19,6 @@ class InfoDialog(Gtk.AboutDialog):
|
|||
super().__init__()
|
||||
|
||||
self._logger = logging.getLogger(__name__)
|
||||
self.set_logo(
|
||||
GdkPixbuf.Pixbuf.new_from_resource("/xyz/suruatoel/mcg/icons/mcg.svg")
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue