[gnome-photos] Use GtkWidget's margin and alignment instead of deprecated GtkAlignment
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] Use GtkWidget's margin and alignment instead of deprecated GtkAlignment
- Date: Tue, 13 Oct 2015 15:14:24 +0000 (UTC)
commit 3712661493af1b03092ad80988865d00b28cc7d0
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Oct 13 17:10:42 2015 +0200
Use GtkWidget's margin and alignment instead of deprecated GtkAlignment
src/photos-print-setup.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/photos-print-setup.c b/src/photos-print-setup.c
index 4670cef..7dc01a1 100644
--- a/src/photos-print-setup.c
+++ b/src/photos-print-setup.c
@@ -713,7 +713,6 @@ on_preview_image_key_pressed (GtkWidget *widget, GdkEventKey *event, gpointer us
static GtkWidget *
photos_print_setup_wrap_in_frame (const gchar *label, GtkWidget *child)
{
- GtkWidget *alignment;
GtkWidget *frame;
GtkWidget *label_widget;
gchar *bold_text;
@@ -729,14 +728,13 @@ photos_print_setup_wrap_in_frame (const gchar *label, GtkWidget *child)
frame = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start (GTK_BOX (frame), label_widget, FALSE, FALSE, 0);
- alignment = gtk_alignment_new (0.0, 0.0, 1.0, 1.0);
- gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
- gtk_box_pack_start (GTK_BOX (frame), alignment, FALSE, FALSE, 0);
+ gtk_widget_set_margin_start (child, 12);
+ gtk_widget_set_halign (child, GTK_ALIGN_FILL);
+ gtk_widget_set_valign (child, GTK_ALIGN_FILL);
- gtk_container_add (GTK_CONTAINER (alignment), child);
+ gtk_box_pack_start (GTK_BOX (frame), child, FALSE, FALSE, 0);
gtk_widget_show (frame);
- gtk_widget_show (alignment);
return frame;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]