Introduce sokoke_is_app_or_private helper function.
#define SPANNED_ADD(__widget) \
katze_preferences_add_widget (_preferences, __widget, "spanned")
/* Page "General" */
+ if (sokoke_is_app_or_private ())
+ {
PAGE_NEW (GTK_STOCK_HOME, _("Startup"));
FRAME_NEW (NULL);
label = katze_property_label (settings, "load-on-startup");
G_CALLBACK (midori_preferences_homepage_current_clicked_cb), settings);
SPANNED_ADD (button);
}
+ }
/* Page "Appearance" */
PAGE_NEW (GTK_STOCK_SELECT_FONT, _("Fonts"));
gtk_action_group_get_action (actions, "BookmarkAdd"));
gtk_menu_shell_append (menu_shell, menuitem);
- if (!midori_view_is_blank (view)
- && strcmp ("/", sokoke_set_config_dir (NULL)))
+ if (!midori_view_is_blank (view) && sokoke_is_app_or_private ())
{
menuitem = sokoke_action_create_popup_menu_item (
gtk_action_group_get_action (actions, "AddSpeedDial"));
return config_dir;
}
+gboolean
+sokoke_is_app_or_private (void)
+{
+ return strcmp ("/", sokoke_set_config_dir (NULL));
+}
+
/**
* sokoke_remove_path:
* @path: an absolute path
const gchar*
sokoke_set_config_dir (const gchar* new_config_dir);
+gboolean
+sokoke_is_app_or_private (void);
+
gboolean
sokoke_remove_path (const gchar* path,
gboolean ignore_errors);