Commit ce9660d5 authored by Stepan Salenikovich's avatar Stepan Salenikovich

main window: allow pane to be shrunk left or right

Most GNOME applications that use a pane allow the contents to
be shrunk so the user can resize the mane to the maximum in
either direction.

This patch also slightly increases the default window size and
allows labels to be ellipsized to improve the default starting
layout and the behaviour when resizing the pane.

Change-Id: Ib9547088640886ab956e50c3c7bf393beb0fed4c
Tuleap: #46
parent b9167f00
......@@ -116,6 +116,7 @@ ring_welcome_view_init(RingWelcomeView *self)
show_ring_id(GTK_LABEL(label_ringid), get_active_ring_account());
gtk_widget_set_no_show_all(label_ringid, TRUE);
gtk_box_pack_start(GTK_BOX(self), label_ringid, FALSE, TRUE, 0);
gtk_label_set_ellipsize(GTK_LABEL(label_ringid), PANGO_ELLIPSIZE_END);
if (get_active_ring_account()) {
gtk_widget_show(label_explanation);
......
......@@ -38,6 +38,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="selectable">True</property>
<property name="ellipsize">end</property>
<attributes>
<attribute name="scale" value="1.25"/>
</attributes>
......@@ -149,6 +150,7 @@
<object class="GtkLabel" id="label_status">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="expand">False</property>
......@@ -160,6 +162,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="selectable">True</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="expand">False</property>
......
......@@ -52,6 +52,7 @@
<property name="can_focus">True</property>
<property name="halign">center</property>
<property name="selectable">True</property>
<property name="ellipsize">end</property>
<attributes>
<attribute name="scale" value="1.5"/>
</attributes>
......@@ -85,6 +86,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Incoming...</property>
<property name="ellipsize">end</property>
<attributes>
<attribute name="foreground" value="#88888a8a8585"/>
</attributes>
......
......@@ -5,7 +5,7 @@
<template class="RingMainWindow" parent="GtkApplicationWindow">
<property name="can_focus">False</property>
<property name="show_menubar">False</property>
<property name="default-width">400</property>
<property name="default-width">600</property>
<property name="default-height">300</property>
<!-- header definition -->
<child type="titlebar">
......@@ -124,9 +124,7 @@
<object class="GtkPaned" id="paned_main">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="position-set">True</property>
<!-- TODO: save the user set position of the pane -->
<property name="position">350</property>
<child>
<object class="GtkBox" id="vbox_left_pane">
<property name="visible">True</property>
......@@ -251,7 +249,7 @@
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">False</property>
<property name="shrink">True</property>
</packing>
</child>
<!-- right side of pane -->
......@@ -312,7 +310,8 @@
<!-- end ring hash location -->
</object>
<packing>
<property name="shrink">False</property>
<property name="shrink">True</property>
<property name="resize">True</property>
</packing>
</child>
<!-- end of right side of pane -->
......@@ -321,7 +320,6 @@
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment