[gnome-boxes] wizard-source: Drop usage of deprecated Gtk.Alignment
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard-source: Drop usage of deprecated Gtk.Alignment
- Date: Mon, 30 Jun 2014 18:05:51 +0000 (UTC)
commit bb8846ade0036cb3796d0e634d168de79b8234cf
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Jun 30 17:46:18 2014 +0100
wizard-source: Drop usage of deprecated Gtk.Alignment
data/ui/wizard-source.ui | 68 +++++++++++++++++++++-------------------------
src/wizard-source.vala | 4 +-
2 files changed, 33 insertions(+), 39 deletions(-)
---
diff --git a/data/ui/wizard-source.ui b/data/ui/wizard-source.ui
index 0304368..4190211 100644
--- a/data/ui/wizard-source.ui
+++ b/data/ui/wizard-source.ui
@@ -213,61 +213,55 @@
</child>
<child>
- <object class="GtkAlignment" id="url_entry_bin">
+ <object class="GtkBox" id="url_entry_vbox">
<property name="visible">True</property>
- <property name="halign">start</property>
- <property name="valign">start</property>
- <property name="xscale">1</property>
- <property name="yscale">1</property>
+ <property name="spacing">20</property>
+ <property name="orientation">vertical</property>
<style>
<class name="boxes-menu-row"/>
</style>
+
<child>
- <object class="GtkBox" id="url_entry_vbox">
+ <object class="GtkEntry" id="url_entry">
<property name="visible">True</property>
<property name="margin-top">10</property>
+ <property name="margin-left">20</property>
+ <property name="margin-right">20</property>
+ </object>
+ </child>
+
+ <child>
+ <object class="GtkBox" id="url_entry_hbox">
+ <property name="visible">True</property>
<property name="margin-bottom">10</property>
<property name="margin-left">20</property>
<property name="margin-right">20</property>
- <property name="spacing">20</property>
- <property name="orientation">vertical</property>
+ <property name="spacing">0</property>
+ <property name="orientation">horizontal</property>
<child>
- <object class="GtkEntry" id="url_entry">
+ <object class="GtkImage" id="url_image">
<property name="visible">True</property>
+ <property name="icon-name">network-workgroup</property>
+ <property name="icon-size">0</property>
+ <property name="pixel-size">96</property>
</object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
</child>
<child>
- <object class="GtkBox" id="url_entry_hbox">
+ <object class="GtkLabel" id="url_description_label">
<property name="visible">True</property>
- <property name="spacing">0</property>
- <property name="orientation">horizontal</property>
- <child>
- <object class="GtkImage" id="url_image">
- <property name="visible">True</property>
- <property name="icon-name">network-workgroup</property>
- <property name="icon-size">0</property>
- <property name="pixel-size">96</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <object class="GtkLabel" id="url_description_label">
- <property name="visible">True</property>
- <property name="use-markup">True</property>
- <property name="wrap">True</property>
- <property name="halign">start</property>
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
+ <property name="use-markup">True</property>
+ <property name="wrap">True</property>
+ <property name="halign">start</property>
</object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
</child>
</object>
</child>
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index e70b621..6f30294 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -118,7 +118,7 @@ private class Boxes.WizardSource: Gtk.Stack {
[GtkChild]
private Gtk.Image url_image;
[GtkChild]
- private Gtk.Alignment url_entry_bin;
+ private Gtk.Box url_entry_vbox;
[GtkChild]
public Gtk.Entry url_entry;
[GtkChild]
@@ -163,7 +163,7 @@ private class Boxes.WizardSource: Gtk.Stack {
var num_visible = (Gdk.Screen.height () > 800)? 5 : 4;
media_scrolled.setup (num_visible);
media_vbox = media_scrolled.vbox;
- draw_as_css_box (url_entry_bin);
+ draw_as_css_box (url_entry_vbox);
update_libvirt_sytem_entry_visibility.begin ();
add_media_entries.begin ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]