Author: nick Date: 2008-02-17 12:08:21 +0000 (Sun, 17 Feb 2008) New Revision: 26621
Modified: mousepad/branches/nick_0_3/ChangeLog mousepad/branches/nick_0_3/mousepad/mousepad-search-bar.c mousepad/branches/nick_0_3/mousepad/mousepad-window.c Log: * 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. Modified: mousepad/branches/nick_0_3/ChangeLog =================================================================== --- mousepad/branches/nick_0_3/ChangeLog 2008-02-17 11:06:57 UTC (rev 26620) +++ mousepad/branches/nick_0_3/ChangeLog 2008-02-17 12:08:21 UTC (rev 26621) @@ -1,3 +1,11 @@ +2008-02-17 Nick Schermer <[EMAIL PROTECTED]> + + * 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 <[EMAIL PROTECTED]> * configure.in.in, mousepad/Makefile.am: Remove gmodule from the Modified: mousepad/branches/nick_0_3/mousepad/mousepad-search-bar.c =================================================================== --- mousepad/branches/nick_0_3/mousepad/mousepad-search-bar.c 2008-02-17 11:06:57 UTC (rev 26620) +++ mousepad/branches/nick_0_3/mousepad/mousepad-search-bar.c 2008-02-17 12:08:21 UTC (rev 26621) @@ -499,6 +499,9 @@ /* update the highlight */ mousepad_search_bar_highlight_schedule (bar); + + /* select the entire entry */ + gtk_editable_select_region (GTK_EDITABLE (bar->entry), 0, -1); } Modified: mousepad/branches/nick_0_3/mousepad/mousepad-window.c =================================================================== --- mousepad/branches/nick_0_3/mousepad/mousepad-window.c 2008-02-17 11:06:57 UTC (rev 26620) +++ mousepad/branches/nick_0_3/mousepad/mousepad-window.c 2008-02-17 12:08:21 UTC (rev 26621) @@ -415,8 +415,8 @@ { "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 http://foo-projects.org/mailman/listinfo/xfce4-commits