[frogr] Disable horizontal scrollbars in main view's icon view.
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Disable horizontal scrollbars in main view's icon view.
- Date: Fri, 8 Jul 2011 15:13:34 +0000 (UTC)
commit fce7d5bafd3ae0a8f2ff25befbe9bbd2c6abd65f
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Fri Jul 8 17:02:29 2011 +0200
Disable horizontal scrollbars in main view's icon view.
data/gtkbuilder/frogr-main-view.xml | 2 ++
src/frogr-main-view.c | 5 ++---
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/data/gtkbuilder/frogr-main-view.xml b/data/gtkbuilder/frogr-main-view.xml
index 77e3935..2c5a78b 100644
--- a/data/gtkbuilder/frogr-main-view.xml
+++ b/data/gtkbuilder/frogr-main-view.xml
@@ -245,6 +245,8 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="shadow_type">etched-in</property>
+ <property name="hscrollbar-policy">GTK_POLICY_NEVER</property>
+ <property name="vscrollbar-policy">GTK_POLICY_AUTOMATIC</property>
<child>
<object class="GtkIconView" id="icon_view">
<property name="visible">True</property>
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index b1678f6..f0a2f80 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -1761,9 +1761,8 @@ frogr_main_view_init (FrogrMainView *self)
gtk_icon_view_set_item_width (GTK_ICON_VIEW (icon_view), ITEM_WIDTH);
gtk_widget_set_has_tooltip (icon_view, TRUE);
- gtk_window_set_default_size (GTK_WINDOW (priv->window),
- MINIMUM_WINDOW_WIDTH,
- MINIMUM_WINDOW_HEIGHT);
+ gtk_window_set_default_size (priv->window, MINIMUM_WINDOW_WIDTH, MINIMUM_WINDOW_HEIGHT);
+
/* Init status bar */
priv->sb_context_id =
gtk_statusbar_get_context_id (GTK_STATUSBAR (priv->status_bar),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]