Kaydet (Commit) 58af613d authored tarafından Nick Treleaven's avatar Nick Treleaven

Fixed GTK 2.6 workaround for DnD tab reordering so it works on the first attempt

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@682 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 3df2f233
2006-08-08 Nick Treleaven <nick.treleaven@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@uvena.de>
* src/callbacks.c: Applied patch from Củ Văn Chuối to re-enable
......
......@@ -250,9 +250,14 @@ gint notebook_new_tab(gint doc_idx, gchar *title, GtkWidget *page)
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment