aboutsummaryrefslogtreecommitdiffstats
path: root/smime/gui/e-cert-selector.c
diff options
context:
space:
mode:
Diffstat (limited to 'smime/gui/e-cert-selector.c')
-rw-r--r--smime/gui/e-cert-selector.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/smime/gui/e-cert-selector.c b/smime/gui/e-cert-selector.c
index ac4c6e8785..881c4da76a 100644
--- a/smime/gui/e-cert-selector.c
+++ b/smime/gui/e-cert-selector.c
@@ -25,6 +25,8 @@
#include <libgnome/gnome-i18n.h>
+#include <gal/util/e-util.h>
+
#include <gtk/gtktextview.h>
#include <gtk/gtkoptionmenu.h>
#include <gtk/gtkmenuitem.h>
@@ -53,7 +55,7 @@ enum {
static guint ecs_signals[ECS_LAST_SIGNAL];
-G_DEFINE_TYPE (ECertSelector, e_cert_selector, GTK_TYPE_DIALOG)
+static GtkDialog *ecs_parent_class;
/* (this is what mozilla shows)
Issued to:
@@ -88,7 +90,7 @@ ecs_find_current(ECertSelector *ecs)
}
static void
-e_cert_selector_response(GtkDialog *dialog, gint button)
+ecs_response(GtkDialog *dialog, gint button)
{
CERTCertListNode *node;
@@ -213,7 +215,7 @@ e_cert_selector_new(int type, const char *currentid)
}
static void
-e_cert_selector_init(ECertSelector *ecs)
+ecs_init(ECertSelector *ecs)
{
gtk_dialog_add_buttons((GtkDialog *)ecs,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
@@ -223,7 +225,7 @@ e_cert_selector_init(ECertSelector *ecs)
}
static void
-e_cert_selector_finalise(GObject *o)
+ecs_finalise(GObject *o)
{
ECertSelector *ecs = (ECertSelector *)o;
@@ -232,14 +234,16 @@ e_cert_selector_finalise(GObject *o)
g_free(ecs->priv);
- ((GObjectClass *)e_cert_selector_parent_class)->finalize(o);
+ ((GObjectClass *)ecs_parent_class)->finalize(o);
}
static void
-e_cert_selector_class_init(ECertSelectorClass *klass)
+ecs_class_init(ECertSelectorClass *klass)
{
- ((GObjectClass *)klass)->finalize = e_cert_selector_finalise;
- ((GtkDialogClass *)klass)->response = e_cert_selector_response;
+ ecs_parent_class = g_type_class_ref(gtk_dialog_get_type());
+
+ ((GObjectClass *)klass)->finalize = ecs_finalise;
+ ((GtkDialogClass *)klass)->response = ecs_response;
ecs_signals[ECS_SELECTED] =
g_signal_new("selected",
@@ -250,3 +254,5 @@ e_cert_selector_class_init(ECertSelectorClass *klass)
g_cclosure_marshal_VOID__POINTER,
G_TYPE_NONE, 1, G_TYPE_POINTER);
}
+
+E_MAKE_TYPE(e_cert_selector, "ECertSelector", ECertSelector, ecs_class_init, ecs_init, gtk_dialog_get_type())