]> spindle.queued.net Git - midori/commitdiff
Don't test PrivateBrowsing and AddDesktopShortcut
authorChristian Dywan <christian@twotoasts.de>
Sun, 16 Jan 2011 13:04:11 +0000 (14:04 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 16 Jan 2011 13:05:23 +0000 (14:05 +0100)
panels/midori-history.c
tests/browser.c
tests/properties.c

index 1f95319000527f19f283d8ca17b0629d2a550518..f8f432bb355668fb51113a0644dfcc2f109b16a9 100644 (file)
@@ -459,7 +459,7 @@ midori_history_set_app (MidoriHistory* history,
         gtk_tree_store_clear (GTK_TREE_STORE (model));
     }
 
-    katze_assign (history->app, app);
+    katze_object_assign (history->app, app);
     if (!app)
         return;
     g_object_ref (app);
index 6af1210bfa1d920e82a9d48a0557aeaf3ed2579d..db815d2f91f3a51ebcba0eb4f08abfb714efb104 100644 (file)
@@ -39,7 +39,9 @@ browser_create (void)
         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), "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);
     }
     g_list_free (actions);
index 6de616c3b8d06208b670e15ef9c20fb64f6095d5..315a92e997482173b25187aa7402517c7338b44b 100644 (file)
@@ -133,11 +133,14 @@ properties_object_get_set (GObject* object)
                     G_PARAM_SPEC_ENUM (pspec)->default_value, NULL);
                 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)
                         g_error ("%s.%s has no value %d",
                             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);
                     if (!enum_value)
                         g_error ("%s.%s has no value '%s'",