[gitg] Make sure to reset alignment if needed
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Make sure to reset alignment if needed
- Date: Sat, 4 Jan 2014 23:45:49 +0000 (UTC)
commit 618e73635a8888b92e8298d6748b4051732a5086
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Jan 5 00:45:00 2014 +0100
Make sure to reset alignment if needed
gitg/commit/gitg-commit-dialog.vala | 8 ++++++++
gitg/resources/ui/gitg-commit-dialog.ui | 2 --
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gitg/commit/gitg-commit-dialog.vala b/gitg/commit/gitg-commit-dialog.vala
index 3a485eb..ff752ab 100644
--- a/gitg/commit/gitg-commit-dialog.vala
+++ b/gitg/commit/gitg-commit-dialog.vala
@@ -306,6 +306,10 @@ class Dialog : Gtk.Dialog
{
d_label_user.xalign = 1.0f;
}
+ else
+ {
+ d_label_user.xalign = 0.0f;
+ }
var t = d_author.get_time();
var now = new DateTime.now_local();
@@ -326,6 +330,10 @@ class Dialog : Gtk.Dialog
{
d_label_date.xalign = 1.0f;
}
+ else
+ {
+ d_label_date.xalign = 0.0f;
+ }
var ac = Gitg.AvatarCache.default();
d_cancel_avatar = new Cancellable();
diff --git a/gitg/resources/ui/gitg-commit-dialog.ui b/gitg/resources/ui/gitg-commit-dialog.ui
index 7f8a160..4a1a659 100644
--- a/gitg/resources/ui/gitg-commit-dialog.ui
+++ b/gitg/resources/ui/gitg-commit-dialog.ui
@@ -83,7 +83,6 @@
<property name="can_focus">False</property>
<property name="valign">end</property>
<property name="hexpand">True</property>
- <property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -98,7 +97,6 @@
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
- <property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]