aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-12-06 08:50:32 +0800
committerXan Lopez <xan@src.gnome.org>2008-12-06 08:50:32 +0800
commitbef98049462193ddbf06ef9b792fb357ec7415da (patch)
treec4423d9184517a3a66592a6a63de592727476ae5
parent96e097ef0c93c7a1037f3141efeeaf301fc3c265 (diff)
downloadgsoc2013-epiphany-bef98049462193ddbf06ef9b792fb357ec7415da.tar
gsoc2013-epiphany-bef98049462193ddbf06ef9b792fb357ec7415da.tar.gz
gsoc2013-epiphany-bef98049462193ddbf06ef9b792fb357ec7415da.tar.bz2
gsoc2013-epiphany-bef98049462193ddbf06ef9b792fb357ec7415da.tar.lz
gsoc2013-epiphany-bef98049462193ddbf06ef9b792fb357ec7415da.tar.xz
gsoc2013-epiphany-bef98049462193ddbf06ef9b792fb357ec7415da.tar.zst
gsoc2013-epiphany-bef98049462193ddbf06ef9b792fb357ec7415da.zip
webkit-embed: lose not needed casts to GObject.
svn path=/trunk/; revision=8630
-rw-r--r--embed/webkit/webkit-embed.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index 4712a9489..198ff07f8 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -176,12 +176,12 @@ restore_zoom_level (WebKitEmbed *embed,
web_view = priv->web_view;
- g_object_get (G_OBJECT (web_view), "zoom-level", &current_zoom,
+ g_object_get (web_view, "zoom-level", &current_zoom,
NULL);
if (zoom != current_zoom) {
priv->is_setting_zoom = TRUE;
- g_object_set (G_OBJECT (web_view), "zoom-level", zoom, NULL);
+ g_object_set (web_view, "zoom-level", zoom, NULL);
priv->is_setting_zoom = FALSE;
}
}
@@ -255,7 +255,7 @@ webkit_web_view_zoom_change_cb (WebKitWebView *web_view,
char *address;
float zoom;
- g_object_get (G_OBJECT (web_view),
+ g_object_get (web_view,
"zoom-level", &zoom,
NULL);
@@ -322,7 +322,7 @@ webkit_embed_init (WebKitEmbed *embed)
gtk_container_add (GTK_CONTAINER (embed), sw);
- g_object_connect (G_OBJECT (web_view),
+ g_object_connect (web_view,
"signal::load-committed", G_CALLBACK (webkit_embed_load_committed_cb), embed,
"signal::load-started", G_CALLBACK (webkit_embed_load_started_cb), embed,
"signal::load_finished", G_CALLBACK (webkit_embed_load_finished_cb), embed,
@@ -331,8 +331,8 @@ webkit_embed_init (WebKitEmbed *embed)
"signal::hovering-over-link", G_CALLBACK (webkit_embed_hovering_over_link_cb), embed,
NULL);
- g_signal_connect (G_OBJECT (web_view),
- "notify::zoom-level", G_CALLBACK (webkit_web_view_zoom_change_cb), embed);
+ g_signal_connect (web_view, "notify::zoom-level",
+ G_CALLBACK (webkit_web_view_zoom_change_cb), embed);
webkit_embed_prefs_add_embed (embed);