gtk+ r20194 - in trunk: . gtk
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20194 - in trunk: . gtk
- Date: Tue, 27 May 2008 20:33:23 +0000 (UTC)
Author: federico
Date: Tue May 27 20:33:23 2008
New Revision: 20194
URL: http://svn.gnome.org/viewvc/gtk+?rev=20194&view=rev
Log:
bgo533891 - disallow DnD from the file list into itself
2008-05-27 Federico Mena Quintero <federico novell com>
http://bugzilla.gnome.org/show_bug.cgi?id=533891 - Don't allow
drag and drop from the file list into itself, as it doesn't make
sense (it would just change the current folder).
* gtk/gtkfilechooserdefault.c (file_list_dest_targets): Use
GTK_TARGET_OTHER_WIDGET so we don't DnD from the file list into
itself.
Signed-off-by: Federico Mena Quintero <federico novell com>
Modified:
trunk/ChangeLog
trunk/gtk/gtkfilechooserdefault.c
Modified: trunk/gtk/gtkfilechooserdefault.c
==============================================================================
--- trunk/gtk/gtkfilechooserdefault.c (original)
+++ trunk/gtk/gtkfilechooserdefault.c Tue May 27 20:33:23 2008
@@ -258,7 +258,7 @@
/* Target types for dropping into the file list */
static const GtkTargetEntry file_list_dest_targets[] = {
- { "text/uri-list", 0, TEXT_URI_LIST }
+ { "text/uri-list", GTK_TARGET_OTHER_WIDGET, TEXT_URI_LIST }
};
static const int num_file_list_dest_targets = G_N_ELEMENTS (file_list_dest_targets);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]