SF.net SVN: geany:[4431] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Nov 17 23:01:33 UTC 2009


Revision: 4431
          http://geany.svn.sourceforge.net/geany/?rev=4431&view=rev
Author:   eht16
Date:     2009-11-17 23:01:33 +0000 (Tue, 17 Nov 2009)

Log Message:
-----------
Use the default dialog title set by ui_setup_open_button_callback() to be more consistent and to save one string.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/prefs.c
    trunk/src/vte.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-11-17 22:56:46 UTC (rev 4430)
+++ trunk/ChangeLog	2009-11-17 23:01:33 UTC (rev 4431)
@@ -12,6 +12,9 @@
    Make use of ui_setup_open_button_callback().
  * src/printing.c:
    Improve printing status texts (patch by Dominic Hopf, thanks).
+ * src/prefs.c, src/vte.c:
+   Use the default dialog title set by ui_setup_open_button_callback()
+   to be more consistent and to save one string.
 
 
 2009-11-16  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/prefs.c
===================================================================
--- trunk/src/prefs.c	2009-11-17 22:56:46 UTC (rev 4430)
+++ trunk/src/prefs.c	2009-11-17 23:01:33 UTC (rev 4431)
@@ -1575,27 +1575,27 @@
 				"color-set", G_CALLBACK(on_color_button_choose_cb), NULL);
 		/* file chooser buttons in the tools tab */
 		ui_setup_open_button_callback(ui_lookup_widget(ui_widgets.prefs_dialog, "button_term"),
-			_("Open File"),
+			NULL,
 			GTK_FILE_CHOOSER_ACTION_OPEN,
 			GTK_ENTRY(ui_lookup_widget(ui_widgets.prefs_dialog, "entry_com_term")));
 		ui_setup_open_button_callback(ui_lookup_widget(ui_widgets.prefs_dialog, "button_browser"),
-			_("Open File"),
+			NULL,
 			GTK_FILE_CHOOSER_ACTION_OPEN,
 			GTK_ENTRY(ui_lookup_widget(ui_widgets.prefs_dialog, "entry_browser")));
 		ui_setup_open_button_callback(ui_lookup_widget(ui_widgets.prefs_dialog, "button_grep"),
-			_("Open File"),
+			NULL,
 			GTK_FILE_CHOOSER_ACTION_OPEN,
 			GTK_ENTRY(ui_lookup_widget(ui_widgets.prefs_dialog, "entry_grep")));
 
 		/* tools commands */
 		ui_setup_open_button_callback(ui_lookup_widget(ui_widgets.prefs_dialog, "button_contextaction"),
-			_("Open File"),
+			NULL,
 			GTK_FILE_CHOOSER_ACTION_OPEN,
 			GTK_ENTRY(ui_lookup_widget(ui_widgets.prefs_dialog, "entry_contextaction")));
 
 		/* printing */
 		ui_setup_open_button_callback(ui_lookup_widget(ui_widgets.prefs_dialog, "button_print_external_cmd"),
-			_("Open File"),
+			NULL,
 			GTK_FILE_CHOOSER_ACTION_OPEN,
 			GTK_ENTRY(ui_lookup_widget(ui_widgets.prefs_dialog, "entry_print_external_cmd")));
 

Modified: trunk/src/vte.c
===================================================================
--- trunk/src/vte.c	2009-11-17 22:56:46 UTC (rev 4430)
+++ trunk/src/vte.c	2009-11-17 23:01:33 UTC (rev 4431)
@@ -920,7 +920,7 @@
 															GINT_TO_POINTER(1));
 		g_signal_connect(color_back, "color-set", G_CALLBACK(on_color_button_choose_cb),
 															GINT_TO_POINTER(2));
-		ui_setup_open_button_callback(button_shell, _("Open File"),
+		ui_setup_open_button_callback(button_shell, NULL,
 			GTK_FILE_CHOOSER_ACTION_OPEN, GTK_ENTRY(entry_shell));
 	}
 }


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