[ease/themes] [ui] Add padding to the bottom of WelcomeWindow
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/themes] [ui] Add padding to the bottom of WelcomeWindow
- Date: Wed, 21 Jul 2010 22:07:50 +0000 (UTC)
commit 705996a5e7ebd51de3900d9baae561a41048cf6d
Author: Nate Stedman <natesm gmail com>
Date: Wed Jul 21 18:07:14 2010 -0400
[ui] Add padding to the bottom of WelcomeWindow
data/ui/welcome-window.ui | 132 ++++++++++++++++++++++++------------------
src/ease-welcome-window.vala | 6 +-
2 files changed, 79 insertions(+), 59 deletions(-)
---
diff --git a/data/ui/welcome-window.ui b/data/ui/welcome-window.ui
index ed237c7..a607848 100644
--- a/data/ui/welcome-window.ui
+++ b/data/ui/welcome-window.ui
@@ -8,66 +8,86 @@
<placeholder/>
</child>
<child>
- <object class="GtkHBox" id="hbox1">
+ <object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
+ <property name="top_padding">4</property>
+ <property name="bottom_padding">4</property>
+ <property name="left_padding">4</property>
+ <property name="right_padding">4</property>
<child>
- <object class="GtkComboBox" id="combo_resolution">
+ <object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
+ <property name="spacing">4</property>
+ <child>
+ <object class="GtkComboBox" id="combo_resolution">
+ <property name="visible">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="horiz_spin">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">•</property>
+ <property name="adjustment">adjustment1</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="vert_spin">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">•</property>
+ <property name="adjustment">adjustment2</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="newpres">
+ <property name="label" translatable="yes">_New presentation</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_underline">True</property>
+ <signal name="clicked" handler="ease_welcome_window_create_new_document"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <object class="GtkButton" id="openpres">
+ <property name="label">gtk-open</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="ease_welcome_window_on_open_pres_button_clicked"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">5</property>
+ </packing>
+ </child>
</object>
- <packing>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkSpinButton" id="horiz_spin">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="invisible_char">●</property>
- <property name="adjustment">adjustment1</property>
- </object>
- <packing>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkSpinButton" id="vert_spin">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="invisible_char">●</property>
- <property name="adjustment">adjustment2</property>
- </object>
- <packing>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="newpres">
- <property name="label" translatable="yes">_New presentation</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_underline">True</property>
- <signal name="clicked" handler="ease_welcome_window_create_new_document"/>
- </object>
- <packing>
- <property name="position">3</property>
- </packing>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <object class="GtkButton" id="openpres">
- <property name="label">gtk-open</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="ease_welcome_window_on_open_pres_button_clicked"/>
- </object>
- <packing>
- <property name="position">5</property>
- </packing>
</child>
</object>
<packing>
diff --git a/src/ease-welcome-window.vala b/src/ease-welcome-window.vala
index 1763b7c..0a7d4a5 100644
--- a/src/ease-welcome-window.vala
+++ b/src/ease-welcome-window.vala
@@ -107,9 +107,9 @@ public class Ease.WelcomeWindow : Gtk.Window
open_pres_button = builder.get_object ("openpres") as Gtk.Button;
// zoom slider
- zoom_slider = new ZoomSlider(new Gtk.Adjustment(100, 100, 400, 10,
- 50, 50), ZOOM_VALUES);
- hbox.pack_start (zoom_slider, false, false);
+ zoom_slider = new AnimatedZoomSlider(new Gtk.Adjustment(100, 100, 400,
+ 10, 50, 50), ZOOM_VALUES);
+ hbox.pack_start (zoom_slider, true, false, 0);
hbox.reorder_child (zoom_slider, 4);
// Resolutions combo box
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]