Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-page-action.c
diff options
context:
space:
mode:
authorMartin Kretzschmar <martink@src.gnome.org>2005-01-28 13:17:22 (GMT)
committer Martin Kretzschmar <martink@src.gnome.org>2005-01-28 13:17:22 (GMT)
commit0a2a397faf5fe1fb1ac869b4db10b11ef07d1f3b (patch)
treee9792195047dcf7f1153be8ab3e48093596ca590 /shell/ev-page-action.c
parent3bac1037f7d4ac10756f78cf0763e64220d90685 (diff)
use G_DEFINE_TYPE-supplied ev_sidebar_thumbnails_parent_class variable,
* shell/ev-sidebar-thumbnails.c (ev_sidebar_thumbnails_destroy) (ev_sidebar_thumbnails_class_init): use G_DEFINE_TYPE-supplied ev_sidebar_thumbnails_parent_class variable, don't define another parent_class variable. * shell/ev-page-action.c (connect_proxy, ev_page_action_finalize) (ev_page_action_class_init): ditto. * pixbuf/pixbuf-document.c (pixbuf_document_finalize) (pixbuf_document_class_init): ditto. * backend/ev-link.c (ev_window_dispose, ev_link_class_init): ditto.
Diffstat (limited to 'shell/ev-page-action.c')
-rw-r--r--shell/ev-page-action.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c
index 29bae4e..9e32707 100644
--- a/shell/ev-page-action.c
+++ b/shell/ev-page-action.c
@@ -54,8 +54,6 @@ enum
static guint signals[LAST_SIGNAL] = { 0 };
-static GObjectClass *parent_class = NULL;
-
G_DEFINE_TYPE (EvPageAction, ev_page_action, GTK_TYPE_ACTION)
#define EV_PAGE_ACTION_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_PAGE_ACTION, EvPageActionPrivate))
@@ -158,7 +156,7 @@ connect_proxy (GtkAction *action, GtkWidget *proxy)
proxy, 0);
}
- GTK_ACTION_CLASS (parent_class)->connect_proxy (action, proxy);
+ GTK_ACTION_CLASS (ev_page_action_parent_class)->connect_proxy (action, proxy);
}
static void
@@ -170,7 +168,7 @@ ev_page_action_init (EvPageAction *action)
static void
ev_page_action_finalize (GObject *object)
{
- parent_class->finalize (object);
+ G_OBJECT_CLASS (ev_page_action_parent_class)->finalize (object);
}
static void
@@ -233,8 +231,6 @@ ev_page_action_class_init (EvPageActionClass *class)
object_class->set_property = ev_page_action_set_property;
object_class->get_property = ev_page_action_get_property;
- parent_class = g_type_class_peek_parent (class);
-
action_class->toolbar_item_type = GTK_TYPE_TOOL_ITEM;
action_class->create_tool_item = create_tool_item;
action_class->connect_proxy = connect_proxy;