diff options
author | Manuel 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) |
commit | 17285f1faef2d10caaa65b1d269ed43ca62995bb (patch) | |
tree | 78eb6e3c4ff28d2a1085b76d38dbbab7d8a37521 /src/jarabe/journal/volumestoolbar.py | |
parent | 04381ce5c978f8cbfb5918585b5307b7755d0939 (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/volumestoolbar.py')
-rw-r--r-- | src/jarabe/journal/volumestoolbar.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jarabe/journal/volumestoolbar.py b/src/jarabe/journal/volumestoolbar.py index a592b21..1b86cb2 100644 --- a/src/jarabe/journal/volumestoolbar.py +++ b/src/jarabe/journal/volumestoolbar.py @@ -186,14 +186,14 @@ class VolumesToolbar(Gtk.Toolbar): GObject.idle_add(self._set_up_volumes) def __destroy_cb(self, widget): - volume_monitor = Gio.volume_monitor_get() + volume_monitor = Gio.VolumeMonitor.get() volume_monitor.disconnect(self._mount_added_hid) volume_monitor.disconnect(self._mount_removed_hid) def _set_up_volumes(self): self._set_up_documents_button() - volume_monitor = Gio.volume_monitor_get() + volume_monitor = Gio.VolumeMonitor.get() self._mount_added_hid = volume_monitor.connect('mount-added', self.__mount_added_cb) self._mount_removed_hid = volume_monitor.connect('mount-removed', @@ -292,7 +292,7 @@ class BaseButton(RadioToolButton): self.mount_point = mount_point self.drag_dest_set(Gtk.DestDefaults.ALL, - [('journal-object-id', 0, 0)], + [Gtk.TargetEntry.new('journal-object-id', 0, 0)], Gdk.DragAction.COPY) self.connect('drag-data-received', self._drag_data_received_cb) |