diff options
author | Sarfraaz Ahmed <asarfraaz@novell.com> | 2005-07-25 16:15:34 +0800 |
---|---|---|
committer | Ahmed Sarfraaz <sarfraaz@src.gnome.org> | 2005-07-25 16:15:34 +0800 |
commit | abee01230b62448ce5e021d4af98f92a9681eaa2 (patch) | |
tree | 9ebb65a56503b877e4f139a78fae79d3a700aaae /shell/e-shell-window.c | |
parent | a65f459a192c0a8ba2b0cf328ceefa4810a208d1 (diff) | |
download | gsoc2013-evolution-abee01230b62448ce5e021d4af98f92a9681eaa2.tar.gz gsoc2013-evolution-abee01230b62448ce5e021d4af98f92a9681eaa2.tar.zst gsoc2013-evolution-abee01230b62448ce5e021d4af98f92a9681eaa2.zip |
Dont enter default values for button label and menu label Dont add the
2005-07-21 Sarfraaz Ahmed <asarfraaz@novell.com>
* e-component-registry.c (query_components): Dont enter default values
for button label and menu label
* e-shell-window.c (setup_widgets): Dont add the sidebar button when
there is no label.
svn path=/trunk/; revision=29883
Diffstat (limited to 'shell/e-shell-window.c')
-rw-r--r-- | shell/e-shell-window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index b4047bc79a..cc05844668 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -695,6 +695,9 @@ setup_widgets (EShellWindow *window) ComponentView *view = component_view_new (info->id, info->alias, button_id); window->priv->component_views = g_slist_prepend (window->priv->component_views, view); + + if (!info->button_label || !info->menu_label) + continue; e_sidebar_add_button (E_SIDEBAR (priv->sidebar), info->button_label, info->button_tooltips, info->button_icon, button_id); g_string_printf(xml, "SwitchComponent-%s", info->alias); |