aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-16 17:23:42 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-16 17:23:42 +0800
commit0a21ae9e0897278bf48b04dd3729059e14e3ca75 (patch)
tree68926cddea57d02508c37f5719daa3627ad53c4f
parent18fa92ee1db9cc931f2783a1343ddad7f0418ede (diff)
downloadgsoc2013-evolution-0a21ae9e0897278bf48b04dd3729059e14e3ca75.tar
gsoc2013-evolution-0a21ae9e0897278bf48b04dd3729059e14e3ca75.tar.gz
gsoc2013-evolution-0a21ae9e0897278bf48b04dd3729059e14e3ca75.tar.bz2
gsoc2013-evolution-0a21ae9e0897278bf48b04dd3729059e14e3ca75.tar.lz
gsoc2013-evolution-0a21ae9e0897278bf48b04dd3729059e14e3ca75.tar.xz
gsoc2013-evolution-0a21ae9e0897278bf48b04dd3729059e14e3ca75.tar.zst
gsoc2013-evolution-0a21ae9e0897278bf48b04dd3729059e14e3ca75.zip
Fixed a compile error.
2000-05-16 Christopher James Lahey <clahey@helixcode.com> * contact-editor/e-contact-editor-categories.c: Fixed a compile error. svn path=/trunk/; revision=3078
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/contact-editor/e-contact-editor-categories.c9
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor-categories.c9
3 files changed, 16 insertions, 9 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index c45077111a..76a1e59f14 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,8 +1,13 @@
2000-05-16 Christopher James Lahey <clahey@helixcode.com>
+ * contact-editor/e-contact-editor-categories.c: Fixed a compile
+ error.
+
+2000-05-16 Christopher James Lahey <clahey@helixcode.com>
+
* contact-editor/e-contact-editor-categories.c: Got rid of a
memory leak. Rearranged a couple functions.
-
+
* gui/minicard/e-minicard-view.c, gui/minicard/e-minicard-view.h:
Added some code to stop watching the EBook when the canvas is
destroyed (apparently the canvas is destroyed before our widget is
diff --git a/addressbook/contact-editor/e-contact-editor-categories.c b/addressbook/contact-editor/e-contact-editor-categories.c
index 5568b7bc71..05c86ac1b4 100644
--- a/addressbook/contact-editor/e-contact-editor-categories.c
+++ b/addressbook/contact-editor/e-contact-editor-categories.c
@@ -301,12 +301,13 @@ e_contact_editor_categories_init (EContactEditorCategories *categories)
void
e_contact_editor_categories_destroy (GtkObject *object)
{
- EContactEditorCategories *e_contact_editor_categories = E_CONTACT_EDITOR_CATEGORIES(object);
+ EContactEditorCategories *categories = E_CONTACT_EDITOR_CATEGORIES(object);
+ int i;
- if (e_contact_editor_categories->gui)
- gtk_object_unref(GTK_OBJECT(e_contact_editor_categories->gui));
+ if (categories->gui)
+ gtk_object_unref(GTK_OBJECT(categories->gui));
- g_free(e_contact_editor_categories->categories);
+ g_free(categories->categories);
for (i = 0; i < categories->list_length; i++)
g_free(categories->category_list[i]);
g_free(categories->category_list);
diff --git a/addressbook/gui/contact-editor/e-contact-editor-categories.c b/addressbook/gui/contact-editor/e-contact-editor-categories.c
index 5568b7bc71..05c86ac1b4 100644
--- a/addressbook/gui/contact-editor/e-contact-editor-categories.c
+++ b/addressbook/gui/contact-editor/e-contact-editor-categories.c
@@ -301,12 +301,13 @@ e_contact_editor_categories_init (EContactEditorCategories *categories)
void
e_contact_editor_categories_destroy (GtkObject *object)
{
- EContactEditorCategories *e_contact_editor_categories = E_CONTACT_EDITOR_CATEGORIES(object);
+ EContactEditorCategories *categories = E_CONTACT_EDITOR_CATEGORIES(object);
+ int i;
- if (e_contact_editor_categories->gui)
- gtk_object_unref(GTK_OBJECT(e_contact_editor_categories->gui));
+ if (categories->gui)
+ gtk_object_unref(GTK_OBJECT(categories->gui));
- g_free(e_contact_editor_categories->categories);
+ g_free(categories->categories);
for (i = 0; i < categories->list_length; i++)
g_free(categories->category_list[i]);
g_free(categories->category_list);