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:
coderkun 2021-04-18 16:50:43 +02:00
commit f843cc629d

View file

@ -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")
)