Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/detailview.py
diff options
context:
space:
mode:
authorManuel QuiƱones <manuq@laptop.org>2012-09-06 10:39:27 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-09-07 09:14:26 (GMT)
commit17285f1faef2d10caaa65b1d269ed43ca62995bb (patch)
tree78eb6e3c4ff28d2a1085b76d38dbbab7d8a37521 /src/jarabe/journal/detailview.py
parent04381ce5c978f8cbfb5918585b5307b7755d0939 (diff)
Journal: initial port
- pack_start: we have to pass all arguments now with the dynamic bindings - Gtk.widget_get_default_direction() -> Gtk.Widget.get_default_direction() - window.window -> window.get_window() - ListModel: on_* -> do_* and fix up the arguments and return values Gtk.TREE_MODEL_ITERS_PERSIST, Gtk.TREE_MODEL_LIST_ONLY -> Gtk.TreeModelFlags.ITERS_PERSIST, Gtk.TreeModelFlags.LIST_ONLY - replace Pango.PIXELS(width) and use Pango.Layout get_pixel_size - Gtk.TreeViewColumn: get_cell_renderers -> get_cells - Gio.volume_monitor_get() -> Gio.VolumeMonitor.get() - Volume BaseButton: fixup drag_dest_set - Gtk.Alignment: pass all required arguments - Gio.content_type_guess: pass all required arguments as named parameters - MimeRegistry: fix issue introduced by the automatic conversion Signed-off-by: Manuel QuiƱones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'src/jarabe/journal/detailview.py')
-rw-r--r--src/jarabe/journal/detailview.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jarabe/journal/detailview.py b/src/jarabe/journal/detailview.py
index 31c2ef3..c7748ed 100644
--- a/src/jarabe/journal/detailview.py
+++ b/src/jarabe/journal/detailview.py
@@ -88,17 +88,17 @@ class BackBar(Gtk.EventBox):
hbox.set_border_width(style.DEFAULT_PADDING)
icon = Icon(icon_name='go-previous', icon_size=Gtk.IconSize.MENU,
fill_color=style.COLOR_TOOLBAR_GREY.get_svg())
- hbox.pack_start(icon, False, False)
+ hbox.pack_start(icon, False, False, 0)
label = Gtk.Label()
label.set_text(_('Back'))
halign = Gtk.Alignment.new(0, 0.5, 0, 1)
halign.add(label)
- hbox.pack_start(halign, True, True)
+ hbox.pack_start(halign, True, True, 0)
hbox.show()
self.add(hbox)
- if Gtk.widget_get_default_direction() == Gtk.TextDirection.RTL:
+ if Gtk.Widget.get_default_direction() == Gtk.TextDirection.RTL:
hbox.reverse()
self.connect('enter-notify-event', self.__enter_notify_event_cb)