diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-06-02 15:59:37 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-06-02 15:59:37 +0800 |
commit | cf4ea0186605a54c6d41588f7d85a165c95f3f51 (patch) | |
tree | 9c1bf6b9a6bc19f0bf6de37ac7df2db77aa993d1 /widgets/shortcut-bar | |
parent | 5c8c96c90da5c1acc1aee3cbe4a99598657c4ac1 (diff) | |
download | gsoc2013-evolution-cf4ea0186605a54c6d41588f7d85a165c95f3f51.tar.gz gsoc2013-evolution-cf4ea0186605a54c6d41588f7d85a165c95f3f51.tar.zst gsoc2013-evolution-cf4ea0186605a54c6d41588f7d85a165c95f3f51.zip |
Free all the item data.
2000-06-02 Christopher James Lahey <clahey@helixcode.com>
* e-icon-bar.c: Free all the item data.
svn path=/trunk/; revision=3383
Diffstat (limited to 'widgets/shortcut-bar')
-rw-r--r-- | widgets/shortcut-bar/ChangeLog | 4 | ||||
-rw-r--r-- | widgets/shortcut-bar/e-icon-bar.c | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/widgets/shortcut-bar/ChangeLog b/widgets/shortcut-bar/ChangeLog index f3baab779a..76c46fabea 100644 --- a/widgets/shortcut-bar/ChangeLog +++ b/widgets/shortcut-bar/ChangeLog @@ -1,3 +1,7 @@ +2000-06-02 Christopher James Lahey <clahey@helixcode.com> + + * e-icon-bar.c: Free all the item data. + 2000-06-01 Ettore Perazzoli <ettore@helixcode.com> * e-shortcut-bar.c (e_shortcut_bar_get_view_type): New function. diff --git a/widgets/shortcut-bar/e-icon-bar.c b/widgets/shortcut-bar/e-icon-bar.c index 68eaeaffa7..731c584fbe 100644 --- a/widgets/shortcut-bar/e-icon-bar.c +++ b/widgets/shortcut-bar/e-icon-bar.c @@ -287,10 +287,19 @@ static void e_icon_bar_destroy (GtkObject *object) { EIconBar *icon_bar; + int item_num; + EIconBarItem *item; icon_bar = E_ICON_BAR (object); GTK_OBJECT_CLASS (parent_class)->destroy (object); + + for (item_num = 0; item_num < icon_bar->items->len; item_num++) { + item = &g_array_index (icon_bar->items, + EIconBarItem, item_num); + if (item->destroy) + item->destroy (item->data); + } g_array_free (icon_bar->items, TRUE); |