SF.net SVN: geany:[3814] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Tue May 26 19:49:18 UTC 2009
Revision: 3814
http://geany.svn.sourceforge.net/geany/?rev=3814&view=rev
Author: eht16
Date: 2009-05-26 19:49:18 +0000 (Tue, 26 May 2009)
Log Message:
-----------
Fix wrong initialisation of the default project path button callback in the preferences dialog.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/project.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-05-26 19:27:23 UTC (rev 3813)
+++ trunk/ChangeLog 2009-05-26 19:49:18 UTC (rev 3814)
@@ -1,3 +1,12 @@
+2009-05-26 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/win32.c:
+ Use the wide character versions of native Windows File dialogs.
+ * src/project.c:
+ Fix wrong initialisation of the default project path button callback
+ in the preferences dialog.
+
+
2009-05-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/keybindings.c:
Modified: trunk/src/project.c
===================================================================
--- trunk/src/project.c 2009-05-26 19:27:23 UTC (rev 3813)
+++ trunk/src/project.c 2009-05-26 19:49:18 UTC (rev 3814)
@@ -1107,11 +1107,17 @@
{
GtkWidget *path_entry = ui_lookup_widget(ui_widgets.prefs_dialog, "project_file_path_entry");
GtkWidget *path_btn = ui_lookup_widget(ui_widgets.prefs_dialog, "project_file_path_button");
+ static gboolean callback_setup = FALSE;
g_return_if_fail(local_prefs.project_file_path != NULL);
+
gtk_entry_set_text(GTK_ENTRY(path_entry), local_prefs.project_file_path);
- ui_setup_open_button_callback(path_btn, NULL,
- GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, GTK_ENTRY(path_entry));
+ if (! callback_setup)
+ { /* connect the callback only once */
+ callback_setup = TRUE;
+ ui_setup_open_button_callback(path_btn, NULL,
+ GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, GTK_ENTRY(path_entry));
+ }
}
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