Remove use of deprecated properties

This commit is contained in:
Jesse van den Kieboom 2014-07-12 00:50:05 +02:00
parent 619a8bcd5f
commit 5c678a29b4
2 changed files with 8 additions and 8 deletions

View file

@ -100,12 +100,12 @@ private class RefRow : RefTyped, Gtk.ListBoxRow
if (reference != null) if (reference != null)
{ {
margin_left += 12; margin_start += 12;
} }
if (ref_type == Gitg.RefType.REMOTE) if (ref_type == Gitg.RefType.REMOTE)
{ {
margin_left += 12; margin_start += 12;
} }
d_revealer.notify["child-revealed"].connect(on_child_revealed); d_revealer.notify["child-revealed"].connect(on_child_revealed);
@ -338,14 +338,14 @@ private class RefHeader : RefTyped, Gtk.ListBoxRow
var escaped = Markup.escape_text(name); var escaped = Markup.escape_text(name);
d_label.set_markup(@"<b>$escaped</b>"); d_label.set_markup(@"<b>$escaped</b>");
d_label.xalign = 0; d_label.halign = Gtk.Align.START;
d_name = name; d_name = name;
d_rtype = rtype; d_rtype = rtype;
d_label.margin_top = 3; d_label.margin_top = 3;
d_label.margin_bottom = 3; d_label.margin_bottom = 3;
d_label.margin_left = 16; d_label.margin_start = 16;
} }
public RefHeader.remote(string name) public RefHeader.remote(string name)
@ -353,7 +353,7 @@ private class RefHeader : RefTyped, Gtk.ListBoxRow
this(Gitg.RefType.REMOTE, name); this(Gitg.RefType.REMOTE, name);
d_is_sub_header_remote = true; d_is_sub_header_remote = true;
d_label.margin_left += 12; d_label.margin_start += 12;
} }
public bool is_sub_header_remote public bool is_sub_header_remote

View file

@ -15,10 +15,10 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="orientation">horizontal</property> <property name="orientation">horizontal</property>
<property name="spacing">6</property> <property name="spacing">6</property>
<property name="margin_left">18</property> <property name="margin_start">18</property>
<property name="margin_top">3</property> <property name="margin_top">3</property>
<property name="margin_bottom">3</property> <property name="margin_bottom">3</property>
<property name="margin_right">3</property> <property name="margin_end">3</property>
<child> <child>
<object class="GtkImage" id="d_icon"> <object class="GtkImage" id="d_icon">
<property name="icon_size">1</property> <property name="icon_size">1</property>
@ -28,7 +28,7 @@
<object class="GtkLabel" id="d_label"> <object class="GtkLabel" id="d_label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="ellipsize">middle</property> <property name="ellipsize">middle</property>
<property name="xalign">0</property> <property name="halign">start</property>
</object> </object>
</child> </child>
</object> </object>