diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-03-03 22:02:41 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-03-14 09:53:16 +0800 |
commit | 97f274dffdca39bca33296a9f39411dd2680b4ec (patch) | |
tree | 374f7051947908759e4c41f527c7bad64dbd6069 /e-util | |
parent | 19eea41c74154855cb68ee3a1fb41e2ec136b764 (diff) | |
download | gsoc2013-evolution-97f274dffdca39bca33296a9f39411dd2680b4ec.tar gsoc2013-evolution-97f274dffdca39bca33296a9f39411dd2680b4ec.tar.gz gsoc2013-evolution-97f274dffdca39bca33296a9f39411dd2680b4ec.tar.bz2 gsoc2013-evolution-97f274dffdca39bca33296a9f39411dd2680b4ec.tar.lz gsoc2013-evolution-97f274dffdca39bca33296a9f39411dd2680b4ec.tar.xz gsoc2013-evolution-97f274dffdca39bca33296a9f39411dd2680b4ec.tar.zst gsoc2013-evolution-97f274dffdca39bca33296a9f39411dd2680b4ec.zip |
Disable a chunk of UI from the mail-to-task plugin
Allow plugins to disable chunks of their UI - *NB* requires patched intltool,
that doesn't elide comments in XML
Remove some debug
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-plugin-ui.c | 4 | ||||
-rw-r--r-- | e-util/e-util.c | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/e-util/e-plugin-ui.c b/e-util/e-plugin-ui.c index 3ca8703d5a..133455b108 100644 --- a/e-util/e-plugin-ui.c +++ b/e-util/e-plugin-ui.c @@ -450,9 +450,7 @@ plugin_ui_hook_construct (EPluginHook *hook, /* Extract the XML content below <ui-manager> */ buffer = xmlBufferCreate (); - for (child = xmlFirstElementChild (node); child != NULL; - child = xmlNextElementSibling (child)) { - + for (child = node->children; child != NULL; child = child->next) { xmlNodeDump (buffer, node->doc, child, 2, 1); temp = (const gchar *) xmlBufferContent (buffer); g_string_append (content, temp); diff --git a/e-util/e-util.c b/e-util/e-util.c index f86ee1bff4..3573952244 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -315,7 +315,6 @@ void e_load_ui_manager_set_express (GtkUIManager *ui_manager, gboolean express) { - fprintf (stderr, "set express on %p to %d\n", ui_manager, express); g_object_set_data (G_OBJECT (ui_manager), "e-ui-mgr-express", GUINT_TO_POINTER (express)); @@ -327,7 +326,6 @@ e_load_ui_manager_get_express (GtkUIManager *ui_manager) gboolean express = GPOINTER_TO_UINT ( g_object_get_data (G_OBJECT (ui_manager), "e-ui-mgr-express")); - fprintf (stderr, "get express on %p to %d\n", ui_manager, express); return express; } |