SF.net SVN: geany: [366] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Fri May 26 15:51:39 UTC 2006
Revision: 366
Author: ntrel
Date: 2006-05-26 08:51:32 -0700 (Fri, 26 May 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=366&view=rev
Log Message:
-----------
Add mnemonics to Replace dialog buttons, reorder
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/dialogs.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-05-26 12:22:39 UTC (rev 365)
+++ trunk/ChangeLog 2006-05-26 15:51:32 UTC (rev 366)
@@ -3,6 +3,7 @@
* src/interface.c, src/callbacks.c, src/callbacks.h, geany.glade:
Fixed nasty hang when closing a tab and both the next tab and the
first tab files have been externally modified.
+ * src/dialogs.c: Add mnemonics to Replace dialog buttons, reorder.
2006-05-25 Nick Treleaven <nick.treleaven at btinternet.com>
Modified: trunk/src/dialogs.c
===================================================================
--- trunk/src/dialogs.c 2006-05-26 12:22:39 UTC (rev 365)
+++ trunk/src/dialogs.c 2006-05-26 15:51:32 UTC (rev 366)
@@ -857,7 +857,7 @@
gtk_widget_ref(checkbox4), (GDestroyNotify)gtk_widget_unref);
gtk_button_set_focus_on_click(GTK_BUTTON(checkbox4), FALSE);
- checkbox5 = gtk_check_button_new_with_mnemonic(_("Match only word _start"));
+ checkbox5 = gtk_check_button_new_with_mnemonic(_("Match only word s_tart"));
g_object_set_data_full(G_OBJECT(app->find_dialog), "check_wordstart",
gtk_widget_ref(checkbox5), (GDestroyNotify)gtk_widget_unref);
gtk_button_set_focus_on_click(GTK_BUTTON(checkbox5), FALSE);
@@ -897,15 +897,28 @@
if (app->replace_dialog == NULL)
{
- GtkWidget *label_find, *label_replace, *entry_find, *entry_replace, *checkbox1, *checkbox2, *checkbox3, *checkbox5, *checkbox4;
+ GtkWidget *label_find, *label_replace, *entry_find, *entry_replace;
+ GtkWidget *checkbox1, *checkbox2, *checkbox3, *checkbox5, *checkbox4;
+ GtkWidget *button;
GtkTooltips *tooltips = GTK_TOOLTIPS(lookup_widget(app->window, "tooltips"));
app->replace_dialog = gtk_dialog_new_with_buttons(_("Replace"), GTK_WINDOW(app->window),
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, NULL);
- gtk_dialog_add_button(GTK_DIALOG(app->replace_dialog), _("Replace"), GEANY_RESPONSE_REPLACE);
- gtk_dialog_add_button(GTK_DIALOG(app->replace_dialog), _("Replace All"), GEANY_RESPONSE_REPLACE_ALL);
- gtk_dialog_add_button(GTK_DIALOG(app->replace_dialog), _("Replace in selection"), GEANY_RESPONSE_REPLACE_SEL);
+ button = gtk_button_new_with_mnemonic(_("_In selection"));
+ gtk_tooltips_set_tip(tooltips, button,
+ _("Replace all matches found in the currently selected text"), NULL);
+ gtk_widget_show(button);
+ gtk_dialog_add_action_widget(GTK_DIALOG(app->replace_dialog), button,
+ GEANY_RESPONSE_REPLACE_SEL);
+ button = gtk_button_new_with_mnemonic(_("Replace _All"));
+ gtk_widget_show(button);
+ gtk_dialog_add_action_widget(GTK_DIALOG(app->replace_dialog), button,
+ GEANY_RESPONSE_REPLACE_ALL);
+ button = gtk_button_new_with_mnemonic(_("_Replace"));
+ gtk_widget_show(button);
+ gtk_dialog_add_action_widget(GTK_DIALOG(app->replace_dialog), button,
+ GEANY_RESPONSE_REPLACE);
label_find = gtk_label_new(_("Enter the search text here"));
gtk_misc_set_padding(GTK_MISC(label_find), 0, 6);
@@ -962,7 +975,7 @@
gtk_widget_ref(checkbox4), (GDestroyNotify)gtk_widget_unref);
gtk_button_set_focus_on_click(GTK_BUTTON(checkbox4), FALSE);
- checkbox5 = gtk_check_button_new_with_mnemonic(_("Match only word _start"));
+ checkbox5 = gtk_check_button_new_with_mnemonic(_("Match only word s_tart"));
g_object_set_data_full(G_OBJECT(app->replace_dialog), "check_wordstart",
gtk_widget_ref(checkbox5), (GDestroyNotify)gtk_widget_unref);
gtk_button_set_focus_on_click(GTK_BUTTON(checkbox5), FALSE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list