diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-13 03:12:34 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-13 03:12:34 (EDT) |
commit | c94c1d5c8772f28cdfeea3e0d9d9ce3a7377265a (patch) | |
tree | 60355a5ab47b1458300f32075f5c9f6606b27542 /src | |
parent | 107d315bbd11fdf8a4e259a36df59830021e98e2 (diff) | |
download | marquee-c94c1d5c8772f28cdfeea3e0d9d9ce3a7377265a.zip marquee-c94c1d5c8772f28cdfeea3e0d9d9ce3a7377265a.tar.gz marquee-c94c1d5c8772f28cdfeea3e0d9d9ce3a7377265a.tar.bz2 |
MqBackForwardButtonBox: Drop MqTab property
Diffstat (limited to 'src')
-rw-r--r-- | src/back-forward-button-box.c | 21 | ||||
-rw-r--r-- | src/back-forward-button-box.h | 2 | ||||
-rw-r--r-- | src/tab-chrome.c | 2 |
3 files changed, 4 insertions, 21 deletions
diff --git a/src/back-forward-button-box.c b/src/back-forward-button-box.c index 674a4c3..1abf353 100644 --- a/src/back-forward-button-box.c +++ b/src/back-forward-button-box.c @@ -28,7 +28,6 @@ struct _MqBackForwardButtonBox { GtkToolItem parent_instance; - MqTab *tab; MqWebView *web_view; GtkWidget *back_button; GtkWidget *forward_button; @@ -37,8 +36,7 @@ struct _MqBackForwardButtonBox { }; enum { - PROP_TAB = 1, - PROP_WEB_VIEW, + PROP_WEB_VIEW = 1, N_PROPERTIES }; @@ -345,10 +343,6 @@ get_property(GObject *object, guint property_id, GValue *value, back_forward_button_box = MQ_BACK_FORWARD_BUTTON_BOX(object); switch (property_id) { - case PROP_TAB: - g_value_set_pointer(value, - back_forward_button_box->tab); - break; case PROP_WEB_VIEW: g_value_set_object(value, back_forward_button_box->web_view); @@ -369,10 +363,6 @@ set_property(GObject *object, guint property_id, const GValue *value, back_forward_button_box = MQ_BACK_FORWARD_BUTTON_BOX(object); switch (property_id) { - case PROP_TAB: - back_forward_button_box->tab = - g_value_get_pointer(value); - break; case PROP_WEB_VIEW: set_web_view(back_forward_button_box, g_value_get_object(value)); @@ -392,12 +382,6 @@ mq_back_forward_button_box_class_init(MqBackForwardButtonBoxClass *klass) object_class->get_property = get_property; object_class->set_property = set_property; - obj_properties[PROP_TAB] = g_param_spec_pointer( - "tab", - "MqTab", - "The ancestral MqTab instance", - G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | - G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); obj_properties[PROP_WEB_VIEW] = g_param_spec_object( "web-view", "MqWebView", @@ -450,10 +434,9 @@ mq_back_forward_button_box_init(MqBackForwardButtonBox *back_forward_button_box) } GtkToolItem * -mq_back_forward_button_box_new(MqTab *tab, MqWebView *web_view) +mq_back_forward_button_box_new(MqWebView *web_view) { return g_object_new(MQ_TYPE_BACK_FORWARD_BUTTON_BOX, - "tab", tab, "web-view", web_view, NULL); } diff --git a/src/back-forward-button-box.h b/src/back-forward-button-box.h index 0a721ca..f79eefe 100644 --- a/src/back-forward-button-box.h +++ b/src/back-forward-button-box.h @@ -52,7 +52,7 @@ GType mq_back_forward_button_box_get_type(void); GtkToolItem * -mq_back_forward_button_box_new(MqTab *tab, MqWebView *web_view); +mq_back_forward_button_box_new(MqWebView *web_view); G_END_DECLS diff --git a/src/tab-chrome.c b/src/tab-chrome.c index c45d500..8bce75c 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -47,7 +47,7 @@ navigation_toolbar_new(MqTabChrome *chrome, const gchar *uri) navigation_toolbar = GTK_TOOLBAR(gtk_toolbar_new()); /* Back/forward button box */ - back_forward_tool_item = mq_back_forward_button_box_new(chrome->tab, + back_forward_tool_item = mq_back_forward_button_box_new( chrome->web_view); gtk_toolbar_insert(navigation_toolbar, back_forward_tool_item, -1); |