evolution r36745 - trunk/plugins/google-account-setup
- From: abharath svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36745 - trunk/plugins/google-account-setup
- Date: Thu, 6 Nov 2008 08:39:34 +0000 (UTC)
Author: abharath
Date: Thu Nov 6 08:39:33 2008
New Revision: 36745
URL: http://svn.gnome.org/viewvc/evolution?rev=36745&view=rev
Log:
2008-11-06 Bharath Acharya <abharath novell com>
** Fix for bug #557726
* google-contacts-source.c: (destroy_ui_data),
(plugin_google_contacts): Destroy the widgets created by this group.
Modified:
trunk/plugins/google-account-setup/ChangeLog
trunk/plugins/google-account-setup/google-contacts-source.c
Modified: trunk/plugins/google-account-setup/google-contacts-source.c
==============================================================================
--- trunk/plugins/google-account-setup/google-contacts-source.c (original)
+++ trunk/plugins/google-account-setup/google-contacts-source.c Thu Nov 6 08:39:33 2008
@@ -218,6 +218,12 @@
g_free (value_string);
}
+static void
+destroy_ui_data(gpointer data)
+{
+ gtk_widget_destroy((GtkWidget *)data);
+}
+
GtkWidget *
plugin_google_contacts (EPlugin *epl,
EConfigHookItemFactoryData *data)
@@ -254,6 +260,9 @@
base_uri = e_source_group_peek_base_uri (group);
+ g_object_set_data_full (G_OBJECT (epl), "widget", NULL,
+ (GDestroyNotify)gtk_widget_destroy);
+
if (strcmp (base_uri, "google://")) {
return NULL;
}
@@ -337,6 +346,9 @@
g_object_set_data (G_OBJECT (interval_sb), "interval-combo", interval_combo);
g_object_set_data (G_OBJECT (interval_combo), "interval-sb", interval_sb);
+
+ g_object_set_data_full(G_OBJECT(epl), "widget", vbox2,
+ destroy_ui_data);
g_signal_connect (G_OBJECT (username_entry), "changed",
G_CALLBACK (on_username_entry_changed),
source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]