diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2011-12-14 23:08:40 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2011-12-14 23:08:40 +0800 |
commit | 1ce161d56a3db3c436e5fbf888472c1f864cebb8 (patch) | |
tree | 2554ef1fb6b28acb295a68246b47bd2fc4c9a06c /embed | |
parent | 2ea50ae6ef77b6346ccb859448513884510fcadd (diff) | |
download | gsoc2013-epiphany-1ce161d56a3db3c436e5fbf888472c1f864cebb8.tar gsoc2013-epiphany-1ce161d56a3db3c436e5fbf888472c1f864cebb8.tar.gz gsoc2013-epiphany-1ce161d56a3db3c436e5fbf888472c1f864cebb8.tar.bz2 gsoc2013-epiphany-1ce161d56a3db3c436e5fbf888472c1f864cebb8.tar.lz gsoc2013-epiphany-1ce161d56a3db3c436e5fbf888472c1f864cebb8.tar.xz gsoc2013-epiphany-1ce161d56a3db3c436e5fbf888472c1f864cebb8.tar.zst gsoc2013-epiphany-1ce161d56a3db3c436e5fbf888472c1f864cebb8.zip |
Some indentation fixes.
Sorry 'bout that.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index d9cc977a2..3ae0b014e 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -512,11 +512,10 @@ frame_enter_notify_cb (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) { - if (gtk_widget_get_halign (widget) == GTK_ALIGN_START) { + if (gtk_widget_get_halign (widget) == GTK_ALIGN_START) gtk_widget_set_halign (widget, GTK_ALIGN_END); - } else { + else gtk_widget_set_halign (widget, GTK_ALIGN_START); - } gtk_widget_queue_resize (widget); @@ -535,11 +534,10 @@ progress_update (EphyWebView *view, GParamSpec *pspec, EphyEmbed *embed) loading = ephy_web_view_is_loading (EPHY_WEB_VIEW (priv->web_view)); if (progress == 1.0 || !loading) - { gtk_widget_hide (priv->progress); - } else { + else gtk_widget_show (priv->progress); - } + gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->progress), (loading || progress == 1.0) ? progress : 0.0); } |