[gnome-online-accounts] Use GtkLabel:xalign instead of deprecated GtkMisc
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] Use GtkLabel:xalign instead of deprecated GtkMisc
- Date: Wed, 23 Mar 2016 17:58:34 +0000 (UTC)
commit a96987dca899ddaae716136be7a54a3fb665c078
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 23 18:56:00 2016 +0100
Use GtkLabel:xalign instead of deprecated GtkMisc
src/goabackend/goaimapsmtpprovider.c | 2 +-
src/goabackend/goamediaserverprovider.c | 6 +++---
src/goabackend/goaprovider.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/goabackend/goaimapsmtpprovider.c b/src/goabackend/goaimapsmtpprovider.c
index f8486c4..a0988b0 100644
--- a/src/goabackend/goaimapsmtpprovider.c
+++ b/src/goabackend/goaimapsmtpprovider.c
@@ -1481,10 +1481,10 @@ show_label (GtkWidget *grid, gint row, const gchar *left, const gchar *right)
gtk_grid_attach (GTK_GRID (grid), label, 0, row, 1, 1);
label = gtk_label_new (right);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
gtk_label_set_max_width_chars (GTK_LABEL (label), 24);
gtk_label_set_width_chars (GTK_LABEL (label), 24);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_grid_attach (GTK_GRID (grid), label, 1, row, 3, 1);
}
diff --git a/src/goabackend/goamediaserverprovider.c b/src/goabackend/goamediaserverprovider.c
index 7f9ab5c..087f428 100644
--- a/src/goabackend/goamediaserverprovider.c
+++ b/src/goabackend/goamediaserverprovider.c
@@ -225,7 +225,7 @@ add_list_box_row (GtkWidget *list_box,
gtk_widget_set_margin_end (label, 20);
gtk_widget_set_margin_top (label, 12);
gtk_widget_set_margin_bottom (label, 12);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_container_add (GTK_CONTAINER (row), label);
}
@@ -353,10 +353,10 @@ create_account_details_ui (GoaProvider *provider,
gtk_container_add (GTK_CONTAINER (vbox), grid0);
label = gtk_label_new (_("Personal content can be added to your applications through a media server
account."));
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_max_width_chars (GTK_LABEL (label), 40);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_container_add (GTK_CONTAINER (grid0), label);
grid1 = gtk_grid_new ();
@@ -365,9 +365,9 @@ create_account_details_ui (GoaProvider *provider,
gtk_container_add (GTK_CONTAINER (grid0), grid1);
label = gtk_label_new ("");
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
markup = g_strdup_printf ("<b>%s</b>", _("Available Media Servers"));
gtk_label_set_markup (GTK_LABEL (label), markup);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
g_free (markup);
gtk_container_add (GTK_CONTAINER (grid1), label);
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index 50f8b07..561d63d 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -1468,7 +1468,7 @@ goa_util_add_account_info (GtkGrid *grid, gint row, GoaObject *object)
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
gtk_label_set_max_width_chars (GTK_LABEL (label), 24);
gtk_label_set_width_chars (GTK_LABEL (label), 24);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_widget_set_margin_bottom (label, 12);
g_free (markup);
gtk_grid_attach (grid, label, 1, row, 3, 1);
@@ -1516,8 +1516,8 @@ goa_util_add_row_switch_from_keyfile_with_blurb (GtkGrid *grid,
GtkWidget *label;
label = gtk_label_new_with_mnemonic (blurb);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), switch_);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]