[eog] Replace remaining uses of margin-left and margin-right properties



commit 00641d24f94fd69c033d41c9314eec9a9f269f17
Author: Felix Riemann <friemann gnome org>
Date:   Sun Aug 10 15:20:52 2014 +0200

    Replace remaining uses of margin-left and margin-right properties
    
    Replaced with margin-start and margin-end, which should make
    EogMetadataSidebar's layout in RTL environments more similar to the
    LTR layout.

 src/eog-metadata-sidebar.c |    6 +++---
 src/eog-statusbar.c        |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/eog-metadata-sidebar.c b/src/eog-metadata-sidebar.c
index 9bcacbe..2ff6d4f 100644
--- a/src/eog-metadata-sidebar.c
+++ b/src/eog-metadata-sidebar.c
@@ -143,7 +143,7 @@ _gtk_grid_append_prop_line (GtkGrid *grid, GtkWidget *sibling,
                gtk_widget_set_halign (*data_label, GTK_ALIGN_START);
                gtk_widget_set_valign (*data_label, GTK_ALIGN_START);
                // Add a small margin to make it a sublabel to the first label
-               gtk_widget_set_margin_left (*data_label, 12);
+               gtk_widget_set_margin_start (*data_label, 12);
                gtk_box_pack_end (GTK_BOX(box), *data_label, FALSE, FALSE, 0);
        }
        gtk_grid_attach_next_to (grid, box, sibling, GTK_POS_BOTTOM,  2, 1);
@@ -514,8 +514,8 @@ eog_metadata_sidebar_init (EogMetadataSidebar *sidebar)
        priv->folder_button = gtk_button_new_with_label ("");
        g_signal_connect (priv->folder_button, "clicked",
                          G_CALLBACK (_folder_button_clicked_cb), sidebar);
-       gtk_widget_set_margin_left (priv->folder_button, 12);
-       gtk_widget_set_margin_right (priv->folder_button, 12);
+       gtk_widget_set_margin_start (priv->folder_button, 12);
+       gtk_widget_set_margin_end (priv->folder_button, 12);
        gtk_widget_set_margin_top (priv->folder_button, 3);
        gtk_widget_set_tooltip_text (priv->folder_button, _("Show the folder "
                               "which contains this file in the file manager"));
diff --git a/src/eog-statusbar.c b/src/eog-statusbar.c
index 3890452..52c7435 100644
--- a/src/eog-statusbar.c
+++ b/src/eog-statusbar.c
@@ -81,8 +81,8 @@ eog_statusbar_init (EogStatusbar *statusbar)
 
        /* Set margins by hand to avoid causing redraws due to the statusbar
         * becoming too small for the progressbar */
-       gtk_widget_set_margin_left (priv->progressbar, 2);
-       gtk_widget_set_margin_right (priv->progressbar, 2);
+       gtk_widget_set_margin_start (priv->progressbar, 2);
+       gtk_widget_set_margin_end (priv->progressbar, 2);
        gtk_widget_set_margin_top (priv->progressbar, 1);
        gtk_widget_set_margin_bottom (priv->progressbar, 0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]