diff options
author | Xan Lopez <xan@igalia.com> | 2012-10-03 17:27:05 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-10-03 17:27:05 +0800 |
commit | c188d4754da2764f9c98a0c5508fd801e263712b (patch) | |
tree | d4fe5dd35906ed6443c20fe9e5a8fd8d1b295d6c /embed/ephy-embed.c | |
parent | c1b4e7e87652b57797c4e7e56f9c94983c5d38e7 (diff) | |
download | gsoc2013-epiphany-c188d4754da2764f9c98a0c5508fd801e263712b.tar gsoc2013-epiphany-c188d4754da2764f9c98a0c5508fd801e263712b.tar.gz gsoc2013-epiphany-c188d4754da2764f9c98a0c5508fd801e263712b.tar.bz2 gsoc2013-epiphany-c188d4754da2764f9c98a0c5508fd801e263712b.tar.lz gsoc2013-epiphany-c188d4754da2764f9c98a0c5508fd801e263712b.tar.xz gsoc2013-epiphany-c188d4754da2764f9c98a0c5508fd801e263712b.tar.zst gsoc2013-epiphany-c188d4754da2764f9c98a0c5508fd801e263712b.zip |
ephy-embed: small cleanup
We access the priv struct a bunch of times here, create a variable for it.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index c6c757954..957e760fd 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -1038,22 +1038,24 @@ ephy_embed_constructed (GObject *object) static void ephy_embed_init (EphyEmbed *embed) { - embed->priv = EPHY_EMBED_GET_PRIVATE (embed); + EphyEmbedPrivate *priv; + + priv = embed->priv = EPHY_EMBED_GET_PRIVATE (embed); gtk_orientable_set_orientation (GTK_ORIENTABLE (embed), GTK_ORIENTATION_VERTICAL); #ifndef HAVE_WEBKIT2 - embed->priv->scrolled_window = GTK_SCROLLED_WINDOW (gtk_scrolled_window_new (NULL, NULL)); + priv->scrolled_window = GTK_SCROLLED_WINDOW (gtk_scrolled_window_new (NULL, NULL)); #endif - embed->priv->paned = GTK_PANED (gtk_paned_new (GTK_ORIENTATION_VERTICAL)); - embed->priv->top_widgets_vbox = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 0)); - embed->priv->seq_context_id = 1; - embed->priv->seq_message_id = 1; - embed->priv->tab_message_id = ephy_embed_statusbar_get_context_id (embed, EPHY_EMBED_STATUSBAR_TAB_MESSAGE_CONTEXT_DESCRIPTION); + priv->paned = GTK_PANED (gtk_paned_new (GTK_ORIENTATION_VERTICAL)); + priv->top_widgets_vbox = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 0)); + priv->seq_context_id = 1; + priv->seq_message_id = 1; + priv->tab_message_id = ephy_embed_statusbar_get_context_id (embed, EPHY_EMBED_STATUSBAR_TAB_MESSAGE_CONTEXT_DESCRIPTION); #ifndef HAVE_WEBKIT2 - gtk_scrolled_window_set_policy (embed->priv->scrolled_window, + gtk_scrolled_window_set_policy (priv->scrolled_window, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); #endif } |