aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/publish-calendar/url-editor-dialog.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-12-01 10:53:20 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-02-20 23:04:25 +0800
commit23f5773903d64a554d977ae7d0ebbaca73528f1f (patch)
tree104e1a59da8bf96b004bce204b79f47bbe0a6d13 /plugins/publish-calendar/url-editor-dialog.c
parent49bc4c2d765ee1780c23fdc9f42152850dabb220 (diff)
downloadgsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.gz
gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.zst
gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/publish-calendar/url-editor-dialog.c')
-rw-r--r--plugins/publish-calendar/url-editor-dialog.c35
1 files changed, 7 insertions, 28 deletions
diff --git a/plugins/publish-calendar/url-editor-dialog.c b/plugins/publish-calendar/url-editor-dialog.c
index 9467705040..db3dd28bdc 100644
--- a/plugins/publish-calendar/url-editor-dialog.c
+++ b/plugins/publish-calendar/url-editor-dialog.c
@@ -32,7 +32,10 @@
#include <e-util/e-util.h>
#include <e-util/e-util-private.h>
-static GtkDialogClass *parent_class = NULL;
+G_DEFINE_TYPE (
+ UrlEditorDialog,
+ url_editor_dialog,
+ GTK_TYPE_DIALOG)
static void
create_uri (UrlEditorDialog *dialog)
@@ -540,17 +543,15 @@ url_editor_dialog_dispose (GObject *obj)
dialog->builder = NULL;
}
- ((GObjectClass *)(parent_class))->dispose (obj);
+ G_OBJECT_CLASS (url_editor_dialog_parent_class)->dispose (obj);
}
static void
-url_editor_dialog_class_init (UrlEditorDialogClass *klass)
+url_editor_dialog_class_init (UrlEditorDialogClass *class)
{
GObjectClass *object_class;
- object_class = (GObjectClass *) klass;
- parent_class = g_type_class_ref (GTK_TYPE_DIALOG);
-
+ object_class = G_OBJECT_CLASS (class);
object_class->dispose = url_editor_dialog_dispose;
}
@@ -559,28 +560,6 @@ url_editor_dialog_init (UrlEditorDialog *dialog)
{
}
-GType
-url_editor_dialog_get_type (void)
-{
- static GType type = 0;
-
- if (!type) {
- static GTypeInfo info = {
- sizeof (UrlEditorDialogClass),
- NULL, NULL,
- (GClassInitFunc) url_editor_dialog_class_init,
- NULL, NULL,
- sizeof (UrlEditorDialog),
- 0,
- (GInstanceInitFunc) url_editor_dialog_init,
- };
-
- type = g_type_register_static (GTK_TYPE_DIALOG, "UrlEditorDialog", &info, 0);
- }
-
- return type;
-}
-
gboolean
url_editor_dialog_run (UrlEditorDialog *dialog)
{