diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-03 13:46:37 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-03 13:46:37 +0300 |
commit | 2f63f4c40371faab338016c1c2287b1c1a1a484b (patch) | |
tree | f5f2b1ed737a47a4a876991e58b1c0b47810c768 | |
parent | 2f3c11ad389d6eff27de685993cc36df826e5f62 (diff) | |
download | metacity-2f63f4c40371faab338016c1c2287b1c1a1a484b.tar.gz |
frames: remove unneeded constructor
-rw-r--r-- | 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 644fa51d..ed84e6eb 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; |