+void
+set_uri(const char *uri, struct Client *c) {
+ gtk_widget_grab_focus(c->location);
+ const char *goal = (strcmp(cfg.home_uri, uri) == 0) ? cfg.default_uri : uri;
+ gtk_entry_set_text(GTK_ENTRY(c->location), goal);
+ gtk_editable_set_position(GTK_EDITABLE(c->location), -1);
+}
+