Revision: 1112 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1112&view=re... Author: frlan Date: 2010-01-04 15:35:49 +0000 (Mon, 04 Jan 2010)
Log Message: ----------- GeanyLaTeX: Keep wizard icon inside toolbar active also in case of no document is open
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2010-01-04 14:39:34 UTC (rev 1111) +++ trunk/geanylatex/src/geanylatex.c 2010-01-04 15:35:49 UTC (rev 1112) @@ -127,7 +127,13 @@ toolbar = gtk_ui_manager_get_widget(uim, "/ui/glatex_format_toolbar"); gtk_box_pack_start(GTK_BOX(box), GTK_WIDGET(toolbar), FALSE, TRUE, 0); gtk_box_reorder_child(GTK_BOX(box), toolbar, 2); - ui_add_document_sensitive(toolbar); + ui_add_document_sensitive(gtk_ui_manager_get_widget(uim, "/ui/glatex_format_toolbar/Bold")); + ui_add_document_sensitive(gtk_ui_manager_get_widget(uim, "/ui/glatex_format_toolbar/Underline")); + ui_add_document_sensitive(gtk_ui_manager_get_widget(uim, "/ui/glatex_format_toolbar/Centered")); + ui_add_document_sensitive(gtk_ui_manager_get_widget(uim, "/ui/glatex_format_toolbar/Italic")); + ui_add_document_sensitive(gtk_ui_manager_get_widget(uim, "/ui/glatex_format_toolbar/Left")); + ui_add_document_sensitive(gtk_ui_manager_get_widget(uim, "/ui/glatex_format_toolbar/Right")); + /*ui_add_document_sensitive(toolbar);*/ } /* TODO maybe more error handling */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org