[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 12/27: Stop using GtkAligment, directly set halign/valign

noreply at xfce.org noreply at xfce.org
Sat May 14 15:54:02 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 c3683dbaeaf81db4ef7c0ad99360425bd7535508
Author: Skunnyk <skunnyk at alteroot.org>
Date:   Tue May 3 18:26:40 2016 +0200

    Stop using GtkAligment, directly set halign/valign
---
 panel-plugin/netload.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c
index 666f429..2a107da 100644
--- a/panel-plugin/netload.c
+++ b/panel-plugin/netload.c
@@ -969,7 +969,6 @@ static void monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *gl
     GtkBox           *update_hbox;
     GtkWidget        *update_label, *update_unit_label;
     GtkWidget        *color_label[SUM];
-    GtkWidget        *align;
     gint             present_data_active;
     GtkSizeGroup     *sg;
     gint             i;
@@ -1246,10 +1245,8 @@ static void monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *gl
                 GTK_WIDGET(global->monitor->opt_vbox),
                 FALSE, FALSE, 0);
     
-    align = gtk_alignment_new(0, 0, 0, 0);
-    gtk_widget_set_size_request(align, 5, 5);
-    gtk_widget_show(GTK_WIDGET(align));
-    gtk_box_pack_start(GTK_BOX(vbox), GTK_WIDGET(align), FALSE, FALSE, 0);
+    gtk_widget_set_halign(GTK_WIDGET(vbox), GTK_ALIGN_START);
+    gtk_widget_set_valign(GTK_WIDGET(vbox), GTK_ALIGN_START);
 
     gtk_box_pack_start( GTK_BOX(global_vbox), GTK_WIDGET(vbox), 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