SF.net SVN: geany: [1534] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue May 15 13:02:24 UTC 2007


Revision: 1534
          http://svn.sourceforge.net/geany/?rev=1534&view=rev
Author:   eht16
Date:     2007-05-15 06:02:23 -0700 (Tue, 15 May 2007)

Log Message:
-----------
Hide notebooks tabs instead of sidebar when toggling additional widgets.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/doc/geany.docbook
    trunk/src/callbacks.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-05-15 12:35:21 UTC (rev 1533)
+++ trunk/ChangeLog	2007-05-15 13:02:23 UTC (rev 1534)
@@ -2,6 +2,9 @@
 
  * scintilla/ScintillaGTK.cxx:
    Fixed wrong clipboard target (closes #1711483).
+ * doc/geany.docbook, src/callbacks.c:
+   Hide notebooks tabs instead of sidebar when toggling additional
+   widgets.
 
 
 2007-05-14  Nick Treleaven  <nick.treleaven at btinternet.com>

Modified: trunk/doc/geany.docbook
===================================================================
--- trunk/doc/geany.docbook	2007-05-15 12:35:21 UTC (rev 1533)
+++ trunk/doc/geany.docbook	2007-05-15 13:02:23 UTC (rev 1534)
@@ -1616,8 +1616,8 @@
 							</row>
 							<row>
 								<entry>Toggle all additional widgets</entry>
-								<entry>Hide and show all additional widgets like the sidebar, the
-									   toolbar, the messages window and the statusbar.</entry>
+								<entry>Hide and show all additional widgets like the notebook tabs,
+									   the toolbar, the messages window and the statusbar.</entry>
 							</row>
 							<row>
 								<entry>Zoom In</entry>

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2007-05-15 12:35:21 UTC (rev 1533)
+++ trunk/src/callbacks.c	2007-05-15 13:02:23 UTC (rev 1534)
@@ -2176,7 +2176,7 @@
 	if (hide_all == -1)
 	{
 		if (! gtk_check_menu_item_get_active(msgw) &&
-			! app->sidebar_visible &&
+			! app->show_notebook_tabs &&
 			! gtk_check_menu_item_get_active(toolbari))
 		{
 			hide_all = TRUE;
@@ -2192,8 +2192,8 @@
 		if (gtk_check_menu_item_get_active(msgw))
 			gtk_check_menu_item_set_active(msgw, ! gtk_check_menu_item_get_active(msgw));
 
-		if (app->sidebar_visible)
-			on_menu_show_sidebar1_toggled(NULL, NULL);
+		app->show_notebook_tabs = FALSE;
+		gtk_notebook_set_show_tabs(GTK_NOTEBOOK(app->notebook), app->show_notebook_tabs);
 
 		ui_statusbar_showhide(FALSE);
 
@@ -2206,8 +2206,8 @@
 		if (! gtk_check_menu_item_get_active(msgw))
 			gtk_check_menu_item_set_active(msgw, ! gtk_check_menu_item_get_active(msgw));
 
-		if (! app->sidebar_visible)
-			on_menu_show_sidebar1_toggled(NULL, NULL);
+		app->show_notebook_tabs = TRUE;
+		gtk_notebook_set_show_tabs(GTK_NOTEBOOK(app->notebook), app->show_notebook_tabs);
 
 		ui_statusbar_showhide(TRUE);
 


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