[gtk+/merge-places-sidebar: 189/195] Move GtkFileChooserWidgetPrivate to gtkfilechooserwidget.c



commit e2c979799434707902f7ae0642e453d733f40e34
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Apr 11 20:50:57 2013 -0500

    Move GtkFileChooserWidgetPrivate to gtkfilechooserwidget.c
    
    In addition, remove the unused "file_system" field from that
    structure.

 gtk/gtkfilechooserprivate.h |   10 ----------
 gtk/gtkfilechooserwidget.c  |   17 ++++-------------
 2 files changed, 4 insertions(+), 23 deletions(-)
---
diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h
index 61ad0c5..606c6cd 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 011fe6a..bce3097 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]