[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 09/27: Use gtk_widget_set_halign/valign instead of gtk_misc_set_alignment()

noreply at xfce.org noreply at xfce.org
Sat May 14 15:53:59 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-netload-plugin.

commit e93b708843d4c0c223c8bc8e20388c2d715ab347
Author: Skunnyk <skunnyk at alteroot.org>
Date:   Tue May 3 18:23:00 2016 +0200

    Use gtk_widget_set_halign/valign instead of gtk_misc_set_alignment()
---
 panel-plugin/netload.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c
index 49bb5ad..1ec6868 100644
--- a/panel-plugin/netload.c
+++ b/panel-plugin/netload.c
@@ -1046,7 +1046,7 @@ static void monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *gl
                         GTK_WIDGET(net_hbox), FALSE, FALSE, 0);
 
     device_label = gtk_label_new_with_mnemonic(_("Network _device:"));
-    gtk_misc_set_alignment(GTK_MISC(device_label), 0, 0.5);
+    gtk_widget_set_valign(device_label,GTK_ALIGN_CENTER);
     gtk_widget_show(GTK_WIDGET(device_label));
     gtk_box_pack_start(GTK_BOX(net_hbox), GTK_WIDGET(device_label),
                        FALSE, FALSE, 0);
@@ -1073,7 +1073,7 @@ static void monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *gl
                         GTK_WIDGET(update_hbox), FALSE, FALSE, 0);
     
     update_label = gtk_label_new_with_mnemonic(_("Update _interval:"));
-    gtk_misc_set_alignment(GTK_MISC(update_label), 0, 0.5);
+    gtk_widget_set_valign(update_label, GTK_ALIGN_CENTER);
     gtk_box_pack_start(GTK_BOX(update_hbox), GTK_WIDGET(update_label), FALSE, FALSE, 0);
 
     global->monitor->update_spinner = gtk_spin_button_new_with_range (0.1, 10.0, 0.05);
@@ -1129,7 +1129,7 @@ static void monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *gl
                     GTK_WIDGET(global->monitor->max_hbox[i]), FALSE, FALSE, 0);
         
         max_label[i] = gtk_label_new_with_mnemonic(_(maximum_text_label[i]));
-        gtk_misc_set_alignment(GTK_MISC(max_label[i]), 0, 0.5);
+        gtk_widget_set_valign(max_label[i], GTK_ALIGN_CENTER);
         gtk_widget_show(GTK_WIDGET(max_label[i]));
         gtk_box_pack_start(GTK_BOX(global->monitor->max_hbox[i]), GTK_WIDGET(max_label[i]), FALSE, FALSE, 0);
         
@@ -1173,7 +1173,7 @@ static void monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *gl
                        GTK_WIDGET(global->monitor->opt_present_data_hbox), FALSE, FALSE, 0);
 
     global->monitor->opt_present_data_label = gtk_label_new_with_mnemonic(_("_Present data as:"));
-    gtk_misc_set_alignment(GTK_MISC(global->monitor->opt_present_data_label), 0, 0.5);
+    gtk_widget_set_valign(global->monitor->opt_present_data_label, GTK_ALIGN_CENTER);
     gtk_widget_show(global->monitor->opt_present_data_label);
     gtk_box_pack_start(GTK_BOX(global->monitor->opt_present_data_hbox),
                        global->monitor->opt_present_data_label, FALSE, FALSE, 0);
@@ -1208,7 +1208,7 @@ static void monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *gl
                 GTK_WIDGET(global->monitor->opt_color_hbox[i]), FALSE, FALSE, 0);
 
         color_label[i] = gtk_label_new_with_mnemonic(_(color_text[i]));
-        gtk_misc_set_alignment(GTK_MISC(color_label[i]), 0, 0.5);
+        gtk_widget_set_valign(color_label[i], GTK_ALIGN_CENTER);
         gtk_widget_show(GTK_WIDGET(color_label[i]));
         gtk_box_pack_start(GTK_BOX(global->monitor->opt_color_hbox[i]), GTK_WIDGET(color_label[i]),
                 FALSE, FALSE, 0);

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


More information about the Xfce4-commits mailing list