2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation; either version 2 of the
5 * License, or (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * General Public License for more details.
12 * You should have received a copy of the GNU General Public
13 * License along with this program; if not, write to the
14 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
15 * Boston, MA 02110-1301 USA
17 * Authors: Travis Reitter <treitter@gmail.com>
24 #include <hildon/hildon.h>
26 #include "milk-main-window.h"
28 G_DEFINE_TYPE (MilkMainWindow, milk_main_window, HILDON_TYPE_WINDOW)
30 #define MILK_MAIN_WINDOW_PRIVATE(o) \
31 (G_TYPE_INSTANCE_GET_PRIVATE ((o), MILK_TYPE_MAIN_WINDOW, MilkMainWindowPrivate))
33 struct _MilkMainWindowPrivate
38 milk_main_window_get_property (GObject *object,
46 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
51 milk_main_window_set_property (GObject *object,
59 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
64 milk_main_window_dispose (GObject *object)
66 G_OBJECT_CLASS (milk_main_window_parent_class)->dispose (object);
70 milk_main_window_constructed (GObject* object)
72 MilkMainWindow *self = MILK_MAIN_WINDOW (object);
76 milk_main_window_class_init (MilkMainWindowClass *klass)
78 GObjectClass *object_class = G_OBJECT_CLASS (klass);
80 g_type_class_add_private (klass, sizeof (MilkMainWindowPrivate));
82 object_class->get_property = milk_main_window_get_property;
83 object_class->set_property = milk_main_window_set_property;
84 object_class->constructed = milk_main_window_constructed;
85 object_class->dispose = milk_main_window_dispose;
89 milk_main_window_init (MilkMainWindow *self)
91 self->priv = MILK_MAIN_WINDOW_PRIVATE (self);
95 milk_main_window_new ()
97 return g_object_new (MILK_TYPE_MAIN_WINDOW,