diff options
Diffstat (limited to 'plugins/subject-thread')
-rw-r--r-- | plugins/subject-thread/.cvsignore | 5 | ||||
-rw-r--r-- | plugins/subject-thread/ChangeLog | 22 | ||||
-rw-r--r-- | plugins/subject-thread/Makefile.am | 13 | ||||
-rw-r--r-- | plugins/subject-thread/org-gnome-subject-thread.eplug.in | 11 | ||||
-rw-r--r-- | plugins/subject-thread/subject-thread.c | 67 |
5 files changed, 0 insertions, 118 deletions
diff --git a/plugins/subject-thread/.cvsignore b/plugins/subject-thread/.cvsignore deleted file mode 100644 index 683d5ddbe2..0000000000 --- a/plugins/subject-thread/.cvsignore +++ /dev/null @@ -1,5 +0,0 @@ -.deps -.libs -Makefile -Makefile.in -*.eplug
\ No newline at end of file diff --git a/plugins/subject-thread/ChangeLog b/plugins/subject-thread/ChangeLog deleted file mode 100644 index 312559fc23..0000000000 --- a/plugins/subject-thread/ChangeLog +++ /dev/null @@ -1,22 +0,0 @@ -2005-02-07 JP Rosevear <jpr@novell.com> - - * org-gnome-subject-thread.eplug.in: specify id - -2004-11-01 JP Rosevear <jpr@novell.com> - - * Makefile.am: dist .eplug.in file - -2004-10-20 Not Zed <NotZed@Ximian.com> - - * Makefile.am (INCLUDES): removed camel from include path, - everything should include camel/foo. - -2004-10-20 JP Rosevear <jpr@novell.com> - - * subject-thread.c: implement - - * org-gnome-subject-thread.eplug.in: define the - subject-thread plugin - - * Makefile.am: build the subject thread plugin - diff --git a/plugins/subject-thread/Makefile.am b/plugins/subject-thread/Makefile.am deleted file mode 100644 index 2e692b41dc..0000000000 --- a/plugins/subject-thread/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -INCLUDES = \ - -I$(top_srcdir) \ - $(EVOLUTION_MAIL_CFLAGS) - -@EVO_PLUGIN_RULE@ - -plugin_DATA = org-gnome-subject-thread.eplug -plugin_LTLIBRARIES = liborg-gnome-subject-thread.la - -liborg_gnome_subject_thread_la_SOURCES = subject-thread.c -liborg_gnome_subject_thread_la_LDFLAGS = -module -avoid-version - -EXTRA_DIST = org-gnome-subject-thread.eplug.in
\ No newline at end of file diff --git a/plugins/subject-thread/org-gnome-subject-thread.eplug.in b/plugins/subject-thread/org-gnome-subject-thread.eplug.in deleted file mode 100644 index 984d154a0f..0000000000 --- a/plugins/subject-thread/org-gnome-subject-thread.eplug.in +++ /dev/null @@ -1,11 +0,0 @@ -<e-plugin-list> - <e-plugin id="org.gnome.evolution.mail_subject_thread" type="shlib" name="Subject Threading" description="Indicates if threading of messages should fall back to subject" - location="@PLUGINDIR@/liborg-gnome-subject-thread.so"> - - <hook class="org.gnome.evolution.mail.config:1.0"> - <group id="org.gnome.evolution.mail.prefs" target="prefs"> - <item type="item" path="00.general/10.display/80.subject_thread" label="Thread messages by subject" factory="org_gnome_subject_thread_factory"/> - </group> - </hook> - </e-plugin> -</e-plugin-list>
\ No newline at end of file diff --git a/plugins/subject-thread/subject-thread.c b/plugins/subject-thread/subject-thread.c deleted file mode 100644 index 870ba02f5b..0000000000 --- a/plugins/subject-thread/subject-thread.c +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * Authors: JP Rosevear <jpr@novell.com> - * - * Copyright 2004 Novell, Inc. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public - * License as published by the Free Software Foundation. - * - * 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 <string.h> -#include <glib.h> -#include <gtk/gtk.h> -#include <libgnome/gnome-i18n.h> -#include <gconf/gconf-client.h> -#include <e-util/e-config.h> -#include <mail/em-config.h> - -#define GCONF_KEY "/apps/evolution/mail/display/thread_subject" - -GtkWidget *org_gnome_subject_thread_factory (EPlugin *ep, EConfigHookItemFactoryData *hook_data); - -static void -toggled_cb (GtkWidget *widget, EConfig *config) -{ - EMConfigTargetPrefs *target = (EMConfigTargetPrefs *) config->target; - - /* Save the new setting to gconf */ - gconf_client_set_bool (target->gconf, GCONF_KEY, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)), NULL); -} - -GtkWidget * -org_gnome_subject_thread_factory (EPlugin *ep, EConfigHookItemFactoryData *hook_data) -{ - GtkWidget *check; - EMConfigTargetPrefs *target = (EMConfigTargetPrefs *) hook_data->config->target; - - /* Create the checkbox we will display, complete with mnemonic that is unique in the dialog */ - check = gtk_check_button_new_with_mnemonic (_("Fall back to threading messages by sub_ject")); - - /* Set the toggle button to the current gconf setting */ - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), gconf_client_get_bool (target->gconf, GCONF_KEY, NULL)); - - /* Listen for the item being toggled on and off */ - g_signal_connect (GTK_TOGGLE_BUTTON (check), "toggled", G_CALLBACK (toggled_cb), hook_data->config); - - /* Pack the checkbox in the parent widget and show it */ - gtk_box_pack_start (GTK_BOX (hook_data->parent), check, FALSE, FALSE, 0); - gtk_widget_show (check); - - return check; -} |