Updating branch refs/heads/master
         to 790cd28e036aec098aaee8cc03b101f0c436580d (commit)
       from 59d55f4852cdfaf811f51c97927defdb1e197d5b (commit)

commit 790cd28e036aec098aaee8cc03b101f0c436580d
Author: Nick Schermer <n...@xfce.org>
Date:   Sun Feb 17 12:08:21 2008 +0000

        * mousepad/mousepad-search-bar.c: Select the text in the search
          entry when focussing the search bar (Ctrl+F).
        * mousepad/mousepad-window.c: Set default keybindings of Find Next
          and Find Previous to F3 and Shft+F3.
    
    (Old svn revision: 26621)

 ChangeLog                      |    8 ++++++++
 mousepad/mousepad-search-bar.c |    3 +++
 mousepad/mousepad-window.c     |    4 ++--
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5ef3300..11f34d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-02-17     Nick Schermer <n...@xfce.org>
+
+       * mousepad/mousepad-search-bar.c: Select the text in the search
+         entry when focussing the search bar (Ctrl+F).
+       * mousepad/mousepad-window.c: Set default keybindings of Find Next
+         and Find Previous to F3 and Shft+F3.
+
+
 2008-01-15     Nick Schermer <n...@xfce.org>
 
        * configure.in.in, mousepad/Makefile.am: Remove gmodule from the
diff --git a/mousepad/mousepad-search-bar.c b/mousepad/mousepad-search-bar.c
index 803a5a2..1b8ee15 100644
--- a/mousepad/mousepad-search-bar.c
+++ b/mousepad/mousepad-search-bar.c
@@ -499,6 +499,9 @@ mousepad_search_bar_focus (MousepadSearchBar *bar)
 
   /* update the highlight */
   mousepad_search_bar_highlight_schedule (bar);
+  
+  /* select the entire entry */
+  gtk_editable_select_region (GTK_EDITABLE (bar->entry), 0, -1);
 }
 
 
diff --git a/mousepad/mousepad-window.c b/mousepad/mousepad-window.c
index 78ae43e..66ee859 100644
--- a/mousepad/mousepad-window.c
+++ b/mousepad/mousepad-window.c
@@ -415,8 +415,8 @@ static const GtkActionEntry action_entries[] =
     { "select-all", GTK_STOCK_SELECT_ALL, NULL, NULL, N_("Select the text in 
the entire document"), G_CALLBACK (mousepad_window_action_select_all), },
     { "change-selection", NULL, N_("Change the selection"), NULL, N_("Change a 
normal selection into a column selection and vice versa"), G_CALLBACK 
(mousepad_window_action_change_selection), },
     { "find", GTK_STOCK_FIND, NULL, NULL, N_("Search for text"), G_CALLBACK 
(mousepad_window_action_find), },
-    { "find-next", NULL, N_("Find _Next"), NULL, N_("Search forwards for the 
same text"), G_CALLBACK (mousepad_window_action_find_next), },
-    { "find-previous", NULL, N_("Find _Previous"), NULL, N_("Search backwards 
for the same text"), G_CALLBACK (mousepad_window_action_find_previous), },
+    { "find-next", NULL, N_("Find _Next"), "F3", N_("Search forwards for the 
same text"), G_CALLBACK (mousepad_window_action_find_next), },
+    { "find-previous", NULL, N_("Find _Previous"), "<shift>F3", N_("Search 
backwards for the same text"), G_CALLBACK 
(mousepad_window_action_find_previous), },
     { "replace", GTK_STOCK_FIND_AND_REPLACE, N_("Find and Rep_lace..."), NULL, 
N_("Search for and replace text"), G_CALLBACK (mousepad_window_action_replace), 
},
 
   { "view-menu", NULL, N_("_View"), NULL, NULL, NULL, },
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to