aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-editable-toolbar.c
diff options
context:
space:
mode:
authorJaap Haitsma <jaap@haitsma.org>2007-07-04 05:29:09 +0800
committerJaap A. Haitsma <jhaitsma@src.gnome.org>2007-07-04 05:29:09 +0800
commitb530495974abdc9e6b588bf958999d9188a6b0d8 (patch)
treeb67d8b7611c88c4ad546b6c3d86424d8079c7215 /lib/egg/egg-editable-toolbar.c
parentbb54e3c30ebc5a187fba5d0740d4138fdb6e1ab0 (diff)
downloadgsoc2013-epiphany-b530495974abdc9e6b588bf958999d9188a6b0d8.tar
gsoc2013-epiphany-b530495974abdc9e6b588bf958999d9188a6b0d8.tar.gz
gsoc2013-epiphany-b530495974abdc9e6b588bf958999d9188a6b0d8.tar.bz2
gsoc2013-epiphany-b530495974abdc9e6b588bf958999d9188a6b0d8.tar.lz
gsoc2013-epiphany-b530495974abdc9e6b588bf958999d9188a6b0d8.tar.xz
gsoc2013-epiphany-b530495974abdc9e6b588bf958999d9188a6b0d8.tar.zst
gsoc2013-epiphany-b530495974abdc9e6b588bf958999d9188a6b0d8.zip
removed added Rename to update-toolbareditor-from-libegg.sh Also updated
2007-07-03 Jaap Haitsma <jaap@haitsma.org> * lib/egg/update-toolbareditor-from-libegg: removed * lib/egg/update-toolbareditor-from-libegg.sh: added Rename to update-toolbareditor-from-libegg.sh Also updated the script such it updates itself * lib/egg/egg*: Sync with latest libegg toolbareditor svn path=/trunk/; revision=7115
Diffstat (limited to 'lib/egg/egg-editable-toolbar.c')
-rw-r--r--lib/egg/egg-editable-toolbar.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index 2b26b4eaa..4d15dff07 100644
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -48,8 +48,6 @@
#include <glib/gi18n.h>
#include <string.h>
-static void egg_editable_toolbar_class_init (EggEditableToolbarClass *klass);
-static void egg_editable_toolbar_init (EggEditableToolbar *etoolbar);
static GdkPixbuf * new_separator_pixbuf (void);
#define MIN_TOOLBAR_HEIGHT 20
@@ -78,8 +76,6 @@ enum
static guint egg_editable_toolbar_signals[LAST_SIGNAL] = { 0 };
-static GObjectClass *parent_class = NULL;
-
#define EGG_EDITABLE_TOOLBAR_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EGG_TYPE_EDITABLE_TOOLBAR, EggEditableToolbarPrivate))
struct _EggEditableToolbarPrivate
@@ -104,32 +100,7 @@ struct _EggEditableToolbarPrivate
GtkToolItem *dnd_toolitem;
};
-GType
-egg_editable_toolbar_get_type (void)
-{
- static GType type = 0;
-
- if (G_UNLIKELY (type == 0))
- {
- static const GTypeInfo our_info = {
- sizeof (EggEditableToolbarClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) egg_editable_toolbar_class_init,
- NULL,
- NULL, /* class_data */
- sizeof (EggEditableToolbar),
- 0, /* n_preallocs */
- (GInstanceInitFunc) egg_editable_toolbar_init
- };
-
- type = g_type_register_static (GTK_TYPE_VBOX,
- "EggEditableToolbar",
- &our_info, 0);
- }
-
- return type;
-}
+G_DEFINE_TYPE (EggEditableToolbar, egg_editable_toolbar, GTK_TYPE_VBOX);
static int
get_dock_position (EggEditableToolbar *etoolbar,
@@ -1412,7 +1383,7 @@ egg_editable_toolbar_dispose (GObject *object)
priv->model = NULL;
}
- G_OBJECT_CLASS (parent_class)->dispose (object);
+ G_OBJECT_CLASS (egg_editable_toolbar_parent_class)->dispose (object);
}
static void
@@ -1584,8 +1555,6 @@ egg_editable_toolbar_class_init (EggEditableToolbarClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- parent_class = g_type_class_peek_parent (klass);
-
object_class->dispose = egg_editable_toolbar_dispose;
object_class->set_property = egg_editable_toolbar_set_property;
object_class->get_property = egg_editable_toolbar_get_property;