diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-16 19:26:15 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-16 19:26:15 (EDT) |
commit | a9696becbd3b7f21c824e023ff42b7e8dbe3a623 (patch) | |
tree | 26830f19146b3826f84247e5722e36d364419fbb /src | |
parent | dd38cd28514876d3beb6a52746779675b28e0173 (diff) | |
download | marquee-a9696becbd3b7f21c824e023ff42b7e8dbe3a623.zip marquee-a9696becbd3b7f21c824e023ff42b7e8dbe3a623.tar.gz marquee-a9696becbd3b7f21c824e023ff42b7e8dbe3a623.tar.bz2 |
navigation_toolbar_new(): Change type of navigation_toolbar
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index ea0239e..3c4b157 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -28,20 +28,20 @@ static GtkWidget * navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) { - GtkWidget *navigation_toolbar; + GtkToolbar *navigation_toolbar; GtkToolItem *location_bar_container; - navigation_toolbar = gtk_toolbar_new(); + navigation_toolbar = GTK_TOOLBAR(gtk_toolbar_new()); /* Back button */ - gtk_toolbar_insert(GTK_TOOLBAR(navigation_toolbar), + gtk_toolbar_insert(navigation_toolbar, gtk_tool_button_new( gtk_image_new_from_icon_name("go-previous", 16), "Back"), -1); /* Forward button */ - gtk_toolbar_insert(GTK_TOOLBAR(navigation_toolbar), + gtk_toolbar_insert(navigation_toolbar, gtk_tool_button_new( gtk_image_new_from_icon_name("go-next", 16), "Forward"), @@ -56,12 +56,12 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) gtk_container_add(GTK_CONTAINER(location_bar_container), chrome->location_bar); gtk_tool_item_set_expand(location_bar_container, TRUE); - gtk_toolbar_insert(GTK_TOOLBAR(navigation_toolbar), + gtk_toolbar_insert(navigation_toolbar, location_bar_container, -1); - gtk_widget_set_hexpand(navigation_toolbar, TRUE); + gtk_widget_set_hexpand(GTK_WIDGET(navigation_toolbar), TRUE); - return navigation_toolbar; + return GTK_WIDGET(navigation_toolbar); } MqTabChrome * |