2005-01-28 Martin Kretzschmar <martink@gnome.org>
+ * 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.
+
* .cvsignore: ignore various valgrind output files.
2005-01-27 Marco Pesenti Gritti <marco@gnome.org>
int page;
};
-static GObjectClass *parent_class = NULL;
-
G_DEFINE_TYPE (EvLink, ev_link, G_TYPE_OBJECT)
#define EV_LINK_GET_PRIVATE(object) \
priv->title = NULL;
}
- G_OBJECT_CLASS (parent_class)->dispose (object);
+ G_OBJECT_CLASS (ev_link_parent_class)->dispose (object);
}
static void
{
GObjectClass *g_object_class;
- parent_class = g_type_class_peek_parent (ev_window_class);
-
g_object_class = G_OBJECT_CLASS (ev_window_class);
g_object_class->dispose = ev_window_dispose;
g_object_class->set_property = ev_link_set_property;
pixbuf_document_document_thumbnails_iface_init)
});
-static GObjectClass *parent_class;
-
static gboolean
pixbuf_document_load (EvDocument *document,
const char *uri,
g_object_unref (pixbuf_document->pixbuf);
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (pixbuf_document_parent_class)->finalize (object);
}
static void
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->finalize = pixbuf_document_finalize;
gobject_class->get_property = pixbuf_document_get_property;
gobject_class->set_property = pixbuf_document_set_property;
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))
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
static void
ev_page_action_finalize (GObject *object)
{
- parent_class->finalize (object);
+ G_OBJECT_CLASS (ev_page_action_parent_class)->finalize (object);
}
static void
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;
NUM_COLUMNS
};
-static GtkVBoxClass *parent_class;
-
G_DEFINE_TYPE (EvSidebarThumbnails, ev_sidebar_thumbnails, GTK_TYPE_VBOX);
#define EV_SIDEBAR_THUMBNAILS_GET_PRIVATE(object) \
priv->idle_id = 0;
}
- GTK_OBJECT_CLASS (parent_class)->destroy (object);
+ GTK_OBJECT_CLASS (ev_sidebar_thumbnails_parent_class)->destroy (object);
}
static void
g_object_class = G_OBJECT_CLASS (ev_sidebar_thumbnails_class);
gtk_object_class = GTK_OBJECT_CLASS (ev_sidebar_thumbnails_class);
- parent_class = g_type_class_peek_parent (ev_sidebar_thumbnails_class);
-
gtk_object_class->destroy = ev_sidebar_thumbnails_destroy;
g_type_class_add_private (g_object_class, sizeof (EvSidebarThumbnailsPrivate));