Disable 'Send Selection to Terminal' item when not available

instead of removing it to avoid trailing separator.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5472 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-12-07 13:25:11 +00:00
parent 650b5ae84a
commit b595c0a3d8
2 changed files with 7 additions and 3 deletions

View File

@ -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>

View File

@ -214,10 +214,11 @@ static void apply_settings(void)
#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();