svnno****@sourc*****
svnno****@sourc*****
Tue Apr 3 14:41:21 JST 2007
Revision: 3126 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3126 Author: ikezoe Date: 2007-04-03 14:41:21 +0900 (Tue, 03 Apr 2007) Log Message: ----------- * src/kz-notebook.c: Do not scroll if the event is emmited by child widget. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/kz-notebook.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-04-03 03:23:33 UTC (rev 3125) +++ kazehakase/trunk/ChangeLog 2007-04-03 05:41:21 UTC (rev 3126) @@ -4,6 +4,8 @@ * module/embed/gtk-webcore/kz-gtk-webcore.cpp: Show realm on authentication dialog. * module/embed/ie/Makefile.am: Set G_LOG_DOMAIN. + * src/kz-notebook.c: Do not scroll if the event is emmited by child + widget. 2007-04-02 Takuro Ashie <ashie****@homa*****> Modified: kazehakase/trunk/src/kz-notebook.c =================================================================== --- kazehakase/trunk/src/kz-notebook.c 2007-04-03 03:23:33 UTC (rev 3125) +++ kazehakase/trunk/src/kz-notebook.c 2007-04-03 05:41:21 UTC (rev 3126) @@ -217,6 +217,17 @@ static gboolean scroll_event (GtkWidget *widget, GdkEventScroll *event) { + GtkWidget* originator; + GtkWidget *current; + + current = gtk_notebook_get_nth_page(GTK_NOTEBOOK(widget), + gtk_notebook_get_current_page(GTK_NOTEBOOK(widget))); + originator = gtk_get_event_widget ((GdkEvent *)event); + + /* ignore scroll events from the content of the page */ + if (!originator || gtk_widget_is_ancestor (originator, current) || originator == current) + return FALSE; + return kz_notebook_scroll_tab(KZ_NOTEBOOK(widget), event->direction); }