diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index 61ad0c53d0..606c6cdbeb 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -102,16 +102,6 @@ gboolean _gtk_file_chooser_remove_shortcut_folder (GtkFileChooser *cho GError **error); GSList * _gtk_file_chooser_list_shortcut_folder_files (GtkFileChooser *chooser); -/* GtkFileChooserWidget private */ - -struct _GtkFileChooserWidgetPrivate -{ - GtkWidget *impl; - - char *file_system; -}; - - /* GtkFileChooserDefault private */ typedef enum { diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 011fe6a3a0..bce30977ba 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -45,11 +45,13 @@ * #GtkFileChooser. */ +struct _GtkFileChooserWidgetPrivate +{ + GtkWidget *impl; +}; #define GTK_FILE_CHOOSER_WIDGET_GET_PRIVATE(o) (GTK_FILE_CHOOSER_WIDGET (o)->priv) -static void gtk_file_chooser_widget_finalize (GObject *object); - static GObject* gtk_file_chooser_widget_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_params); @@ -76,7 +78,6 @@ gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class) gobject_class->constructor = gtk_file_chooser_widget_constructor; gobject_class->set_property = gtk_file_chooser_widget_set_property; gobject_class->get_property = gtk_file_chooser_widget_get_property; - gobject_class->finalize = gtk_file_chooser_widget_finalize; _gtk_file_chooser_install_properties (gobject_class); @@ -94,16 +95,6 @@ gtk_file_chooser_widget_init (GtkFileChooserWidget *chooser_widget) GTK_ORIENTATION_VERTICAL); } -static void -gtk_file_chooser_widget_finalize (GObject *object) -{ - GtkFileChooserWidget *chooser = GTK_FILE_CHOOSER_WIDGET (object); - - g_free (chooser->priv->file_system); - - G_OBJECT_CLASS (gtk_file_chooser_widget_parent_class)->finalize (object); -} - static GObject* gtk_file_chooser_widget_constructor (GType type, guint n_construct_properties,