gnumeric r17189 - in trunk: . src



Author: mortenw
Date: Thu Mar 12 13:30:02 2009
New Revision: 17189
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17189&view=rev

Log:
2009-03-12  Morten Welinder  <terra gnome org>

	* src/sheet-control-gui.c (scg_drag_data_get): Handle
	GNUMERIC_SHEET target too.  Fixes #574763, caused by patch from
	#523033.



Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/src/sheet-control-gui.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Thu Mar 12 13:30:02 2009
@@ -19,6 +19,7 @@
 	* Fix problem with dialogs not showing up in fullscreen mode.
 	[#574602]
 	* Fix desktop file to always specify that we take URIs.
+	* Fix sheet-ordering by dragging.  [#574763]
 
 --------------------------------------------------------------------------
 Gnumeric 1.9.4

Modified: trunk/src/sheet-control-gui.c
==============================================================================
--- trunk/src/sheet-control-gui.c	(original)
+++ trunk/src/sheet-control-gui.c	Thu Mar 12 13:30:02 2009
@@ -3603,7 +3603,10 @@
 	if (strcmp (target_name, "GNUMERIC_SAME_PROC") == 0)
 		/* Set dummy selection for process internal dnd */
 		gtk_selection_data_set (selection_data, selection_data->target,
-			8, (const guint8 *)"", 1);
+					8, (const guint8 *)"", 1);
+	else if (strcmp (target_name, "GNUMERIC_SHEET") == 0)
+		gtk_selection_data_set (selection_data, selection_data->target,
+					8, (void *)scg, sizeof (scg));
 	else if (strcmp (target_name, "application/x-gnumeric") == 0)
 		scg_drag_send_clipboard_objects (SHEET_CONTROL (scg),
 			selection_data, objects);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]