aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-tag-editor.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2002-12-06 03:58:38 +0800
committernobody <nobody@localhost>2002-12-06 03:58:38 +0800
commit5e87676c987f884d67fc921acbf8a95bc34851f1 (patch)
treedbf36038cda1070ffb9d92e023654b2bdf1451b4 /mail/message-tag-editor.c
parentcf5e09fda7bba7532d7be4b9949f7737a4a418cd (diff)
downloadgsoc2013-evolution-GNOME_UTILS_2_1_4.tar
gsoc2013-evolution-GNOME_UTILS_2_1_4.tar.gz
gsoc2013-evolution-GNOME_UTILS_2_1_4.tar.bz2
gsoc2013-evolution-GNOME_UTILS_2_1_4.tar.lz
gsoc2013-evolution-GNOME_UTILS_2_1_4.tar.xz
gsoc2013-evolution-GNOME_UTILS_2_1_4.tar.zst
gsoc2013-evolution-GNOME_UTILS_2_1_4.zip
This commit was manufactured by cvs2svn to create tagGNOME_UTILS_2_1_4
'GNOME_UTILS_2_1_4'. svn path=/tags/GNOME_UTILS_2_1_4/; revision=19026
Diffstat (limited to 'mail/message-tag-editor.c')
-rw-r--r--mail/message-tag-editor.c130
1 files changed, 0 insertions, 130 deletions
diff --git a/mail/message-tag-editor.c b/mail/message-tag-editor.c
deleted file mode 100644
index 5906111f4c..0000000000
--- a/mail/message-tag-editor.c
+++ /dev/null
@@ -1,130 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * Authors: Jeffrey Stedfast <fejj@ximian.com>
- *
- * Copyright 2002 Ximian, Inc. (www.ximian.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
- *
- */
-
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include "message-tag-editor.h"
-#include <gtk/gtkstock.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);
-
-static CamelTag *get_tag_list (MessageTagEditor *editor);
-static void set_tag_list (MessageTagEditor *editor, CamelTag *value);
-
-static GtkDialogClass *parent_class = NULL;
-
-GType
-message_tag_editor_get_type (void)
-{
- static GType type = 0;
-
- if (!type) {
- GTypeInfo type_info = {
- sizeof (MessageTagEditorClass),
- NULL,
- NULL,
- (GClassInitFunc) message_tag_editor_class_init,
- NULL,
- NULL,
- sizeof (MessageTagEditor),
- 0,
- (GInstanceInitFunc) message_tag_editor_init,
- };
-
- type = g_type_register_static(gtk_dialog_get_type (), "MessageTagEditor", &type_info, 0);
- }
-
- return type;
-}
-
-static void
-message_tag_editor_class_init (MessageTagEditorClass *klass)
-{
- GObjectClass *object_class;
-
- object_class = (GObjectClass *) klass;
- parent_class = g_type_class_ref(gtk_dialog_get_type ());
-
- object_class->finalize = message_tag_editor_finalise;
-
- klass->get_tag_list = get_tag_list;
- klass->set_tag_list = set_tag_list;
-}
-
-static void
-message_tag_editor_init (MessageTagEditor *editor)
-{
- g_object_set(editor, "allow_shrink", FALSE, "allow_grow", TRUE, NULL);
- gtk_dialog_add_buttons (GTK_DIALOG (editor),
- GTK_STOCK_OK,
- GTK_RESPONSE_OK,
- GTK_STOCK_CANCEL,
- GTK_RESPONSE_CANCEL,
- NULL);
-
- gtk_dialog_set_default_response (GTK_DIALOG (editor), GTK_RESPONSE_OK);
-}
-
-
-static void
-message_tag_editor_finalise (GObject *obj)
-{
- /* MessageTagEditor *editor = (MessageTagEditor *) obj;*/
-
- ((GObjectClass *)(parent_class))->finalize (obj);
-}
-
-static CamelTag *
-get_tag_list (MessageTagEditor *editor)
-{
- return NULL;
-}
-
-CamelTag *
-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);
-}
-
-
-static void
-set_tag_list (MessageTagEditor *editor, CamelTag *tags)
-{
- /* no-op */
- ;
-}
-
-void
-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);
-}