[gnome-control-center/gnome-3-14] printers: Improve scrolling in new printers list
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-14] printers: Improve scrolling in new printers list
- Date: Wed, 5 Nov 2014 14:58:51 +0000 (UTC)
commit 9d6006c0eb053ed694709d1f6acbc717542d5a2a
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 3 21:04:34 2014 -0500
printers: Improve scrolling in new printers list
In order to automatically keep the selected row scrolled in view,
the treeview must be a direct child of the scrolled window. Make
it so by flipping the order of the stack and the scrolled window.
https://bugzilla.gnome.org/show_bug.cgi?id=739600
panels/printers/new-printer-dialog.ui | 42 ++++++++++++++++----------------
1 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/panels/printers/new-printer-dialog.ui b/panels/printers/new-printer-dialog.ui
index 1f9a115..751bce2 100644
--- a/panels/printers/new-printer-dialog.ui
+++ b/panels/printers/new-printer-dialog.ui
@@ -122,15 +122,15 @@
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
- <object class="GtkScrolledWindow" id="scrolledwindow1">
+ <object class="GtkStack" id="stack">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="shadow_type">in</property>
+ <property name="transition-type">none</property>
<child>
- <object class="GtkStack" id="stack">
+ <object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="transition-type">none</property>
+ <property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="devices-treeview">
<property name="visible">True</property>
@@ -141,25 +141,25 @@
<object class="GtkTreeSelection" id="treeview-selection"/>
</child>
</object>
- <packing>
- <property name="name">standard-page</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="no-devices-label">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="sensitive">False</property>
- <property name="label" translatable="yes" comments="Translators: No printers
were found">No printers detected.</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
- </object>
- <packing>
- <property name="name">no-printers-page</property>
- </packing>
</child>
</object>
+ <packing>
+ <property name="name">standard-page</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="no-devices-label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="sensitive">False</property>
+ <property name="label" translatable="yes" comments="Translators: No printers were
found">No printers detected.</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="name">no-printers-page</property>
+ </packing>
</child>
</object>
<packing>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]