aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2001-02-06 06:28:58 +0800
committerChris Lahey <clahey@src.gnome.org>2001-02-06 06:28:58 +0800
commit86dab2c4faa4184a7ced66d4c2343fb32847e2fd (patch)
tree71795adbf446f8e7572b4d74c454b9ac4ecd4148
parentad2c9c52406901a7b21bffdab4c674f049e0b778 (diff)
downloadgsoc2013-evolution-86dab2c4faa4184a7ced66d4c2343fb32847e2fd.tar.gz
gsoc2013-evolution-86dab2c4faa4184a7ced66d4c2343fb32847e2fd.tar.zst
gsoc2013-evolution-86dab2c4faa4184a7ced66d4c2343fb32847e2fd.zip
Save the help_text in the closure.
2001-02-05 Christopher James Lahey <clahey@helixcode.com> * gui/component/addressbook-config.c (table_add_elem): Save the help_text in the closure. svn path=/trunk/; revision=7998
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/component/addressbook-config.c12
2 files changed, 17 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 9999ef6d31..7c16d1c666 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2001-02-05 Christopher James Lahey <clahey@helixcode.com>
+ * gui/component/addressbook-config.c (table_add_elem): Save the
+ help_text in the closure.
+
+2001-02-05 Christopher James Lahey <clahey@helixcode.com>
+
* gui/widgets/Makefile.am (libeminicard_a_SOURCES): Added
gal-view-factory-minicard.c, gal-view-factory-minicard.h,
gal-view-minicard.c, and gal-view-minicard.h.
@@ -13,6 +18,8 @@
* gui/widgets/e-addressbook-view.c: Deploy gal-view stuff
properly.
+2001-02-05 Christopher James Lahey <clahey@helixcode.com>
+
* backend/ebook/e-card.c (e_card_get_vcard): Make the Note field
be quoted printable.
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index 3125c696ed..43f34a4389 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -263,6 +263,14 @@ typedef struct {
char *help_text;
} FocusHelpClosure;
+static void
+free_focus_help_closure (gpointer data)
+{
+ FocusHelpClosure *closure = data;
+ g_free(closure->help_text);
+ g_free(closure);
+}
+
static gint
focus_help (GtkWidget *widget, GdkEventFocus *event, FocusHelpClosure *closure)
{
@@ -293,13 +301,13 @@ table_add_elem (AddressbookSourceDialog *dialog, GtkWidget *table,
focus_closure = g_new0 (FocusHelpClosure, 1);
focus_closure->dialog = dialog;
- focus_closure->help_text = help_text;
+ focus_closure->help_text = g_strdup(help_text);
gtk_signal_connect_full (GTK_OBJECT (entry),
"focus_in_event" /* XXX */,
(GtkSignalFunc) focus_help, NULL,
focus_closure,
- (GtkDestroyNotify) g_free,
+ (GtkDestroyNotify) free_focus_help_closure,
FALSE, FALSE);
return entry;
}