Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/expandedentry.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/expandedentry.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/expandedentry.py')
-rw-r--r--src/jarabe/journal/expandedentry.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/jarabe/journal/expandedentry.py b/src/jarabe/journal/expandedentry.py
index f3eb1a1..e200481 100644
--- a/src/jarabe/journal/expandedentry.py
+++ b/src/jarabe/journal/expandedentry.py
@@ -103,7 +103,7 @@ class ExpandedEntry(Gtk.EventBox):
self._date = self._create_date()
header.pack_start(self._date, False, False, style.DEFAULT_SPACING)
- if Gtk.widget_get_default_direction() == Gtk.TextDirection.RTL:
+ if Gtk.Widget.get_default_direction() == Gtk.TextDirection.RTL:
header.reverse()
# First body column
@@ -111,7 +111,7 @@ class ExpandedEntry(Gtk.EventBox):
first_column.pack_start(self._preview_box, False, True, 0)
self._technical_box = Gtk.VBox()
- first_column.pack_start(self._technical_box, True)
+ first_column.pack_start(self._technical_box, True, False, 0)
# Second body column
description_box, self._description = self._create_description()
@@ -123,7 +123,7 @@ class ExpandedEntry(Gtk.EventBox):
style.DEFAULT_SPACING)
self._buddy_list = Gtk.VBox()
- second_column.pack_start(self._buddy_list, True)
+ second_column.pack_start(self._buddy_list, True, False, 0)
self.show_all()
@@ -136,7 +136,7 @@ class ExpandedEntry(Gtk.EventBox):
self._icon = self._create_icon()
self._icon_box.foreach(self._icon_box.remove)
- self._icon_box.pack_start(self._icon, False, False)
+ self._icon_box.pack_start(self._icon, False, False, 0)
self._date.set_text(misc.get_date(metadata))
@@ -296,7 +296,7 @@ class ExpandedEntry(Gtk.EventBox):
if self._metadata.get('buddies'):
buddies = simplejson.loads(self._metadata['buddies']).values()
- vbox.pack_start(BuddyList(buddies, True, True, 0), False, False, 0)
+ vbox.pack_start(BuddyList(buddies), False, False, 0)
return vbox
else:
return vbox
@@ -317,7 +317,8 @@ class ExpandedEntry(Gtk.EventBox):
scrolled_window.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scrolled_window.set_border_width(style.LINE_WIDTH)
text_buffer = Gtk.TextBuffer()
- text_view = Gtk.TextView(text_buffer)
+ text_view = Gtk.TextView()
+ text_view.set_buffer(text_buffer)
text_view.set_left_margin(style.DEFAULT_PADDING)
text_view.set_wrap_mode(Gtk.WrapMode.WORD_CHAR)
scrolled_window.add_with_viewport(text_view)