[geany/geany] 9e7301: Fix initial back and forward items sensitivity

Colomban Wendling git-noreply at xxxxx
Thu Jul 26 00:02:15 UTC 2012


Branch:      refs/heads/document-messages
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 17 Dec 2011 23:32:22
Commit:      9e7301cdef67f71ce4716ad1bce771b2c266349c
             https://github.com/geany/geany/commit/9e7301cdef67f71ce4716ad1bce771b2c266349c

Log Message:
-----------
Fix initial back and forward items sensitivity

These actions were marked as document sensitive but their sensitivity
is already managed by the navqueue, so making them document sensitive
only leads to them being wrongly updated when the document count
changes from or to 0.

So, make them initially insensitive and let the navqueue correctly
handle their later sensitiveness.


Modified Paths:
--------------
    src/navqueue.c
    src/ui_utils.c

Modified: src/navqueue.c
3 files changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -57,6 +57,9 @@ void navqueue_init()
 
 	navigation_buttons[0] = toolbar_get_action_by_name("NavBack");
 	navigation_buttons[1] = toolbar_get_action_by_name("NavFor");
+
+	gtk_action_set_sensitive(navigation_buttons[0], FALSE);
+	gtk_action_set_sensitive(navigation_buttons[1], FALSE);
 }
 
 


Modified: src/ui_utils.c
2 files changed, 0 insertions(+), 2 deletions(-)
===================================================================
@@ -753,8 +753,6 @@ static void init_document_widgets(void)
 	add_doc_toolitem("CloseAll");
 	add_doc_toolitem("Search");
 	add_doc_toolitem("SearchEntry");
-	add_doc_toolitem("NavBack");
-	add_doc_toolitem("NavFor");
 	add_doc_toolitem("ZoomIn");
 	add_doc_toolitem("ZoomOut");
 	add_doc_toolitem("Indent");


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Commits mailing list