/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* e-pilot-settings.c * * Copyright (C) 2001 JP Rosevear * * 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 Place - Suite 330, * Boston, MA 02111-1307, USA. * * Author: JP Rosevear */ #ifdef HAVE_CONFIG_H #include #endif #include #include "e-pilot-settings.h" struct _EPilotSettingsPrivate { GtkWidget *secret; GtkWidget *cat; GtkWidget *cat_btn; }; static void class_init (EPilotSettingsClass *klass); static void init (EPilotSettings *ps); static GtkObjectClass *parent_class = NULL; GtkType e_pilot_settings_get_type (void) { static GtkType type = 0; if (type == 0) { static const GtkTypeInfo info = { "EPilotSettings", sizeof (EPilotSettings), sizeof (EPilotSettingsClass), (GtkClassInitFunc) class_init, (GtkObjectInitFunc) init, /* reserved_1 */ NULL, /* reserved_2 */ NULL, (GtkClassInitFunc) NULL, }; type = gtk_type_unique (gtk_table_get_type (), &info); } return type; } static void class_init (EPilotSettingsClass *klass) { GtkObjectClass *object_class; object_class = GTK_OBJECT_CLASS (klass); parent_class = gtk_type_class (gtk_table_get_type ()); } static void init (EPilotSettings *ps) { EPilotSettingsPrivate *priv; GtkWidget *lbl; priv = g_new0 (EPilotSettingsPrivate, 1); ps->priv = priv; gtk_table_resize (GTK_TABLE (ps), 2, 2); gtk_container_set_border_width (GTK_CONTAINER (ps), 4); gtk_table_set_col_spacings (GTK_TABLE (ps), 4); lbl = gtk_label_new (_("Sync Private Records:")); gtk_misc_set_alignment (GTK_MISC (lbl), 0.0, 0.5); priv->secret = gtk_check_button_new (); gtk_table_attach_defaults (GTK_TABLE (ps), lbl, 0, 1, 0, 1); gtk_table_attach_defaults (GTK_TABLE (ps), priv->secret, 1, 2, 0, 1); gtk_widget_show (lbl); gtk_widget_show (priv->secret); #if 0 lbl = gtk_label_new (_("Sync Categories:")); gtk_misc_set_alignment (GTK_MISC (lbl), 0.0, 0.5); priv->cat = gtk_check_button_new (); gtk_table_attach_defaults (GTK_TABLE (ps), lbl, 0, 1, 1, 2); gtk_table_attach_defaults (GTK_TABLE (ps), priv->cat, 1, 2, 1, 2); gtk_widget_show (lbl); gtk_widget_show (priv->cat); #endif } GtkWidget * e_pilot_settings_new (void) { return gtk_type_new (E_TYPE_PILOT_SETTINGS); } gboolean e_pilot_settings_get_secret (EPilotSettings *ps) { EPilotSettingsPrivate *priv; g_return_val_if_fail (ps != NULL, FALSE); g_return_val_if_fail (E_IS_PILOT_SETTINGS (ps), FALSE); priv = ps->priv; return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->secret)); } void e_pilot_settings_set_secret (EPilotSettings *ps, gboolean secret) { EPilotSettingsPrivate *priv; g_return_if_fail (ps != NULL); g_return_if_fail (E_IS_PILOT_SETTINGS (ps)); priv = ps->priv; gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->secret), secret); } >Commit message (Expand)AuthorAgeFilesLines * Replace NEED_ROOT by USES=fakerootbapt2015-02-061-2/+2 * - adjust bugzilla revision to 4.4.7,ohauer2015-01-281-2/+2 * - adjust bugzilla revision to 4.4.7,ohauer2015-01-271-1/+2 * - Update to 2015.01.11sunpoet2015-01-132-3/+3 * Move MASTER_SITES from CRITICAL to LOCAL/ehauptehaupt2015-01-061-1/+1 * Move MASTER_SITES from CRITICAL to LOCAL/ehauptehaupt2015-01-061-1/+1 * - Update to 2015.01.04sunpoet2015-01-062-3/+3 * - Update *_DEPENDSsunpoet2015-01-031-3/+6 * - Update to 2014.12.21sunpoet2014-12-242-3/+3 * Cleanup plistbapt2014-12-213-3/+0 * - Update to 4.1sunpoet2014-12-212-3/+3 * Update to 4.3.5.jkim2014-12-191-4/+4 * - Update to 2014.12.07sunpoet2014-12-092-3/+3 * Update to 4.3.4.jkim2014-11-271-4/+4 * - Update to 4.0.1sunpoet2014-11-254-32/+15 * - Update to 2014.11.23sunpoet2014-11-252-3/+3 * Reset miwi's maintainership per his demandbapt2014-11-181-1/+1 * Update to 4.3.3.jkim2014-11-011-4/+4 * - support INSTALL_AS_USERdinoex2014-10-293-4/+16 * Cleanup plistbapt2014-10-208-109/+11 * - Convert ports from german/, java/, japanese/ and ports-mgmt/ to newmva2014-10-202-6/+4 * KDE/FreeBSD team presents KDE SC 4.14.2 and KDE Workspace 4.11.13!makc2014-10-193-309/+65 * Update to 4.3.2.jkim2014-10-172-5/+4 * Add missing dependencies and CPE data.des2014-10-151-1/+8 * - update to version 4.4.6ohauer2014-10-153-43/+3 * Update to 8lme2014-10-103-11/+10 * - Allow staging as a regular userantoine2014-10-092-13/+5 * - Update to 2014.10.05sunpoet2014-10-072-3/+3 * Update to 7lme2014-09-302-4/+3 * fix build with perl 5.18az2014-09-201-0/+7 * Allow staging as a regular userantoine2014-09-192-11/+5 * - Update to 2014.09.15sunpoet2014-09-182-3/+3 * devel/glib12 x11-toolkits/gtk12:tijl2014-09-131-1/+1 * Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-115-2/+5 * eric4 ports: update to version 4.5.24.bsam2014-09-101-2/+2 * Change MAINTAINER to bz-ports@ as discussed with bugzilla@ (now bz-ports@)flo2014-09-061-1/+1 * - Update to 2014.09.01sunpoet2014-09-042-3/+3 * Remove non staged ports without pending PR from g*bapt2014-09-024-71/+0 * - update to 4.4.5ohauer2014-08-312-5/+4 * - update to 1.74ohauer2014-08-311-2/+2 * Remove ports related to Adobe Reader.hrs2014-08-305-30/+0 * The port was identical to german/aspell, changed it to the right version.bapt2014-08-274-19/+15 * - Update to 2014.08.24sunpoet2014-08-272-3/+3 * - Update to 2014.08.17sunpoet2014-08-182-3/+3 * Upgrade OpenEXR and ilmbase to 2.2.0.mandree2014-08-162-1/+2 * 1: Stagify.vanilla2014-08-153-24/+27 * 1: Stagify.vanilla2014-08-142-4/+4 * - Update to 2014.08.10sunpoet2014-08-122-3/+3 * german/BBBike: Clear up build warnings caused by early shell commandmarino2014-08-121-1/+8 * Stage german/BBBikemarino2014-08-073-62/+30 * - Update to 2014.08.03sunpoet2014-08-052-3/+3 * Convert some more USE_BZIP2 to USES=tar:bzip2adamw2014-07-301-1/+1 * Rename german/ and graphics/ patch-xy patches to reflect the files they modify.adamw2014-07-291-0/+0 * - Update to 2014.07.27sunpoet2014-07-282-3/+3 * - better bugzilla revnum handlingohauer2014-07-281-4/+11 * Reset maintainership for ports not staged with no pending PRbapt2014-07-244-4/+4 * - Update to 2014.07.20sunpoet2014-07-212-3/+3 * - Use USES=tar:bzip2sunpoet2014-07-16