/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Authors: Larry Ewing * * 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 #endif #include #include #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; } on6/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Update to 9.4o.gj2005-02-016-4/+22
* Update to version 9.4l.gj2004-12-096-2/+28
* Update to version 9.4h.gj2004-07-272-2/+8
* Update to version 9.4f.gj2004-04-142-2/+8
* Update to version 9.4d.gj2004-02-182-2/+9
* Update to version 9.4c.gj2003-11-192-2/+6
* Update to version 9.4a.gj2003-10-096-1/+9
* Update to version 9.4.gj2003-10-092-47/+3
* Update to version 9.3u.gj2003-07-112-2/+6
* Update to version 9.3s.gj2003-06-276-2/+22
* Update to version 9.3o.gj2003-05-055-39/+10
* Update to version 9.3n.gj2003-04-032-2/+6
* Remove pkg-comment and add COMMENT to the Makefile.gj2003-03-062-1/+1
* Update to 9.3l.gj2003-03-046-2/+22
* Update to version 9.3j.gj2003-01-126-2/+40
* This port always needs perl to build it's documentation.edwin2002-11-051-1/+1
* Update to version 9.3f.gj2002-10-292-2/+4
* Update to version 9.3f.gj2002-10-266-2/+24
* Update to version 9.3d.gj2002-10-127-14/+12
* Add patch-file.c to fix an error in checking the return value fromgj2002-08-272-0/+12
* Change freeBSD to FreeBSD in my email address for correctness.gj2002-08-161-1/+1
* Update to version 9.3c.gj2002-08-146-3/+17
* Update to version 9.3b.gj2002-07-042-1/+7
* Update to version 9.3.gj2002-06-266-69/+7
* Update to patch level 9.2zd.gj2002-05-232-2/+4
* Update to patch 9.2zc. The new patches contain mostly fixes forgj2002-05-152-2/+6
* Update to patch level 9.2za. This is basically vile-9.3 pre-release.gj2002-05-092-2/+4
* Update to patch level z.gj2002-03-182-2/+4
* Update to patch level y.gj2002-02-202-2/+6
* Update to patch level w.gj2002-02-042-2/+4
* Update to patch level v.gj2002-01-292-2/+4
* Update to patch level u and bump PORTVERSION.gj2002-01-142-5/+12
* Update to patch level t and bump PORTVERSION.gj2002-01-082-2/+4
* Update to patch level s, bump PORTVERSION accordingly.gj2001-12-282-2/+4
* Update to patch level r.gj2001-12-19