+2004-12-21 Marco Pesenti Gritti <marco@gnome.org>
+
+ * Makefile.am:
+ * shell/Makefile.am:
+ * shell/ev-application.c: (ev_application_class_init):
+ * shell/ev-window.c: (ev_window_dispose), (ev_window_class_init):
+
+ Make it build again
+
2004-10-23 Martin Kretzschmar <martink@gnome.org>
* ChangeLog, ggv/ChangeLog, gpdf/ChangeLog: merge the separate
#include <gtk/gtkwidget.h>
#include <bonobo/bonobo-main.h>
-#include <ev-macros.h>
#include <ev-window.h>
struct _EvApplicationPrivate {
gtk_widget_destroy (GTK_WIDGET (chooser));
}
-static void
-ev_application_finalize (GObject *object)
-{
- g_return_if_fail (object != NULL && EV_IS_APPLICATION (object));
-
- EV_APPLICATION (object)->priv = NULL;
-
- EV_CALL_VIRTUAL (
- G_OBJECT_CLASS (ev_application_parent_class), finalize, (object));
-}
-
static void
ev_application_class_init (EvApplicationClass *ev_application_class)
{
GObjectClass *g_object_class;
g_object_class = G_OBJECT_CLASS (ev_application_class);
- g_object_class->finalize = ev_application_finalize;
g_type_class_add_private (g_object_class,
sizeof (EvApplicationPrivate));
#include <string.h>
-#include <ev-macros.h>
-#include <ev-stock-icons.h>
-
#include "ev-application.h"
enum {
static guint ev_window_signals [N_SIGNALS] = { 0 };
#endif
+static GObjectClass *parent_class = NULL;
+
G_DEFINE_TYPE (EvWindow, ev_window, GTK_TYPE_WINDOW)
#define EV_WINDOW_GET_PRIVATE(object) \
priv = EV_WINDOW (object)->priv;
- EV_UNREF (priv->ui_manager);
-
- EV_CALL_VIRTUAL (
- G_OBJECT_CLASS (ev_window_parent_class), dispose, (object));
-}
-
-static void
-ev_window_finalize (GObject *object)
-{
- g_return_if_fail (object != NULL && EV_IS_WINDOW (object));
+ g_object_unref (priv->ui_manager);
- EV_WINDOW (object)->priv = NULL;
-
- EV_CALL_VIRTUAL (
- G_OBJECT_CLASS (ev_window_parent_class), finalize, (object));
+ G_OBJECT_CLASS (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->finalize = ev_window_finalize;
g_type_class_add_private (g_object_class, sizeof (EvWindowPrivate));
G_CALLBACK (ev_window_cmd_file_close_window) },
/* Help menu */
- { "HelpAbout", STOCK_ABOUT, N_("_About"), NULL,
+ { "HelpAbout", NULL, N_("_About"), NULL,
N_("Display credits for the document viewer creators"),
G_CALLBACK (ev_window_cmd_help_about) },
};