aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2004-02-28 04:33:47 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-02-28 04:33:47 +0800
commitb2f76fd89dcaaf9c4b4eb5654e0bebb15bd01a34 (patch)
treec9b66cbf5895ab47859a3a9cac9c91ead8b2b6f3 /mail
parent180e9032df85343ae81de583b99b90511b1cf507 (diff)
downloadgsoc2013-evolution-b2f76fd89dcaaf9c4b4eb5654e0bebb15bd01a34.tar.gz
gsoc2013-evolution-b2f76fd89dcaaf9c4b4eb5654e0bebb15bd01a34.tar.zst
gsoc2013-evolution-b2f76fd89dcaaf9c4b4eb5654e0bebb15bd01a34.zip
removed unused source files
svn path=/trunk/; revision=24912
Diffstat (limited to 'mail')
-rw-r--r--mail/mail-font-prefs.c130
-rw-r--r--mail/mail-font-prefs.h66
2 files changed, 0 insertions, 196 deletions
diff --git a/mail/mail-font-prefs.c b/mail/mail-font-prefs.c
deleted file mode 100644
index 0d26f1ccbd..0000000000
--- a/mail/mail-font-prefs.c
+++ /dev/null
@@ -1,130 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * Authors: Larry Ewing <lewing@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 <gtk/gtk.h>
-#include <gtkhtml/gtkhtml-propmanager.h>
-
-#include "mail-font-prefs.h"
-
-static GtkVBoxClass *parent_class = NULL;
-
-GtkWidget *
-mail_font_prefs_new (void)
-{
- MailFontPrefs *new;
-
- new = MAIL_FONT_PREFS (g_object_new (mail_font_prefs_get_type ()), NULL);
-
- return GTK_WIDGET (new);
-}
-
-void
-mail_font_prefs_apply (MailFontPrefs *prefs)
-{
- gtk_html_propmanager_apply (prefs->pman);
-}
-
-static void
-font_prefs_changed (GtkHTMLPropmanager *pman, MailFontPrefs *prefs)
-{
- if (prefs->control)
- evolution_config_control_changed (prefs->control);
-}
-
-static void
-mail_font_prefs_destroy (GtkObject *object)
-{
- MailFontPrefs *prefs = (MailFontPrefs *) object;
-
- if (prefs->pman) {
- g_object_unref(prefs->pman);
- g_object_unref(prefs->gui);
- prefs->pman = NULL;
- }
-
- if (GTK_OBJECT_CLASS (parent_class)->finalize)
- (* GTK_OBJECT_CLASS (parent_class)->finalize) (object);
-}
-
-static void
-mail_font_prefs_init (MailFontPrefs *prefs)
-{
- GtkWidget *toplevel;
- GladeXML *gui;
-
- gui = glade_xml_new (EVOLUTION_GLADEDIR "/mail-config.glade", "font_tab", NULL);
- prefs->gui = gui;
-
- prefs->pman = GTK_HTML_PROPMANAGER (gtk_html_propmanager_new (NULL));
- gtk_html_propmanager_set_gui (prefs->pman, gui, NULL);
- g_object_ref(prefs->pman);
- gtk_object_sink (GTK_OBJECT (prefs->pman));
-
- g_signal_connect(prefs->pman, "changed", font_prefs_changed, prefs);
-
- /* get our toplevel widget */
- toplevel = glade_xml_get_widget (gui, "toplevel");
-
- /* reparent */
- g_object_ref (toplevel);
- gtk_container_remove (GTK_CONTAINER (toplevel->parent), toplevel);
- gtk_container_add (GTK_CONTAINER (prefs), toplevel);
- g_object_unref (toplevel);
-}
-
-static void
-mail_font_prefs_class_init (MailFontPrefsClass *klass)
-{
- GtkObjectClass *object_class;
-
- object_class = (GtkObjectClass *) klass;
- parent_class = g_type_class_ref(gtk_vbox_get_type ());
-
- object_class->destroy = mail_font_prefs_destroy;
-}
-
-GtkType
-mail_font_prefs_get_type (void)
-{
- static GType type = 0;
-
- if (!type) {
- GTypeInfo type_info = {
- sizeof (MailFontPrefsClass),
- NULL, NULL,
- (GClassInitFunc) mail_font_prefs_class_init,
- NULL, NULL,
- sizeof (MailFontPrefs),
- 0,
- (GInstanceInitFunc) mail_font_prefs_init,
- };
-
- type = g_type_register_static (gtk_vbox_get_type (), "MailFontPrefs", &type_info, 0);
- }
-
- return type;
-}
-
-
diff --git a/mail/mail-font-prefs.h b/mail/mail-font-prefs.h
deleted file mode 100644
index 87266734a9..0000000000
--- a/mail/mail-font-prefs.h
+++ /dev/null
@@ -1,66 +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.
- *
- */
-#ifndef __MAIL_FONT_PREFS_H__
-#define __MAIL_FONT_PREFS_H__
-
-#ifdef __cplusplus
-extern "C" {
-#pragma }
-#endif
-
-#include <gtk/gtk.h>
-#include <gtkhtml/gtkhtml-propmanager.h>
-
-#include <shell/Evolution.h>
-#include "evolution-config-control.h"
-
-#define MAIL_FONT_PREFS_TYPE (mail_font_prefs_get_type())
-#define MAIL_FONT_PREFS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MAIL_FONT_PREFS_TYPE, MailFontPrefs))
-#define MAIL_FONT_PREFS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), MAIL_FONT_PREFS_TYPE, MailFontPrefsClass))
-#define IS_MAIL_FONT_PREFS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MAIL_FONT_PREFS_TYPE))
-#define IS_MAIL_FONT_PREFS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MAIL_FONT_PREFS_TYPE))
-
-typedef struct _MailFontPrefs MailFontPrefs;
-typedef struct _MailFontPrefsClass MailFontPrefsClass;
-
-struct _MailFontPrefs {
- GtkVBox parent_object;
-
- GtkHTMLPropmanager *pman;
- GladeXML *gui;
- EvolutionConfigControl *control;
-};
-
-struct _MailFontPrefsClass {
- GtkVBoxClass parent_object;
-};
-
-GtkType mail_font_prefs_get_type (void);
-GtkWidget * mail_font_prefs_new (void);
-void mail_font_prefs_apply (MailFontPrefs *prefs);
-
-#define MAIL_FONT_PREFS_CONTROL_ID "OAFIID:GNOME_Evolution_Mail_FontPrefs_ConfigControl:" BASE_VERSION
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-#endif /* __MAIL_FONT_PREFS_H__ */