[Xfce4-commits] [panel-plugins/xfce4-systemload-plugin] 12/16: Use gtk_widget_set_halign/valign instead of gtk_misc_set_alignment()

noreply at xfce.org noreply at xfce.org
Fri Apr 29 16:07:29 CEST 2016


This is an automated email from the git hooks/post-receive script.

landry pushed a commit to branch master
in repository panel-plugins/xfce4-systemload-plugin.

commit 6954a02a357821440203135a4366188addc9856e
Author: Landry Breuil <landry at xfce.org>
Date:   Fri Apr 29 12:56:33 2016 +0200

    Use gtk_widget_set_halign/valign instead of gtk_misc_set_alignment()
---
 panel-plugin/systemload.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index faa7da5..af2f5ec 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -782,7 +782,8 @@ static GtkWidget *new_label_or_check_button(t_global_monitor *global,
                           G_CALLBACK(check_button_cb), global);
     } else {
         label = gtk_label_new_with_mnemonic (labeltext);
-        gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5f); \
+        gtk_widget_set_halign(label, GTK_ALIGN_END);
+        gtk_widget_set_valign(label, GTK_ALIGN_CENTER);
         gtk_label_set_mnemonic_widget(GTK_LABEL(label), target);
     }
     return label;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list