diff options
author | Volker Sobek <reklov@live.com> | 2014-04-19 21:01:23 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2014-09-14 15:53:29 -0700 |
commit | fc2daed9a9a36228870843bce2e708d61173c951 (patch) | |
tree | d63f258fdb5e52dfd1fbb09f6eefe2a6fe67bb00 | |
parent | f0f417e93ebff2858cb6b8184668ef34d899682c (diff) | |
download | nautilus-fc2daed9a9a36228870843bce2e708d61173c951.tar.gz |
Fix crash when changing icon captions settings
Don't SIGSEGV when changing any of the three combo boxes in the
preferences' Display tab. This issue existed since commit d8a8ab3.
https://bugzilla.gnome.org/show_bug.cgi?id=728503
-rw-r--r-- | src/nautilus-file-management-properties.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nautilus-file-management-properties.c b/src/nautilus-file-management-properties.c index c8bd964ee..33f454649 100644 --- a/src/nautilus-file-management-properties.c +++ b/src/nautilus-file-management-properties.c @@ -358,9 +358,11 @@ nautilus_file_management_properties_dialog_setup_icon_caption_page (GtkBuilder * create_icon_caption_combo_box_items (GTK_COMBO_BOX_TEXT (combo_box), columns); gtk_widget_set_sensitive (combo_box, writable); - g_signal_connect (combo_box, "changed", - G_CALLBACK (icon_captions_changed_callback), - builder); + g_signal_connect_data (combo_box, "changed", + G_CALLBACK (icon_captions_changed_callback), + g_object_ref (builder), + (GClosureNotify)g_object_unref, + 0); } nautilus_column_list_free (columns); |