SF.net SVN: geany:[5315] trunk/src/prefs.c

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Oct 21 16:19:07 UTC 2010


Revision: 5315
          http://geany.svn.sourceforge.net/geany/?rev=5315&view=rev
Author:   ntrel
Date:     2010-10-21 16:19:06 +0000 (Thu, 21 Oct 2010)

Log Message:
-----------
Rename confusing callback name for prefs dialog response.
Edit comment - use Stash for new 'simple' prefs.

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

Modified: trunk/src/prefs.c
===================================================================
--- trunk/src/prefs.c	2010-10-21 16:06:53 UTC (rev 5314)
+++ trunk/src/prefs.c	2010-10-21 16:19:06 UTC (rev 5315)
@@ -28,7 +28,7 @@
 
 /*
  * Preferences dialog support functions.
- * New prefs should use Stash code in keyfile.c - init_pref_groups().
+ * New 'simple' prefs should use Stash code in keyfile.c - init_pref_groups().
  */
 
 #include <stdlib.h>
@@ -324,7 +324,7 @@
 }
 
 
-/* note: new prefs should use Stash code in keyfile.c */
+/* note: new 'simple' prefs should use Stash code in keyfile.c */
 static void prefs_init_dialog(void)
 {
 	GtkWidget *widget;
@@ -744,9 +744,9 @@
 /*
  * callbacks
  */
-/* note: new prefs should use Stash code in keyfile.c */
+/* note: new 'simple' prefs should use Stash code in keyfile.c */
 static void
-on_prefs_button_clicked(GtkDialog *dialog, gint response, gpointer user_data)
+on_prefs_dialog_response(GtkDialog *dialog, gint response, gpointer user_data)
 {
 	if (response == GTK_RESPONSE_OK || response == GTK_RESPONSE_APPLY)
 	{
@@ -1670,7 +1670,7 @@
 			GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, GTK_ENTRY(ui_lookup_widget(ui_widgets.prefs_dialog, "extra_plugin_path_entry")));
 
 		g_signal_connect(ui_widgets.prefs_dialog, "response",
-			G_CALLBACK(on_prefs_button_clicked), NULL);
+			G_CALLBACK(on_prefs_dialog_response), NULL);
 		g_signal_connect(ui_widgets.prefs_dialog, "delete-event",
 			G_CALLBACK(gtk_widget_hide_on_delete), NULL);
 


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