[metacity] frames: remove unneeded constructor



commit 2f63f4c40371faab338016c1c2287b1c1a1a484b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Jun 3 13:46:37 2016 +0300

    frames: remove unneeded constructor

 src/ui/frames.c |   22 +---------------------
 1 files changed, 1 insertions(+), 21 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 644fa51..ed84e6e 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -98,26 +98,7 @@ static void invalidate_all_caches (MetaFrames *frames);
 static void invalidate_whole_window (MetaFrames *frames,
                                      MetaUIFrame *frame);
 
-G_DEFINE_TYPE (MetaFrames, meta_frames, GTK_TYPE_WINDOW);
-
-
-static GObject *
-meta_frames_constructor (GType                  gtype,
-                         guint                  n_properties,
-                         GObjectConstructParam *properties)
-{
-  GObject *object;
-  GObjectClass *gobject_class;
-
-  gobject_class = G_OBJECT_CLASS (meta_frames_parent_class);
-  object = gobject_class->constructor (gtype, n_properties, properties);
-
-  g_object_set (object,
-                "type", GTK_WINDOW_POPUP,
-                NULL);
-
-  return object;
-}
+G_DEFINE_TYPE (MetaFrames, meta_frames, GTK_TYPE_WINDOW)
 
 static void
 meta_frames_class_init (MetaFramesClass *class)
@@ -128,7 +109,6 @@ meta_frames_class_init (MetaFramesClass *class)
   gobject_class = G_OBJECT_CLASS (class);
   widget_class = (GtkWidgetClass*) class;
 
-  gobject_class->constructor = meta_frames_constructor;
   gobject_class->finalize = meta_frames_finalize;
 
   widget_class->destroy = meta_frames_destroy;


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