SF.net SVN: geany: [682] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Aug 8 10:39:22 UTC 2006
Revision: 682
Author: ntrel
Date: 2006-08-08 03:39:18 -0700 (Tue, 08 Aug 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=682&view=rev
Log Message:
-----------
Fixed GTK 2.6 workaround for DnD tab reordering so it works on the first attempt
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/notebook.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-08-07 15:05:21 UTC (rev 681)
+++ trunk/ChangeLog 2006-08-08 10:39:18 UTC (rev 682)
@@ -1,3 +1,9 @@
+2006-08-08 Nick Treleaven <nick.treleaven at btinternet.com>
+
+ * src/notebook.c: Fixed GTK 2.6 workaround for DnD tab reordering so
+ it works on the first attempt.
+
+
2006-08-07 Enrico Tröger <enrico.troeger at uvena.de>
* src/callbacks.c: Applied patch from Củ Văn Chuối to re-enable
Modified: trunk/src/notebook.c
===================================================================
--- trunk/src/notebook.c 2006-08-07 15:05:21 UTC (rev 681)
+++ trunk/src/notebook.c 2006-08-08 10:39:18 UTC (rev 682)
@@ -250,9 +250,14 @@
g_signal_connect(G_OBJECT(but), "clicked",
G_CALLBACK(notebook_tab_close_clicked_cb), page);
// motion notify for GTK+2.6 (workaround child widgets don't pass on signal)
- // doesn't seem to work
- //g_signal_connect(G_OBJECT(this->tab_label), "motion-notify-event",
- //G_CALLBACK(notebook_motion_notify_event_cb), NULL);
+#if ! GTK_CHECK_VERSION(2, 8, 0)
+ if (gtk_check_version(2, 8, 0) != NULL) //null means version ok
+ {
+ gtk_widget_add_events(app->notebook, GDK_POINTER_MOTION_MASK);
+ g_signal_connect(G_OBJECT(app->notebook), "motion-notify-event",
+ G_CALLBACK(notebook_motion_notify_event_cb), NULL);
+ }
+#endif
return tabnum;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list