Merge lp:~cando/gnome-activity-journal/drag_and_drop into lp:gnome-activity-journal
Proposed by
Stefano Candori
Status: | Merged |
---|---|
Merged at revision: | 1125 |
Proposed branch: | lp:~cando/gnome-activity-journal/drag_and_drop |
Merge into: | lp:gnome-activity-journal |
Diff against target: |
130 lines (+57/-5) 1 file modified
src/activity_widgets.py (+57/-5) |
To merge this branch: | bzr merge lp:~cando/gnome-activity-journal/drag_and_drop |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GNOME Zeitgeist Team | Pending | ||
Review via email: mp+40277@code.launchpad.net |
Description of the change
In this branch i've implemented the drag and drop for GAJ.
It works in all the three views.
This closes bug #553385.
To post a comment you must log in.
You Rock. :)
On Sun, Nov 7, 2010 at 3:27 PM, Cando <email address hidden> wrote:
> Cando has proposed merging lp:~cando/gnome-activity-journal/drag_and_drop /code.launchpad .net/~cando/ gnome-activity- journal/ drag_and_ drop/+merge/ 40277 widgets. py' widgets. py 2010-10-31 14:19:15 +0000 widgets. py 2010-11-07 14:27:48 +0000 connect( "button_ press_event" , self._show_ item_popup) connect( "realize" , self.realize_cb, evbox) multimedia_ tooltip( ) drag_source_ set( gtk.gdk. BUTTON1_ MASK, self.targets, ACTION_ COPY) connect( "drag_data_ get", self.on_ drag_data_ get) data_get( self, treeview, context, selection, target_id, obj.uri "file:/ /"): exists( uri[7:] ): set_uris( [uri]) set_cursor( gtk.gdk. Cursor( gtk.gdk. HAND2)) obj.launch( ) gtk.IconView) : events( gtk.gdk. LEAVE_NOTIFY_ MASK) "button- press-event" , self.on_ button_ press) "button- release- event", self.on_ button_ release) "motion- notify- event", self.on_ motion_ notify) "leave- notify- event", self.on_ leave_notify) selection_ mode(gtk. SELECTION_ NONE) selection_ mode(gtk. SELECTION_ SINGLE) column_ spacing( 6) row_spacing( 6) umn("Preview" ) connect( "search" , lambda *args: self.queue_draw()) connect( "clear" , lambda *args: self.queue_draw()) source_ set(gtk. gdk.BUTTON1_ MASK, self.targets, ACTION_ COPY) "drag_data_ get", self.on_ drag_data_ get) in_thread( self, items): Thread( targe.. .
> into lp:gnome-activity-journal.
>
> Requested reviews:
> GNOME Zeitgeist Team (gnome-zeitgeist)
>
>
> In this branch i've implemented the drag and drop for GAJ.
> It works in all the three views.
> This closes bug #553385.
> --
>
> https:/
> Your team GNOME Zeitgeist Team is requested to review the proposed merge of
> lp:~cando/gnome-activity-journal/drag_and_drop into
> lp:gnome-activity-journal.
>
> === modified file 'src/activity_
> --- src/activity_
> +++ src/activity_
> @@ -454,6 +454,19 @@
> self.btn.
> self.btn.
> self.init_
> +
> + self.targets = [("text/uri-list", 0, 0)]
> + self.btn.
> + gtk.gdk.
> + self.btn.
> +
> + def on_drag_
> etime):
> + uri = self.content_
> + #FIXME for the moment we handle only files
> + if uri.startswith(
> + uri = uri.replace("%20"," ")
> + if os.path.
> + selection.
>
> def realize_cb(self, widget, evbox):
> evbox.window.
> @@ -649,8 +662,7 @@
> pass
>
> def on_activate(self, event, widget, path, background_area, cell_area,
> flags):
> - self.content_
> - return True
> + pass
>
>
> class ThumbIconView(
> @@ -667,9 +679,10 @@
> self.popupmenu = ContextMenu
> self.add_
> self.connect(
> + self.connect(
> self.connect(
> self.connect(
> - self.set_
> + self.set_
> self.set_
> self.set_
> pcolumn = gtk.TreeViewCol
> @@ -680,6 +693,11 @@
> SearchBox.
> SearchBox.
>
> + self.targets = [("text/uri-list", 0, 0)]
> + self.drag_
> + gtk.gdk.
> + self.connect(
> +
> def _set_model_
> """
> A threaded which generates pixbufs and emblems for a list of
> events.
> @@ -714,6 +732,17 @@
> thread = threading.