From 717bc948b0150fb7c46838f06fc1f4b5638c14e4 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 12 Oct 2010 22:51:01 +0200 Subject: [PATCH] Remove MidoriView::net property completely --- midori/midori-view.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index d1579e49..01899861 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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 (); -- 2.39.5