]> spindle.queued.net Git - midori/commitdiff
Remove MidoriView::net property completely
authorChristian Dywan <christian@twotoasts.de>
Tue, 12 Oct 2010 20:51:01 +0000 (22:51 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 13 Oct 2010 01:23:09 +0000 (03:23 +0200)
midori/midori-view.c

index d1579e493eff51149873f3808a64728b3097a910..0189986116e1aa3948fb1a6cd16cb5a06169aac4 100644 (file)
@@ -103,10 +103,7 @@ struct _MidoriView
     KatzeItem* item;
     gint scrollh, scrollv;
     gboolean back_forward_set;
-
-    KatzeNet* net;
     GHashTable* memory;
-
     GtkWidget* scrolled_window;
     GtkWidget* infobar_location;
 };
@@ -187,8 +184,7 @@ enum
     PROP_ZOOM_LEVEL,
     PROP_NEWS_FEEDS,
     PROP_STATUSBAR_TEXT,
-    PROP_SETTINGS,
-    PROP_NET
+    PROP_SETTINGS
 };
 
 enum {
@@ -601,15 +597,6 @@ midori_view_class_init (MidoriViewClass* class)
                                      "The associated settings",
                                      MIDORI_TYPE_WEB_SETTINGS,
                                      flags));
-
-    g_object_class_install_property (gobject_class,
-                                     PROP_NET,
-                                     g_param_spec_object (
-                                     "net",
-                                     "Net",
-                                     "The associated net",
-                                     KATZE_TYPE_NET,
-                                     flags));
 }
 
 static void
@@ -2973,8 +2960,6 @@ midori_view_finalize (GObject* object)
     katze_assign (view->download_manager, NULL);
     katze_assign (view->news_aggregator, NULL);
 
-    katze_object_assign (view->net, NULL);
-
     G_OBJECT_CLASS (midori_view_parent_class)->finalize (object);
 }
 
@@ -3014,9 +2999,6 @@ midori_view_set_property (GObject*      object,
     case PROP_SETTINGS:
         midori_view_set_settings (view, g_value_get_object (value));
         break;
-    case PROP_NET:
-        katze_object_assign (view->net, g_value_dup_object (value));
-        break;
     default:
         G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
         break;
@@ -3069,9 +3051,6 @@ midori_view_get_property (GObject*    object,
     case PROP_SETTINGS:
         g_value_set_object (value, view->settings);
         break;
-    case PROP_NET:
-        g_value_set_object (value, view->net);
-        break;
     default:
         G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
         break;
@@ -5233,7 +5212,7 @@ midori_view_speed_dial_inject_thumb (MidoriView* view,
 
     if (!view->thumb_view)
     {
-        view->thumb_view = midori_view_new (view->net);
+        view->thumb_view = midori_view_new_with_uri (NULL, NULL, NULL);
         gtk_container_add (GTK_CONTAINER (notebook), view->thumb_view);
         /* We use an empty label. It's not invisible but at least hard to spot. */
         label = gtk_event_box_new ();