[gnome-photos] main-toolbar: Set column spacing on the center container
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-toolbar: Set column spacing on the center container
- Date: Sat, 14 Jul 2012 13:35:55 +0000 (UTC)
commit b95310375d0418d3d741055f9643f04a68ccbf62
Author: Debarshi Ray <debarshir gnome org>
Date: Sat May 12 23:39:21 2012 +0200
main-toolbar: Set column spacing on the center container
Instead of using a margin on the detail label; this ensures the spacing
stays constant even with RTL containers.
Original patch from Cosimo Cecchi for gnome-documents.
src/gd-main-toolbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gd-main-toolbar.c b/src/gd-main-toolbar.c
index df338aa..4992b14 100644
--- a/src/gd-main-toolbar.c
+++ b/src/gd-main-toolbar.c
@@ -173,6 +173,7 @@ gd_main_toolbar_constructed (GObject *obj)
grid = gtk_grid_new ();
gtk_widget_set_halign (grid, GTK_ALIGN_CENTER);
gtk_widget_set_valign (grid, GTK_ALIGN_CENTER);
+ gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
gtk_container_add (GTK_CONTAINER (self->priv->center_group), grid);
self->priv->title_label = gtk_label_new (NULL);
@@ -181,7 +182,6 @@ gd_main_toolbar_constructed (GObject *obj)
self->priv->detail_label = gtk_label_new (NULL);
gtk_widget_set_no_show_all (self->priv->detail_label, TRUE);
- gtk_widget_set_margin_left (self->priv->detail_label, 12);
gtk_style_context_add_class (gtk_widget_get_style_context (self->priv->detail_label), "dim-label");
gtk_container_add (GTK_CONTAINER (grid), self->priv->detail_label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]