Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-history.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2006-11-22 12:14:16 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2006-11-22 12:14:16 (GMT)
commitd7e6cc64dd485a4971b955285b025a52966c1ebc (patch)
tree7a87c10fe240b50801ed4b3c6ba83717cef0058b /shell/ev-history.c
parente447d2da0840ee8551f4371d33a20060068965cc (diff)
Do not call g_type_class_peek_parent twice.
2006-11-22 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-history.c: (ev_history_finalize), (ev_history_class_init): * shell/ev-navigation-action.c: (connect_proxy), (ev_navigation_action_finalize), (ev_navigation_action_class_init): Do not call g_type_class_peek_parent twice.
Diffstat (limited to 'shell/ev-history.c')
-rw-r--r--shell/ev-history.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/shell/ev-history.c b/shell/ev-history.c
index c316c84..d4aa822 100644
--- a/shell/ev-history.c
+++ b/shell/ev-history.c
@@ -37,8 +37,6 @@ enum {
static void ev_history_init (EvHistory *history);
static void ev_history_class_init (EvHistoryClass *class);
-static GObjectClass *parent_class = NULL;
-
G_DEFINE_TYPE (EvHistory, ev_history, G_TYPE_OBJECT)
#define EV_HISTORY_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_HISTORY, EvHistoryPrivate))
@@ -66,7 +64,7 @@ ev_history_finalize (GObject *object)
free_links_list (history->priv->links);
- parent_class->finalize (object);
+ G_OBJECT_CLASS (ev_history_parent_class)->finalize (object);
}
static void
@@ -118,8 +116,6 @@ ev_history_class_init (EvHistoryClass *class)
object_class->set_property = ev_history_set_property;
object_class->get_property = ev_history_get_property;
- parent_class = g_type_class_peek_parent (class);
-
g_object_class_install_property (object_class,
PROP_INDEX,
g_param_spec_int ("index",