[gnome-software] Don't use relative sizes for computing the category sidebar width
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Don't use relative sizes for computing the category sidebar width
- Date: Tue, 2 Sep 2014 00:39:02 +0000 (UTC)
commit 81d0fc8ccbe176e7908309c61ddbd229b2f25aef
Author: Kalev Lember <kalevlember gmail com>
Date: Tue Sep 2 00:18:37 2014 +0200
Don't use relative sizes for computing the category sidebar width
This can lead to the window unexpectedly resizing, depending on the
content. Instead, just hardcode the preferred width.
https://bugzilla.gnome.org/show_bug.cgi?id=734783
src/gs-shell-category.ui | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/gs-shell-category.ui b/src/gs-shell-category.ui
index fcb80b8..9172ad5 100644
--- a/src/gs-shell-category.ui
+++ b/src/gs-shell-category.ui
@@ -3,10 +3,11 @@
<requires lib="gtk+" version="3.10"/>
<template class="GsShellCategory" parent="GtkBin">
<child>
- <object class="GsBox" id="box_category">
+ <object class="GtkBox" id="box_category">
<property name="visible">True</property>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow_filter">
+ <property name="width-request">220</property>
<property name="visible">True</property>
<property name="margin-top">0</property>
<property name="margin-bottom">0</property>
@@ -28,9 +29,6 @@
</object>
</child>
</object>
- <packing>
- <property name="relative_size">0.5</property>
- </packing>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow_category">
@@ -70,9 +68,6 @@
</object>
</child>
</object>
- <packing>
- <property name="relative_size">2.0</property>
- </packing>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]