[gnome-photos] Use margin-{start, end} instead of deprecated margin-{left, right}
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] Use margin-{start, end} instead of deprecated margin-{left, right}
- Date: Thu, 30 Jan 2014 15:55:20 +0000 (UTC)
commit 13e3930785c39e4c401b50529a91ade3373233cb
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 30 16:51:20 2014 +0100
Use margin-{start,end} instead of deprecated margin-{left,right}
src/photos-main-toolbar.c | 2 +-
src/photos-organize-collection-dialog.c | 6 +++---
src/photos-preview-nav-buttons.c | 10 +++++-----
src/photos-properties-dialog.c | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 92e178c..4e36611 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -263,7 +263,7 @@ photos_main_toolbar_add_remote_display_button (PhotosMainToolbar *self)
gd_header_button_set_use_markup (GD_HEADER_BUTTON (priv->remote_display_button), TRUE);
label = GTK_LABEL (gtk_bin_get_child (GTK_BIN (priv->remote_display_button)));
gtk_label_set_ellipsize (label, PANGO_ELLIPSIZE_MIDDLE);
- gtk_widget_set_margin_right (priv->remote_display_button, 12);
+ gtk_widget_set_margin_end (priv->remote_display_button, 12);
gtk_header_bar_pack_start (GTK_HEADER_BAR (priv->toolbar), priv->remote_display_button);
gtk_widget_show_all (priv->remote_display_button);
diff --git a/src/photos-organize-collection-dialog.c b/src/photos-organize-collection-dialog.c
index b39acca..3a0cd6f 100644
--- a/src/photos-organize-collection-dialog.c
+++ b/src/photos-organize-collection-dialog.c
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2014 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -80,8 +80,8 @@ photos_organize_collection_dialog_init (PhotosOrganizeCollectionDialog *self)
content_area = gtk_dialog_get_content_area (GTK_DIALOG (self));
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_IN);
- gtk_widget_set_margin_left (sw, 5);
- gtk_widget_set_margin_right (sw, 5);
+ gtk_widget_set_margin_start (sw, 5);
+ gtk_widget_set_margin_end (sw, 5);
gtk_widget_set_margin_bottom (sw, 3);
priv->coll_view = photos_organize_collection_view_new ();
diff --git a/src/photos-preview-nav-buttons.c b/src/photos-preview-nav-buttons.c
index c56c375..7bc9d15 100644
--- a/src/photos-preview-nav-buttons.c
+++ b/src/photos-preview-nav-buttons.c
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2013 Red Hat, Inc.
+ * Copyright © 2013, 2014 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -368,8 +368,8 @@ photos_preview_nav_buttons_constructed (GObject *object)
priv->prev_widget = gtk_revealer_new ();
gtk_widget_set_halign (priv->prev_widget, GTK_ALIGN_START);
- gtk_widget_set_margin_left (priv->prev_widget, 30);
- gtk_widget_set_margin_right (priv->prev_widget, 30);
+ gtk_widget_set_margin_start (priv->prev_widget, 30);
+ gtk_widget_set_margin_end (priv->prev_widget, 30);
gtk_widget_set_valign (priv->prev_widget, GTK_ALIGN_CENTER);
gtk_revealer_set_transition_type (GTK_REVEALER (priv->prev_widget),
GTK_REVEALER_TRANSITION_TYPE_CROSSFADE);
gtk_overlay_add_overlay (GTK_OVERLAY (priv->overlay), priv->prev_widget);
@@ -397,8 +397,8 @@ photos_preview_nav_buttons_constructed (GObject *object)
priv->next_widget = gtk_revealer_new ();
gtk_widget_set_halign (priv->next_widget, GTK_ALIGN_END);
- gtk_widget_set_margin_left (priv->next_widget, 30);
- gtk_widget_set_margin_right (priv->next_widget, 30);
+ gtk_widget_set_margin_start (priv->next_widget, 30);
+ gtk_widget_set_margin_end (priv->next_widget, 30);
gtk_widget_set_valign (priv->next_widget, GTK_ALIGN_CENTER);
gtk_revealer_set_transition_type (GTK_REVEALER (priv->next_widget),
GTK_REVEALER_TRANSITION_TYPE_CROSSFADE);
gtk_overlay_add_overlay (GTK_OVERLAY (priv->overlay), priv->next_widget);
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index 54ab7ac..7e4ec6f 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2012, 2013 Red Hat, Inc.
+ * Copyright © 2012, 2013, 2014 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -199,8 +199,8 @@ photos_properties_dialog_constructed (GObject *object)
priv->grid = gtk_grid_new ();
gtk_widget_set_halign (priv->grid, GTK_ALIGN_CENTER);
- gtk_widget_set_margin_left (priv->grid, 24);
- gtk_widget_set_margin_right (priv->grid, 24);
+ gtk_widget_set_margin_start (priv->grid, 24);
+ gtk_widget_set_margin_end (priv->grid, 24);
gtk_widget_set_margin_bottom (priv->grid, 12);
gtk_widget_set_margin_top (priv->grid, 12);
gtk_orientable_set_orientation (GTK_ORIENTABLE (priv->grid), GTK_ORIENTATION_VERTICAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]