[gnome-photos] Use GtkLabel:yalign instead of deprecated GtkMisc
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] Use GtkLabel:yalign instead of deprecated GtkMisc
- Date: Tue, 13 Oct 2015 14:59:29 +0000 (UTC)
commit 20bc4268fce61f1eddbd231fec0e218f00cc773c
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Dec 11 14:02:52 2014 +0100
Use GtkLabel:yalign instead of deprecated GtkMisc
src/photos-empty-results-box.c | 4 ++--
src/photos-print-setup.c | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/photos-empty-results-box.c b/src/photos-empty-results-box.c
index cae35e5..80c53ae 100644
--- a/src/photos-empty-results-box.c
+++ b/src/photos-empty-results-box.c
@@ -112,10 +112,10 @@ photos_empty_results_box_add_collections_label (PhotosEmptyResultsBox *self)
details = gtk_label_new (_("Name your first album"));
gtk_widget_set_halign (details, GTK_ALIGN_START);
- gtk_misc_set_alignment (GTK_MISC (details), 0.0, 0.5);
gtk_label_set_line_wrap (GTK_LABEL (details), TRUE);
gtk_label_set_max_width_chars (GTK_LABEL (details), 24);
gtk_label_set_use_markup (GTK_LABEL (details), TRUE);
+ gtk_label_set_xalign (GTK_LABEL (details), 0.0);
gtk_container_add (GTK_CONTAINER (self->priv->labels_grid), details);
}
@@ -140,10 +140,10 @@ photos_empty_results_box_add_system_settings_label (PhotosEmptyResultsBox *self)
details = gtk_label_new (details_str);
gtk_widget_set_halign (details, GTK_ALIGN_START);
- gtk_misc_set_alignment (GTK_MISC (details), 0.0, 0.5);
gtk_label_set_line_wrap (GTK_LABEL (details), TRUE);
gtk_label_set_max_width_chars (GTK_LABEL (details), 24);
gtk_label_set_use_markup (GTK_LABEL (details), TRUE);
+ gtk_label_set_xalign (GTK_LABEL (details), 0.0);
gtk_container_add (GTK_CONTAINER (self->priv->labels_grid), details);
g_signal_connect_swapped (details, "activate-link", G_CALLBACK (photos_empty_results_box_activate_link),
self);
diff --git a/src/photos-print-setup.c b/src/photos-print-setup.c
index 4a79d10..4670cef 100644
--- a/src/photos-print-setup.c
+++ b/src/photos-print-setup.c
@@ -1,7 +1,7 @@
/*
* Photos - access, organize and share your photos on GNOME
* Copyright © 2006, 2007 The Free Software Foundation
- * Copyright © 2013 Red Hat, Inc.
+ * Copyright © 2013, 2015 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
@@ -719,7 +719,7 @@ photos_print_setup_wrap_in_frame (const gchar *label, GtkWidget *child)
gchar *bold_text;
label_widget = gtk_label_new ("");
- gtk_misc_set_alignment (GTK_MISC (label_widget), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (label_widget), 0.0);
gtk_widget_show (label_widget);
bold_text = g_markup_printf_escaped ("<b>%s</b>", label);
@@ -749,7 +749,7 @@ grid_attach_spin_button_with_label (GtkWidget *grid, const gchar* text_label, gi
GtkWidget *spin_button;
label = gtk_label_new_with_mnemonic (text_label);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
spin_button = gtk_spin_button_new_with_range (0, 100, 0.01);
gtk_spin_button_set_digits (GTK_SPIN_BUTTON (spin_button), 2);
gtk_entry_set_width_chars (GTK_ENTRY (spin_button), 6);
@@ -912,7 +912,7 @@ photos_print_setup_init (PhotosPrintSetup *self)
priv->bottom = grid_attach_spin_button_with_label (grid, _("_Bottom:"), 2, 1);
label = gtk_label_new_with_mnemonic (_("C_enter:"));
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
combobox = gtk_combo_box_text_new ();
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combobox), CENTER_NONE, _("None"));
@@ -947,7 +947,7 @@ photos_print_setup_init (PhotosPrintSetup *self)
priv->scaling = hscale;
label = gtk_label_new_with_mnemonic (_("_Unit:"));
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
combobox = gtk_combo_box_text_new ();
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combobox), UNIT_MM, _("Millimeters"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]