diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-16 19:22:00 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-16 19:22:00 (EDT) |
commit | dd38cd28514876d3beb6a52746779675b28e0173 (patch) | |
tree | 287f7ad687d109d44b8334df8971a2a5ce1ddb8a /src | |
parent | ab85075e032841edd47341ae48b1c24750a05493 (diff) | |
download | marquee-dd38cd28514876d3beb6a52746779675b28e0173.zip marquee-dd38cd28514876d3beb6a52746779675b28e0173.tar.gz marquee-dd38cd28514876d3beb6a52746779675b28e0173.tar.bz2 |
navigation_toolbar_new(): Add newlines and comments
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index ba1e4d5..ea0239e 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -32,16 +32,22 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) GtkToolItem *location_bar_container; navigation_toolbar = gtk_toolbar_new(); + + /* Back button */ gtk_toolbar_insert(GTK_TOOLBAR(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_tool_button_new( gtk_image_new_from_icon_name("go-next", 16), "Forward"), -1); + + /* Location bar */ location_bar_container = gtk_tool_item_new(); chrome->location_bar = gtk_entry_new_with_buffer( gtk_entry_buffer_new(uri, -1)); @@ -52,6 +58,7 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) gtk_tool_item_set_expand(location_bar_container, TRUE); gtk_toolbar_insert(GTK_TOOLBAR(navigation_toolbar), location_bar_container, -1); + gtk_widget_set_hexpand(navigation_toolbar, TRUE); return navigation_toolbar; |