aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-tag-editor.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-12-14 02:52:35 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-12-14 02:52:35 +0800
commit25a94bfe0cc1b88fc2b50e52fad62ce8b3afd77a (patch)
treeed624b33c65495be7899ed211c3e6dbab717a846 /mail/message-tag-editor.c
parentd08474c3a598ce2d12ed7d912f69f1993f5a5897 (diff)
downloadgsoc2013-evolution-25a94bfe0cc1b88fc2b50e52fad62ce8b3afd77a.tar
gsoc2013-evolution-25a94bfe0cc1b88fc2b50e52fad62ce8b3afd77a.tar.gz
gsoc2013-evolution-25a94bfe0cc1b88fc2b50e52fad62ce8b3afd77a.tar.bz2
gsoc2013-evolution-25a94bfe0cc1b88fc2b50e52fad62ce8b3afd77a.tar.lz
gsoc2013-evolution-25a94bfe0cc1b88fc2b50e52fad62ce8b3afd77a.tar.xz
gsoc2013-evolution-25a94bfe0cc1b88fc2b50e52fad62ce8b3afd77a.tar.zst
gsoc2013-evolution-25a94bfe0cc1b88fc2b50e52fad62ce8b3afd77a.zip
Get rid of unneeded CamelObject casts. (user_message_response): Don't
2002-12-13 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c: Get rid of unneeded CamelObject casts. (user_message_response): Don't unref the dialog object after we've destroyed it. * mail-display.c (write_data_to_file): Don't unref the dialog object after we've destroyed it. * mail-callbacks.c: Same here. * component-factory.c: Here too. * message-tag-editor.c: Added MESSAGE_TAG_EDITOR_GET_CLASS macros. svn path=/trunk/; revision=19112
Diffstat (limited to 'mail/message-tag-editor.c')
-rw-r--r--mail/message-tag-editor.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mail/message-tag-editor.c b/mail/message-tag-editor.c
index 5906111f4c..b7d8ca8f86 100644
--- a/mail/message-tag-editor.c
+++ b/mail/message-tag-editor.c
@@ -25,9 +25,10 @@
#include <config.h>
#endif
-#include "message-tag-editor.h"
#include <gtk/gtkstock.h>
+#include "message-tag-editor.h"
+
static void message_tag_editor_class_init (MessageTagEditorClass *class);
static void message_tag_editor_init (MessageTagEditor *editor);
static void message_tag_editor_finalise (GObject *obj);
@@ -55,7 +56,7 @@ message_tag_editor_get_type (void)
(GInstanceInitFunc) message_tag_editor_init,
};
- type = g_type_register_static(gtk_dialog_get_type (), "MessageTagEditor", &type_info, 0);
+ type = g_type_register_static (gtk_dialog_get_type (), "MessageTagEditor", &type_info, 0);
}
return type;
@@ -64,10 +65,9 @@ message_tag_editor_get_type (void)
static void
message_tag_editor_class_init (MessageTagEditorClass *klass)
{
- GObjectClass *object_class;
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class = (GObjectClass *) klass;
- parent_class = g_type_class_ref(gtk_dialog_get_type ());
+ parent_class = g_type_class_ref (gtk_dialog_get_type ());
object_class->finalize = message_tag_editor_finalise;
@@ -78,7 +78,7 @@ message_tag_editor_class_init (MessageTagEditorClass *klass)
static void
message_tag_editor_init (MessageTagEditor *editor)
{
- g_object_set(editor, "allow_shrink", FALSE, "allow_grow", TRUE, NULL);
+ g_object_set (editor, "allow_shrink", FALSE, "allow_grow", TRUE, NULL);
gtk_dialog_add_buttons (GTK_DIALOG (editor),
GTK_STOCK_OK,
GTK_RESPONSE_OK,
@@ -93,9 +93,9 @@ message_tag_editor_init (MessageTagEditor *editor)
static void
message_tag_editor_finalise (GObject *obj)
{
- /* MessageTagEditor *editor = (MessageTagEditor *) obj;*/
+ /*MessageTagEditor *editor = (MessageTagEditor *) obj;*/
- ((GObjectClass *)(parent_class))->finalize (obj);
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static CamelTag *
@@ -109,7 +109,7 @@ message_tag_editor_get_tag_list (MessageTagEditor *editor)
{
g_return_val_if_fail (IS_MESSAGE_TAG_EDITOR (editor), NULL);
- return ((MessageTagEditorClass *)(G_OBJECT_GET_CLASS(editor)))->get_tag_list (editor);
+ return MESSAGE_TAG_EDITOR_GET_CLASS (editor)->get_tag_list (editor);
}
@@ -126,5 +126,5 @@ message_tag_editor_set_tag_list (MessageTagEditor *editor, CamelTag *tags)
g_return_if_fail (IS_MESSAGE_TAG_EDITOR (editor));
g_return_if_fail (tags != NULL);
- ((MessageTagEditorClass *)(G_OBJECT_GET_CLASS(editor)))->set_tag_list (editor, tags);
+ MESSAGE_TAG_EDITOR_GET_CLASS (editor)->set_tag_list (editor, tags);
}