From: Christian Dywan Date: Fri, 4 Jan 2008 05:08:42 +0000 (+0100) Subject: Previous/ next tab menu items should be disabled when not needed. X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc2bced1286d8d2adbb93dc4cea49cf8080dbef;p=midori Previous/ next tab menu items should be disabled when not needed. --- diff --git a/src/helpers.c b/src/helpers.c index 9fdaa5b0..ed0a5a27 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -401,6 +401,9 @@ void update_browser_actions(CBrowser* browser) gboolean active = gtk_notebook_get_n_pages(GTK_NOTEBOOK(browser->webViews)) > 1; gtk_notebook_set_show_tabs(GTK_NOTEBOOK(browser->webViews), active); action_set_sensitive("TabClose", active, browser); + action_set_sensitive("TabPrevious", active, browser); + action_set_sensitive("TabNext", active, browser); + gboolean tabtrashEmpty = xbel_folder_is_empty(tabtrash); action_set_sensitive("UndoTabClose", !tabtrashEmpty, browser); action_set_sensitive("TabsClosed", !tabtrashEmpty, browser);