diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-12 02:23:29 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-12 02:23:29 (EDT) |
commit | 6106d45731eab381735998a09761ebd7ed46a0ec (patch) | |
tree | 3e3141cb1d40d5bd43b12206281956ab089cb314 | |
parent | 02c9824b49cf2710eade0b40c4f4deede36d857d (diff) | |
download | marquee-6106d45731eab381735998a09761ebd7ed46a0ec.zip marquee-6106d45731eab381735998a09761ebd7ed46a0ec.tar.gz marquee-6106d45731eab381735998a09761ebd7ed46a0ec.tar.bz2 |
MqTab: Drop mq_web_view_get_web_view() & a struct member
The body and web_view struct members are now pointers to the same
address, just with different types. body isn't used anywhere outside
this instance initialization function, so it doesn't need to be saved in
the struct.
-rw-r--r-- | src/tab.c | 5 | ||||
-rw-r--r-- | src/tab.h | 1 |
2 files changed, 2 insertions, 4 deletions
@@ -437,8 +437,7 @@ init_non_root(const gchar *uri, MqTab *source) mq_tab_populate_tab(tab); tab->chrome = mq_tab_chrome_new(tab, uri); - tab->body = mq_web_view_new(tab, uri); - tab->web_view = mq_web_view_get_web_view(tab->body); + tab->web_view = WEBKIT_WEB_VIEW(mq_web_view_new(tab, uri)); g_signal_connect(tab->web_view, "notify::favicon", G_CALLBACK(favicon_cb), tab); g_signal_connect(tab->web_view, "notify::title", @@ -449,7 +448,7 @@ init_non_root(const gchar *uri, MqTab *source) gtk_box_pack_start(GTK_BOX(tab->container), mq_tab_chrome_get_container(tab->chrome), FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(tab->container), - GTK_WIDGET(tab->body), TRUE, TRUE, 0); + GTK_WIDGET(tab->web_view), TRUE, TRUE, 0); return tab; } @@ -44,7 +44,6 @@ struct MqTab { MqWindow *window; GtkWidget *container; MqTabChrome *chrome; - MqWebView *body; GtkWidget *tab; GtkWidget *tab_image; GtkWidget *tab_label; |