SF.net SVN: geany: [683] trunk/src/notebook.c
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Aug 8 10:52:40 UTC 2006
Revision: 683
Author: ntrel
Date: 2006-08-08 03:52:36 -0700 (Tue, 08 Aug 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=683&view=rev
Log Message:
-----------
Move notebook motion event setup to notebook_init
Modified Paths:
--------------
trunk/src/notebook.c
Modified: trunk/src/notebook.c
===================================================================
--- trunk/src/notebook.c 2006-08-08 10:39:18 UTC (rev 682)
+++ trunk/src/notebook.c 2006-08-08 10:52:36 UTC (rev 683)
@@ -75,6 +75,7 @@
if (gtk_check_version(2, 8, 0) != NULL) //null means version ok
{
// workaround GTK+2.6 drag start bug when over sci widget:
+ gtk_widget_add_events(app->notebook, GDK_POINTER_MOTION_MASK);
g_signal_connect(G_OBJECT(notebook), "motion-notify-event",
G_CALLBACK(notebook_motion_notify_event_cb), NULL);
}
@@ -249,15 +250,6 @@
// signal for clicking the tab-close button
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)
-#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