Trivial GTK3 porting fixes
Fix some trivial issues missed earlier: various missing imports, some minor API changes to adapt to, do_size_request simple porting, etc. Signed-off-by: Daniel Drake <dsd@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
This commit is contained in:
committed by
Simon Schampijer
parent
827ab7218a
commit
15946211cf
@@ -58,6 +58,7 @@ from functools import partial
|
||||
from gi.repository import GConf
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GdkPixbuf
|
||||
from gi.repository import GObject
|
||||
import dbus
|
||||
import dbus.service
|
||||
|
||||
@@ -20,6 +20,7 @@ import os
|
||||
|
||||
from gi.repository import Gio
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GObject
|
||||
from gi.repository import GConf
|
||||
|
||||
@@ -194,18 +195,18 @@ class NamingAlert(Gtk.Window):
|
||||
header = self._create_header()
|
||||
body.pack_start(header, False, False, style.DEFAULT_PADDING)
|
||||
|
||||
body.pack_start(self._create_separator(style.DEFAULT_SPACING, True, True, 0), False, False, 0)
|
||||
body.pack_start(self._create_separator(style.DEFAULT_SPACING), False, False, 0)
|
||||
|
||||
body.pack_start(self._create_label(_('Description:', True, True, 0)), False, False, 0)
|
||||
body.pack_start(self._create_label(_('Description:')), False, False, 0)
|
||||
|
||||
description = self._activity.metadata.get('description', '')
|
||||
description_box, self._description = self._create_text_view(description)
|
||||
body.pack_start(description_box, True, True, 0)
|
||||
|
||||
body.pack_start(self._create_separator(style.DEFAULT_PADDING, True, True, 0), False, False, 0)
|
||||
body.pack_start(self._create_separator(style.DEFAULT_PADDING), False, False, 0)
|
||||
|
||||
|
||||
body.pack_start(self._create_label(_('Tags:', True, True, 0)), False, False, 0)
|
||||
body.pack_start(self._create_label(_('Tags:')), False, False, 0)
|
||||
|
||||
tags = self._activity.metadata.get('tags', '')
|
||||
tags_box, self._tags = self._create_text_view(tags)
|
||||
|
||||
Reference in New Issue
Block a user