[giggle] giggle-short-list: gtk_misc_set_alignment
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] giggle-short-list: gtk_misc_set_alignment
- Date: Sun, 12 Jun 2011 16:34:35 +0000 (UTC)
commit 2b8dc61a76a8ac875b32cf27c15970061a420c28
Author: Diego Celix <dcelix gmail com>
Date: Sat Jun 11 04:00:50 2011 +0200
giggle-short-list: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
src/giggle-short-list.c
src/giggle-short-list.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/giggle-short-list.c b/src/giggle-short-list.c
index dbd1742..50f26c5 100644
--- a/src/giggle-short-list.c
+++ b/src/giggle-short-list.c
@@ -360,7 +360,8 @@ short_list_update_label_idle (gpointer user_data)
object, &text);
label = gtk_label_new (text);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
+ gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (priv->content_box), label, FALSE, FALSE, 0);
@@ -403,7 +404,8 @@ giggle_short_list_init (GiggleShortList *self)
priv->label = gtk_label_new (NULL);
gtk_label_set_attributes (GTK_LABEL (priv->label), attributes);
- gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
+ gtk_widget_set_halign (priv->label, GTK_ALIGN_START);
+ gtk_widget_set_valign (priv->label, GTK_ALIGN_CENTER);
gtk_box_pack_start (GTK_BOX (self), priv->label, FALSE, FALSE, 0);
pango_attr_list_unref (attributes);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]