[gtk+/gtk-2-24] Ref/sink the GtkFileFilter used for GtkEntryCompletion; it's a GtkObject here
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] Ref/sink the GtkFileFilter used for GtkEntryCompletion; it's a GtkObject here
- Date: Thu, 10 Mar 2016 21:34:06 +0000 (UTC)
commit a99752239d6c6e3bf7ea0736048bbce7bb0aa228
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Mar 9 20:57:38 2016 -0600
Ref/sink the GtkFileFilter used for GtkEntryCompletion; it's a GtkObject here
gtk/gtkfilechooserentry.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index 05c8d88..142dc2b 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -645,6 +645,8 @@ refresh_current_folder_and_file_part (GtkFileChooserEntry *chooser_entry)
pattern = g_strconcat (chooser_entry->file_part, "*", NULL);
gtk_file_filter_add_pattern (filter, pattern);
+ g_object_ref_sink (filter);
+
_gtk_file_system_model_set_filter (GTK_FILE_SYSTEM_MODEL (chooser_entry->completion_store),
filter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]