From 3022efe63856f9e0bda74c3709506955b3db3bf0 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 16 Sep 2017 19:30:09 -0400 Subject: src/tab-chrome.[ch]: s/location/uri/ and s/Location/URI/ --- (limited to 'src') diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 31ac9a8..ce7b4cc 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -29,7 +29,7 @@ static GtkWidget * navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) { GtkToolbar *navigation_toolbar; - GtkToolItem *location_bar_container; + GtkToolItem *uri_bar_container; navigation_toolbar = GTK_TOOLBAR(gtk_toolbar_new()); @@ -47,16 +47,16 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) "Forward"), -1); - /* Location bar */ - location_bar_container = gtk_tool_item_new(); - chrome->location_bar = gtk_entry_new_with_buffer( + /* URI bar */ + uri_bar_container = gtk_tool_item_new(); + chrome->uri_bar = gtk_entry_new_with_buffer( gtk_entry_buffer_new(uri, -1)); - gtk_entry_set_placeholder_text(GTK_ENTRY(chrome->location_bar), + gtk_entry_set_placeholder_text(GTK_ENTRY(chrome->uri_bar), "URI..."); - gtk_container_add(GTK_CONTAINER(location_bar_container), - chrome->location_bar); - gtk_tool_item_set_expand(location_bar_container, TRUE); - gtk_toolbar_insert(navigation_toolbar, location_bar_container, -1); + gtk_container_add(GTK_CONTAINER(uri_bar_container), + chrome->uri_bar); + gtk_tool_item_set_expand(uri_bar_container, TRUE); + gtk_toolbar_insert(navigation_toolbar, uri_bar_container, -1); gtk_widget_set_hexpand(GTK_WIDGET(navigation_toolbar), TRUE); diff --git a/src/tab-chrome.h b/src/tab-chrome.h index 3ea82a1..565fedd 100644 --- a/src/tab-chrome.h +++ b/src/tab-chrome.h @@ -26,7 +26,7 @@ typedef struct { GtkWidget *container; - GtkWidget *location_bar; + GtkWidget *uri_bar; } MqTabChrome; MqTabChrome * -- cgit v0.9.1