Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marcopg@litl.com>2009-03-16 16:59:40 (GMT)
committer Marco Pesenti Gritti <marcopg@litl.com>2010-07-27 22:04:21 (GMT)
commitb0add6293bb1a7eae889d8ba8c17f16a2644b873 (patch)
treed2cdcb5bacd5b28552a95e9fe543fc0779e791e5
parent44b96f1d58d64a1992c99d24ddf65fd2c48d8574 (diff)
Avoid unnecessary if block
-rw-r--r--browser-plugin/plugin.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/browser-plugin/plugin.cpp b/browser-plugin/plugin.cpp
index 2d4cdb2..bac726b 100644
--- a/browser-plugin/plugin.cpp
+++ b/browser-plugin/plugin.cpp
@@ -157,13 +157,12 @@ Plugin::UpdateSizingMode ()
"sizing-mode", &sizingMode,
NULL);
- if (sizingMode != EV_SIZING_FREE)
- ev_view_update_view_size (EV_VIEW (mView),
- GTK_SCROLLED_WINDOW (mScrolledWindow));
-
switch (sizingMode) {
case EV_SIZING_BEST_FIT:
case EV_SIZING_FIT_WIDTH:
+ ev_view_update_view_size (EV_VIEW (mView),
+ GTK_SCROLLED_WINDOW (mScrolledWindow));
+
g_object_set (G_OBJECT (mScrolledWindow),
"hscrollbar-policy", GTK_POLICY_NEVER,
"vscrollbar-policy", GTK_POLICY_ALWAYS,