Revision: 3008 http://geany.svn.sourceforge.net/geany/?rev=3008&view=rev Author: eht16 Date: 2008-09-26 16:49:36 +0000 (Fri, 26 Sep 2008)
Log Message: ----------- Remove can_focus flag from notebook widgets to avoid focused tab labels.
Modified Paths: -------------- trunk/ChangeLog trunk/geany.glade trunk/src/interface.c trunk/src/notebook.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-09-26 14:16:44 UTC (rev 3007) +++ trunk/ChangeLog 2008-09-26 16:49:36 UTC (rev 3008) @@ -1,3 +1,10 @@ +2008-09-26 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * geany.glade, src/interface.c, src/notebook.c: + Remove can_focus flag from notebook widgets to avoid focused tab + labels. + + 2008-09-26 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/editor.c:
Modified: trunk/geany.glade =================================================================== --- trunk/geany.glade 2008-09-26 14:16:44 UTC (rev 3007) +++ trunk/geany.glade 2008-09-26 16:49:36 UTC (rev 3008) @@ -2145,7 +2145,6 @@ <child> <widget class="GtkNotebook" id="notebook3"> <property name="visible">True</property> - <property name="can_focus">True</property> <property name="show_tabs">True</property> <property name="show_border">True</property> <property name="tab_pos">GTK_POS_TOP</property> @@ -2268,7 +2267,6 @@ <child> <widget class="GtkNotebook" id="notebook1"> <property name="visible">True</property> - <property name="can_focus">True</property> <property name="show_tabs">True</property> <property name="show_border">True</property> <property name="tab_pos">GTK_POS_TOP</property> @@ -2306,7 +2304,6 @@ <child> <widget class="GtkNotebook" id="notebook_info"> <property name="visible">True</property> - <property name="can_focus">True</property> <property name="show_tabs">True</property> <property name="show_border">True</property> <property name="tab_pos">GTK_POS_LEFT</property>
Modified: trunk/src/interface.c =================================================================== --- trunk/src/interface.c 2008-09-26 14:16:44 UTC (rev 3007) +++ trunk/src/interface.c 2008-09-26 16:49:36 UTC (rev 3008) @@ -1258,6 +1258,7 @@ notebook3 = gtk_notebook_new (); gtk_widget_show (notebook3); gtk_paned_pack1 (GTK_PANED (hpaned1), notebook3, FALSE, TRUE); + GTK_WIDGET_UNSET_FLAGS (notebook3, GTK_CAN_FOCUS); gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook3), TRUE);
scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL); @@ -1292,6 +1293,7 @@ notebook1 = gtk_notebook_new (); gtk_widget_show (notebook1); gtk_paned_pack2 (GTK_PANED (hpaned1), notebook1, TRUE, TRUE); + GTK_WIDGET_UNSET_FLAGS (notebook1, GTK_CAN_FOCUS); gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook1), TRUE); gtk_notebook_popup_enable (GTK_NOTEBOOK (notebook1));
@@ -1308,6 +1310,7 @@ notebook_info = gtk_notebook_new (); gtk_widget_show (notebook_info); gtk_container_add (GTK_CONTAINER (viewport1), notebook_info); + GTK_WIDGET_UNSET_FLAGS (notebook_info, GTK_CAN_FOCUS); gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook_info), GTK_POS_LEFT); gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook_info), TRUE);
Modified: trunk/src/notebook.c =================================================================== --- trunk/src/notebook.c 2008-09-26 14:16:44 UTC (rev 3007) +++ trunk/src/notebook.c 2008-09-26 16:49:36 UTC (rev 3008) @@ -458,6 +458,7 @@ g_signal_connect(ebox, "button-press-event", G_CALLBACK(notebook_tab_label_cb), page);
hbox = gtk_hbox_new(FALSE, 2); + GTK_WIDGET_UNSET_FLAGS(hbox, GTK_CAN_FOCUS); gtk_container_add(GTK_CONTAINER(ebox), fdoc->tab_label); gtk_box_pack_start(GTK_BOX(hbox), ebox, FALSE, FALSE, 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.