SF.net SVN: geany: [367] trunk/src/dialogs.c

ntrel at users.sourceforge.net ntrel at xxxxx
Fri May 26 17:03:37 UTC 2006


Revision: 367
Author:   ntrel
Date:     2006-05-26 10:03:32 -0700 (Fri, 26 May 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=367&view=rev

Log Message:
-----------
Set Replace dialog default response

Modified Paths:
--------------
    trunk/src/dialogs.c
Modified: trunk/src/dialogs.c
===================================================================
--- trunk/src/dialogs.c	2006-05-26 15:51:32 UTC (rev 366)
+++ trunk/src/dialogs.c	2006-05-26 17:03:32 UTC (rev 367)
@@ -905,7 +905,7 @@
 		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);
 
-		button = gtk_button_new_with_mnemonic(_("_In selection"));
+		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);
@@ -919,6 +919,8 @@
 		gtk_widget_show(button);
 		gtk_dialog_add_action_widget(GTK_DIALOG(app->replace_dialog), button,
 			GEANY_RESPONSE_REPLACE);
+		gtk_dialog_set_default_response(GTK_DIALOG(app->replace_dialog),
+			GEANY_RESPONSE_REPLACE);
 
 		label_find = gtk_label_new(_("Enter the search text here"));
 		gtk_misc_set_padding(GTK_MISC(label_find), 0, 6);


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