aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-09-23 23:41:21 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-09-23 23:41:21 +0800
commit150fcadcd211229444910f2799212c27a247fa60 (patch)
tree83933be7df6b496929b1f8b50436641a661152db /mail
parent28c50b7cb8dfb17659c6043c48d5cc03be537154 (diff)
downloadgsoc2013-evolution-150fcadcd211229444910f2799212c27a247fa60.tar
gsoc2013-evolution-150fcadcd211229444910f2799212c27a247fa60.tar.gz
gsoc2013-evolution-150fcadcd211229444910f2799212c27a247fa60.tar.bz2
gsoc2013-evolution-150fcadcd211229444910f2799212c27a247fa60.tar.lz
gsoc2013-evolution-150fcadcd211229444910f2799212c27a247fa60.tar.xz
gsoc2013-evolution-150fcadcd211229444910f2799212c27a247fa60.tar.zst
gsoc2013-evolution-150fcadcd211229444910f2799212c27a247fa60.zip
Updates for the Bonobo changes from Michael who is having some
troubles with CVS at home (so I commit this on his behalf). svn path=/trunk/; revision=5560
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/folder-browser-factory.c33
2 files changed, 11 insertions, 27 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b04ad0d151..ffe6d54400 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-23 Michael Meeks <michael@helixcode.com>
+
+ * folder-browser-factory.c (set_pixmap): upd.
+ (control_activate): upd.
+
2000-09-23 Ettore Perazzoli <ettore@helixcode.com>
* message-list.c (internet_address_new_from_string): Skip spaces
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index 1ba9a16c80..c14dd999e0 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -122,28 +122,18 @@ set_pixmap (Bonobo_UIContainer container,
const char *xml_path,
const char *icon)
{
- char *path, *parent_path;
- xmlNode *node;
+ char *path;
GdkPixbuf *pixbuf;
path = g_concat_dir_and_file (EVOLUTION_DATADIR "/images/evolution/buttons", icon);
pixbuf = gdk_pixbuf_new_from_file (path);
g_return_if_fail (pixbuf != NULL);
-
- node = bonobo_ui_container_get_tree (container, xml_path, FALSE, NULL);
- g_return_if_fail (node != NULL);
+ bonobo_ui_util_set_pixbuf (container, xml_path, pixbuf);
- bonobo_ui_util_xml_set_pixbuf (node, pixbuf);
gdk_pixbuf_unref (pixbuf);
- parent_path = bonobo_ui_xml_get_parent_path (xml_path);
- bonobo_ui_component_set_tree (NULL, container, parent_path, node, NULL);
-
- xmlFreeNode (node);
-
- g_free (parent_path);
g_free (path);
}
@@ -182,21 +172,10 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
bonobo_ui_container_freeze (container, NULL);
- { /* FIXME: sweeten this whole function */
- char *fname;
- xmlNode *ui;
-
- fname = bonobo_ui_util_get_ui_fname (
- EVOLUTION_DATADIR, "evolution-mail.xml");
- g_warning ("Attempting ui load from '%s'", fname);
-
- ui = bonobo_ui_util_new_ui (component, fname, "evolution-mail");
-
- bonobo_ui_component_set_tree (component, container, "/", ui, NULL);
-
- g_free (fname);
- xmlFreeNode (ui);
- }
+ bonobo_ui_util_set_ui (
+ component, container,
+ EVOLUTION_DATADIR, "evolution-mail.xml",
+ "evolution-mail");
if (mail_config_thread_list ())
bonobo_ui_container_set_prop (