diff options
author | Not Zed <NotZed@Ximian.com> | 2001-03-02 01:10:50 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-03-02 01:10:50 +0800 |
commit | 63145be20bb873e902f2054da8a902fdaadb7545 (patch) | |
tree | 2d5cb48badd543522857221d1874a1626d484a1f /mail/mail-mt.c | |
parent | dbcf42527784f66f0bc7912d40e3f68a81ac42a3 (diff) | |
download | gsoc2013-evolution-63145be20bb873e902f2054da8a902fdaadb7545.tar gsoc2013-evolution-63145be20bb873e902f2054da8a902fdaadb7545.tar.gz gsoc2013-evolution-63145be20bb873e902f2054da8a902fdaadb7545.tar.bz2 gsoc2013-evolution-63145be20bb873e902f2054da8a902fdaadb7545.tar.lz gsoc2013-evolution-63145be20bb873e902f2054da8a902fdaadb7545.tar.xz gsoc2013-evolution-63145be20bb873e902f2054da8a902fdaadb7545.tar.zst gsoc2013-evolution-63145be20bb873e902f2054da8a902fdaadb7545.zip |
Check the container is not NIL before trying to set thje prop.
2001-03-02 Not Zed <NotZed@Ximian.com>
* mail-mt.c (set_stop): Check the container is not NIL before
trying to set thje prop.
svn path=/trunk/; revision=8449
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r-- | mail/mail-mt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c index ee84b6649d..73cec2126d 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -983,6 +983,8 @@ set_stop(int sensitive) control = BONOBO_CONTROL (e_iterator_get (it)); uic = bonobo_control_get_ui_component (control); + if (uic == CORBA_OBJECT_NIL || bonobo_ui_component_get_container(uic) == CORBA_OBJECT_NIL) + continue; bonobo_ui_component_set_prop(uic, "/commands/MailStop", "sensitive", sensitive?"1":"0", NULL); } |