aboutsummaryrefslogtreecommitdiffstats
path: root/executive-summary/component/e-summary-callbacks.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-01-24 07:42:54 +0800
committerIain Holmes <iain@src.gnome.org>2001-01-24 07:42:54 +0800
commit9d3fd8c92531b33d5974b790c092c06f914a6282 (patch)
treee07518050631c868d8ae7695f911c28298ec9976 /executive-summary/component/e-summary-callbacks.c
parente441180783a0d5af0664b991bd99906f5bd993f5 (diff)
downloadgsoc2013-evolution-9d3fd8c92531b33d5974b790c092c06f914a6282.tar
gsoc2013-evolution-9d3fd8c92531b33d5974b790c092c06f914a6282.tar.gz
gsoc2013-evolution-9d3fd8c92531b33d5974b790c092c06f914a6282.tar.bz2
gsoc2013-evolution-9d3fd8c92531b33d5974b790c092c06f914a6282.tar.lz
gsoc2013-evolution-9d3fd8c92531b33d5974b790c092c06f914a6282.tar.xz
gsoc2013-evolution-9d3fd8c92531b33d5974b790c092c06f914a6282.tar.zst
gsoc2013-evolution-9d3fd8c92531b33d5974b790c092c06f914a6282.zip
Lots of stuff like memory leaks and things I forgot ages ago...
Enjoy. svn path=/trunk/; revision=7763
Diffstat (limited to 'executive-summary/component/e-summary-callbacks.c')
-rw-r--r--executive-summary/component/e-summary-callbacks.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/executive-summary/component/e-summary-callbacks.c b/executive-summary/component/e-summary-callbacks.c
index 383fe47bc0..4d9929fc7e 100644
--- a/executive-summary/component/e-summary-callbacks.c
+++ b/executive-summary/component/e-summary-callbacks.c
@@ -217,6 +217,23 @@ html_page_changed_cb (GtkEntry *entry,
}
static void
+column_spinner_changed_cb (GtkEntry *entry,
+ PropertyData *data)
+{
+ ESummaryPrefs *prefs;
+ char *value;
+
+ prefs = data->esummary->tmp_prefs;
+
+ gnome_property_box_changed (data->box);
+ value = gtk_entry_get_text (entry);
+ if (value == NULL || *value == '\0')
+ return;
+
+ prefs->columns = atoi (value);
+}
+
+static void
apply_prefs_cb (GnomePropertyBox *property_box,
int page,
ESummary *esummary)
@@ -238,7 +255,8 @@ configure_summary (GtkWidget *widget,
static GtkWidget *prefs = NULL;
PropertyData *data;
GtkWidget *html_page;
- GtkWidget *vbox, *html;
+ GtkWidget *vbox, *html, *spinner;
+ char *tmp;
if (prefs != NULL) {
g_assert (GTK_WIDGET_REALIZED (prefs));
@@ -279,6 +297,14 @@ configure_summary (GtkWidget *widget,
"changed", GTK_SIGNAL_FUNC (html_page_changed_cb),
data);
+ spinner = glade_xml_get_widget (data->xml, "columnspinner");
+
+ tmp = g_strdup_printf ("%d", esummary->prefs->columns);
+ gtk_entry_set_text (GTK_ENTRY (spinner), tmp);
+ g_free (tmp);
+ gtk_signal_connect (GTK_OBJECT (spinner), "changed",
+ GTK_SIGNAL_FUNC (column_spinner_changed_cb), data);
+
gtk_signal_connect (GTK_OBJECT (prefs), "apply",
GTK_SIGNAL_FUNC (apply_prefs_cb), esummary);