summaryrefslogtreecommitdiffstats
path: root/src/web-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/web-view.c')
-rw-r--r--src/web-view.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/web-view.c b/src/web-view.c
index 49ffea2..2e8bc40 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -39,7 +39,7 @@ struct _MqWebView {
enum {
PROP_TAB = 1,
- PROP_URI,
+ PROP_REWRITTEN_URI,
N_PROPERTIES
};
@@ -66,7 +66,7 @@ get_property(GObject *object, guint property_id, GValue *value,
case PROP_TAB:
g_value_set_pointer(value, web_view->tab);
break;
- case PROP_URI:
+ case PROP_REWRITTEN_URI:
g_value_set_string(value, web_view->uri); /* TODO */
break;
default:
@@ -88,7 +88,7 @@ set_property(GObject *object, guint property_id, const GValue *value,
case PROP_TAB:
web_view->tab = g_value_get_pointer(value);
break;
- case PROP_URI:
+ case PROP_REWRITTEN_URI:
mq_web_view_load_uri(web_view,
g_value_get_string(value));
break;
@@ -522,7 +522,8 @@ uri_cb(WebKitWebView *wk_web_view, GParamSpec G_GNUC_UNUSED *paramspec)
web_view->uri = g_strdup(uri);
}
- g_object_notify_by_pspec(G_OBJECT(web_view), obj_properties[PROP_URI]);
+ g_object_notify_by_pspec(G_OBJECT(web_view),
+ obj_properties[PROP_REWRITTEN_URI]);
}
static void
@@ -652,8 +653,8 @@ mq_web_view_class_init(MqWebViewClass *klass)
"tab", "MqTab", "Parent MqTab instance",
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
- obj_properties[PROP_URI] = g_param_spec_string(
- "uri", "URI", "URI to load",
+ obj_properties[PROP_REWRITTEN_URI] = g_param_spec_string(
+ "rewritten-uri", "URI", "URI to load",
"",
G_PARAM_READWRITE |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
@@ -681,7 +682,7 @@ mq_web_view_new(MqTab *tab, const gchar *uri)
{
return g_object_new(MQ_TYPE_WEB_VIEW,
"tab", tab, /* TODO: Use gtk_widget_get_parent() instead? */
- "uri", uri,
+ "rewritten-uri", uri,
"web-context", webkit_web_context_get_default(),
NULL);
}
@@ -715,7 +716,8 @@ mq_web_view_load_uri(MqWebView *web_view, const gchar *uri)
webkit_web_view_load_uri(WEBKIT_WEB_VIEW(web_view), uri);
}
- g_object_notify_by_pspec(G_OBJECT(web_view), obj_properties[PROP_URI]);
+ g_object_notify_by_pspec(G_OBJECT(web_view),
+ obj_properties[PROP_REWRITTEN_URI]);
}
GtkWidget *