[gnome-contacts] Fix GtkGrid spacing
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Fix GtkGrid spacing
- Date: Wed, 21 Sep 2011 14:05:52 +0000 (UTC)
commit 672310688dea5a10002b68a4e38d0290afd989e9
Author: Alexander Larsson <alexl redhat com>
Date: Wed Sep 21 10:42:22 2011 +0200
Fix GtkGrid spacing
GtkGrid swapped behaviour with set_column_spacing and set_row_spacing,
this updates our use of these to the new behaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=659632
src/contacts-contact-pane.vala | 2 +-
src/contacts-contact.vala | 2 +-
src/contacts-details-layout.vala | 6 +++---
src/contacts-link-dialog.vala | 6 +++---
src/contacts-list-pane.vala | 2 +-
src/contacts-menu-button.vala | 2 +-
6 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index ccb6a51..1432572 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1279,7 +1279,7 @@ public class Contacts.ContactPane : Grid {
}
edit_persona_grid = new Grid ();
- edit_persona_grid.set_row_spacing (0);
+ edit_persona_grid.set_column_spacing (0);
edit_persona_grid.set_halign (Align.START);
edit_persona_grid.set_valign (Align.END);
edit_persona_grid.set_vexpand (true);
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 12f26f5..45b6d82 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -76,7 +76,7 @@ public class Contacts.ContactPresence : Grid {
public ContactPresence (Contact contact) {
this.contact = contact;
- this.set_row_spacing (4);
+ this.set_column_spacing (4);
image = new Image ();
image.set_no_show_all (true);
this.add (image);
diff --git a/src/contacts-details-layout.vala b/src/contacts-details-layout.vala
index a68b5a2..978c4d9 100644
--- a/src/contacts-details-layout.vala
+++ b/src/contacts-details-layout.vala
@@ -32,7 +32,7 @@ class Contacts.DetailsLayout : Object {
shared_state = s;
grid = new Grid ();
grid.set_orientation (Orientation.VERTICAL);
- grid.set_column_spacing (3);
+ grid.set_row_spacing (3);
}
SharedState shared_state;
@@ -54,8 +54,8 @@ class Contacts.DetailsLayout : Object {
void new_row () {
var row = new Grid ();
last_label = null;
- row.set_row_spacing (9);
- row.set_column_spacing (3);
+ row.set_column_spacing (9);
+ row.set_row_spacing (3);
row.set_orientation (Orientation.HORIZONTAL);
current_row = row;
grid.add (row);
diff --git a/src/contacts-link-dialog.vala b/src/contacts-link-dialog.vala
index bcd713d..aa74d25 100644
--- a/src/contacts-link-dialog.vala
+++ b/src/contacts-link-dialog.vala
@@ -107,7 +107,7 @@ public class Contacts.LinkDialog : Dialog {
var grid = new Grid ();
var container = (get_content_area () as Container);
grid.set_border_width (8);
- grid.set_row_spacing (12);
+ grid.set_column_spacing (12);
container.add (grid);
var label = new Label (_("Select contacts to link to %s").printf (contact.display_name));
@@ -188,12 +188,12 @@ public class Contacts.LinkDialog : Dialog {
var right_grid = new Grid ();
right_grid.set_orientation (Orientation.VERTICAL);
right_grid.set_border_width (10);
- right_grid.set_column_spacing (8);
+ right_grid.set_row_spacing (8);
grid.attach (right_grid, 1, 1, 1, 1);
persona_grid = new Grid ();
persona_grid.set_orientation (Orientation.VERTICAL);
- persona_grid.set_row_spacing (8);
+ persona_grid.set_column_spacing (8);
right_grid.add (persona_grid);
update_personas ();
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala
index 0da3ce7..bd920bf 100644
--- a/src/contacts-list-pane.vala
+++ b/src/contacts-list-pane.vala
@@ -137,7 +137,7 @@ public class Contacts.ListPane : Frame {
empty_box.override_background_color (StateFlags.NORMAL, white);
var empty_grid = new Grid ();
- empty_grid.set_column_spacing (8);
+ empty_grid.set_row_spacing (8);
empty_grid.set_orientation (Orientation.VERTICAL);
empty_grid.set_valign (Align.CENTER);
diff --git a/src/contacts-menu-button.vala b/src/contacts-menu-button.vala
index e92701f..0b086aa 100644
--- a/src/contacts-menu-button.vala
+++ b/src/contacts-menu-button.vala
@@ -31,7 +31,7 @@ public class Contacts.MenuButton : ToggleButton {
grid.set_orientation (Orientation.HORIZONTAL);
grid.add (label_widget);
grid.add (arrow);
- grid.set_row_spacing (3);
+ grid.set_column_spacing (3);
grid.set_hexpand (true);
grid.set_halign (Align.CENTER);
this.add (grid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]