Revision: 5472 http://geany.svn.sourceforge.net/geany/?rev=5472&view=rev Author: ntrel Date: 2010-12-07 13:25:11 +0000 (Tue, 07 Dec 2010)
Log Message: ----------- Disable 'Send Selection to Terminal' item when not available instead of removing it to avoid trailing separator.
Modified Paths: -------------- trunk/ChangeLog trunk/src/main.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-12-07 13:16:57 UTC (rev 5471) +++ trunk/ChangeLog 2010-12-07 13:25:11 UTC (rev 5472) @@ -7,6 +7,9 @@ * src/build.c, src/keyfile.c: Fix some more wrong uses of vte_info.load_vte instead of vte_info.have_vte. + * src/main.c: + Disable 'Send Selection to Terminal' item when not available + instead of removing it to avoid trailing separator.
2010-12-06 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/main.c =================================================================== --- trunk/src/main.c 2010-12-07 13:16:57 UTC (rev 5471) +++ trunk/src/main.c 2010-12-07 13:25:11 UTC (rev 5472) @@ -214,10 +214,11 @@
#ifdef HAVE_VTE if (! vte_info.have_vte) - gtk_widget_hide(ui_lookup_widget(main_widgets.window, "send_selection_to_vte1")); -#else - gtk_widget_hide(ui_lookup_widget(main_widgets.window, "send_selection_to_vte1")); #endif + { + gtk_widget_set_sensitive( + ui_lookup_widget(main_widgets.window, "send_selection_to_vte1"), FALSE); + }
if (interface_prefs.sidebar_pos != GTK_POS_LEFT) ui_swap_sidebar_pos();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.