[Xfce4-commits] <midori:master> Don't show 'Add to Speed Dial' with no configuration
Christian Dywan
noreply at xfce.org
Sun Oct 24 23:54:02 CEST 2010
Updating branch refs/heads/master
to ba161aeeae3deca5c7fb8ee9923a657bfa7fedc2 (commit)
from cbb9189e7c58c589f9014883351075cd5f9fc6c3 (commit)
commit ba161aeeae3deca5c7fb8ee9923a657bfa7fedc2
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Oct 24 23:48:58 2010 +0200
Don't show 'Add to Speed Dial' with no configuration
As it won't be saved, it's not helpful to offer it.
midori/midori-view.c | 3 ++-
midori/sokoke.c | 2 ++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index bc6836a..ff69846 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -2603,7 +2603,8 @@ midori_view_populate_popup (MidoriView* view,
gtk_action_group_get_action (actions, "BookmarkAdd"));
gtk_menu_shell_append (menu_shell, menuitem);
- if (view->speed_dial_in_new_tabs && !midori_view_is_blank (view))
+ if (view->speed_dial_in_new_tabs && !midori_view_is_blank (view)
+ && strcmp ("/", sokoke_set_config_dir (NULL)))
{
menuitem = sokoke_action_create_popup_menu_item (
gtk_action_group_get_action (actions, "AddSpeedDial"));
diff --git a/midori/sokoke.c b/midori/sokoke.c
index 3c44533..133de3c 100644
--- a/midori/sokoke.c
+++ b/midori/sokoke.c
@@ -1481,6 +1481,8 @@ sokoke_register_stock_items (void)
*
* Retrieves and/ or sets the base configuration folder.
*
+ * "/" means no configuration is saved.
+ *
* Return value: the configuration folder, or %NULL
**/
const gchar*
More information about the Xfce4-commits
mailing list