Kaydet (Commit) 801d9f83 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix wrong initialisation of the default project path button callback in the preferences dialog.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3814 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst f2c7d3e2
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:
......
......@@ -1107,11 +1107,17 @@ void project_setup_prefs(void)
{
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));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment