aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-messagebox.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-02 16:25:03 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-02 16:25:03 +0800
commit9c73777f2268b5bf2622f893e2a3ba7d0f720572 (patch)
treef81b79f19b87f84b4429d329b3fc0f9ff7946060 /widgets/misc/e-messagebox.c
parent236c15d106b4e740d4e3996e0649334ca8e13876 (diff)
downloadgsoc2013-evolution-9c73777f2268b5bf2622f893e2a3ba7d0f720572.tar.gz
gsoc2013-evolution-9c73777f2268b5bf2622f893e2a3ba7d0f720572.tar.zst
gsoc2013-evolution-9c73777f2268b5bf2622f893e2a3ba7d0f720572.zip
First big sync of my GNOME 2 porting work (incomplete, and still
pretty broken). Weeeeee! svn path=/trunk/; revision=18503
Diffstat (limited to 'widgets/misc/e-messagebox.c')
-rw-r--r--widgets/misc/e-messagebox.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/widgets/misc/e-messagebox.c b/widgets/misc/e-messagebox.c
index 711ea8d174..9607e2fa92 100644
--- a/widgets/misc/e-messagebox.c
+++ b/widgets/misc/e-messagebox.c
@@ -29,7 +29,6 @@
#include <gtk/gtkcheckbutton.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtklabel.h>
-#include <libgnome/gnome-defs.h>
#include <libgnome/gnome-i18n.h>
#include <libgnome/gnome-triggers.h>
#include <libgnome/gnome-util.h>
@@ -47,8 +46,8 @@ struct _EMessageBoxPrivate {
static void e_message_box_class_init (EMessageBoxClass *klass);
static void e_message_box_init (EMessageBox *messagebox);
+static void e_message_box_finalize (GObject *object);
static void e_message_box_destroy (GtkObject *object);
-static void e_message_box_finalize (GtkObject *object);
static GnomeDialogClass *parent_class;
@@ -77,13 +76,16 @@ e_message_box_get_type (void)
static void
e_message_box_class_init (EMessageBoxClass *klass)
{
+ GObjectClass *gobject_class;
GtkObjectClass *object_class;
- object_class = (GtkObjectClass *)klass;
+ gobject_class = (GObjectClass *) klass;
+ object_class = (GtkObjectClass *) klass;
parent_class = gtk_type_class (gnome_dialog_get_type ());
+ gobject_class->finalize = e_message_box_finalize;
+
object_class->destroy = e_message_box_destroy;
- object_class->finalize = e_message_box_finalize;
}
static void
@@ -93,23 +95,23 @@ e_message_box_init (EMessageBox *message_box)
}
static void
-e_message_box_destroy (GtkObject *object)
-{
- /* remember, destroy can be run multiple times! */
- if (GTK_OBJECT_CLASS (parent_class)->destroy)
- (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
-}
-
-static void
-e_message_box_finalize (GtkObject *object)
+e_message_box_finalize (GObject *object)
{
EMessageBox *mbox = E_MESSAGE_BOX (object);
g_free (mbox->_priv);
mbox->_priv = NULL;
- if (GTK_OBJECT_CLASS (parent_class)->finalize)
- (* GTK_OBJECT_CLASS (parent_class)->finalize) (object);
+ if (G_OBJECT_CLASS (parent_class)->finalize)
+ (* G_OBJECT_CLASS (parent_class)->finalize) (object);
+}
+
+static void
+e_message_box_destroy (GtkObject *object)
+{
+ /* remember, destroy can be run multiple times! */
+ if (GTK_OBJECT_CLASS (parent_class)->destroy)
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
/**
@@ -189,7 +191,7 @@ e_message_box_construct (EMessageBox *messagebox,
hbox, TRUE, TRUE, 10);
gtk_widget_show (hbox);
- if ((pixmap == NULL) || (GNOME_PIXMAP (pixmap)->pixmap == NULL)) {
+ if (pixmap == NULL) {
if (pixmap)
gtk_widget_destroy (pixmap);
s = gnome_unconditional_pixmap_file ("gnome-default.png");