1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00

segfault when opening prefs dialog in gtk+ 3.8.0

This commit is contained in:
Jordan Lee 2013-04-10 02:12:19 +00:00
parent 4e079b5f88
commit 0abb762ed5

View file

@ -239,11 +239,9 @@ new_path_chooser_button (const tr_quark key, gpointer core)
GtkWidget * w = gtk_file_chooser_button_new (NULL, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
const char * path = gtr_pref_string_get (key);
g_object_set_data (G_OBJECT (w), PREF_KEY, GINT_TO_POINTER(key));
g_signal_connect (w, "selection-changed", G_CALLBACK (chosen_cb), core);
if (path != NULL)
gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (w), path);
g_signal_connect (w, "selection-changed", G_CALLBACK (chosen_cb), core);
return w;
}