]> granicus.if.org Git - transmission/commitdiff
segfault when opening prefs dialog in gtk+ 3.8.0
authorJordan Lee <jordan@transmissionbt.com>
Wed, 10 Apr 2013 02:12:19 +0000 (02:12 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 10 Apr 2013 02:12:19 +0000 (02:12 +0000)
gtk/tr-prefs.c

index 92fdd2e0a02fec5129cb0bbf6faa42345d8ae1d7..159ccc123068b34bb691866f37a1abd489de6c5d 100644 (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;
 }