Don't test PrivateBrowsing and AddDesktopShortcut
This commit is contained in:
parent
650aa8c102
commit
03b146386e
3 changed files with 9 additions and 4 deletions
|
@ -459,7 +459,7 @@ midori_history_set_app (MidoriHistory* history,
|
||||||
gtk_tree_store_clear (GTK_TREE_STORE (model));
|
gtk_tree_store_clear (GTK_TREE_STORE (model));
|
||||||
}
|
}
|
||||||
|
|
||||||
katze_assign (history->app, app);
|
katze_object_assign (history->app, app);
|
||||||
if (!app)
|
if (!app)
|
||||||
return;
|
return;
|
||||||
g_object_ref (app);
|
g_object_ref (app);
|
||||||
|
|
|
@ -39,7 +39,9 @@ browser_create (void)
|
||||||
if (g_strcmp0 (gtk_action_get_name (action), "WindowClose"))
|
if (g_strcmp0 (gtk_action_get_name (action), "WindowClose"))
|
||||||
if (g_strcmp0 (gtk_action_get_name (action), "EncodingCustom"))
|
if (g_strcmp0 (gtk_action_get_name (action), "EncodingCustom"))
|
||||||
if (g_strcmp0 (gtk_action_get_name (action), "AddSpeedDial"))
|
if (g_strcmp0 (gtk_action_get_name (action), "AddSpeedDial"))
|
||||||
gtk_action_activate (action);
|
if (g_strcmp0 (gtk_action_get_name (action), "PrivateBrowsing"))
|
||||||
|
if (g_strcmp0 (gtk_action_get_name (action), "AddDesktopShortcut"))
|
||||||
|
gtk_action_activate (action);
|
||||||
actions = g_list_next (actions);
|
actions = g_list_next (actions);
|
||||||
}
|
}
|
||||||
g_list_free (actions);
|
g_list_free (actions);
|
||||||
|
|
|
@ -133,11 +133,14 @@ properties_object_get_set (GObject* object)
|
||||||
G_PARAM_SPEC_ENUM (pspec)->default_value, NULL);
|
G_PARAM_SPEC_ENUM (pspec)->default_value, NULL);
|
||||||
for (k = enum_class->minimum; k < enum_class->maximum; k++)
|
for (k = enum_class->minimum; k < enum_class->maximum; k++)
|
||||||
{
|
{
|
||||||
GEnumValue* enum_value = g_enum_get_value (enum_class, k);
|
GEnumValue* enum_value;
|
||||||
|
GEnumValue* enum_value_;
|
||||||
|
|
||||||
|
enum_value = g_enum_get_value (enum_class, k);
|
||||||
if (!enum_value)
|
if (!enum_value)
|
||||||
g_error ("%s.%s has no value %d",
|
g_error ("%s.%s has no value %d",
|
||||||
G_OBJECT_TYPE_NAME (object), property, k);
|
G_OBJECT_TYPE_NAME (object), property, k);
|
||||||
GEnumValue* enum_value_ = g_enum_get_value_by_name (enum_class,
|
enum_value_ = g_enum_get_value_by_name (enum_class,
|
||||||
enum_value->value_name);
|
enum_value->value_name);
|
||||||
if (!enum_value)
|
if (!enum_value)
|
||||||
g_error ("%s.%s has no value '%s'",
|
g_error ("%s.%s has no value '%s'",
|
||||||
|
|
Loading…
Reference in a new issue