/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Authors: JP Rosevear * * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #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 (_("F_all back to threading messages by subject")); /* 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; } /electron4/files/minimist-1.2.2'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Get Rid MD5 supportmiwi2011-03-201-6/+0
* Deprecate md5 in favour of sha256 checksums. md5 checksums will no longererwin2010-10-291-1/+1
* Switch MAINTAINER line to FreeBSD address.mandree2010-06-131-1/+1
* - Update MASTER_SITESrafan2006-11-081-0/+3
* - Distfiles are rerolled. Removed Java rpc_server and update some copyrights ...mnag2006-04-141-3/+3
* SHA256ifyedwin2006-01-221-0/+5
* - add two patches to fix bugs.leeym2005-04-191-0/+4