[Xfce4-commits] [panel-plugins/xfce4-battery-plugin] 12/15: Use gtk_container_set_border_width instead of gtk_container_border_width

noreply at xfce.org noreply at xfce.org
Sun May 29 08:36:57 CEST 2016


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

andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-battery-plugin.

commit a78e69a0813e582521ae40cc1ffcf7129b9f9e20
Author: Andre Miranda <andre42m at gmail.com>
Date:   Sat May 28 14:39:40 2016 -0300

    Use gtk_container_set_border_width instead of gtk_container_border_width
---
 panel-plugin/battery.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index 0bdc0de..f34ab87 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -1328,14 +1328,14 @@ battmon_create_options(XfcePanelPlugin *plugin, t_battmon *battmon)
 
     notebook = gtk_notebook_new ();
     gtk_widget_show (notebook);
-    gtk_container_border_width (GTK_CONTAINER(notebook), BORDER);
     gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dlg)->vbox), GTK_WIDGET(notebook),
+    gtk_container_set_border_width (GTK_CONTAINER(notebook), BORDER);
                         TRUE, TRUE, 0);
 
 
     /* Bar colors */
-    gtk_container_border_width (GTK_CONTAINER(vbox), BORDER);
     vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, BORDER);
+    gtk_container_set_border_width (GTK_CONTAINER(vbox), BORDER);
 
     /* Create size group to keep widgets aligned */
     sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
@@ -1401,8 +1401,8 @@ battmon_create_options(XfcePanelPlugin *plugin, t_battmon *battmon)
     sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
 
     /* Low and Critical percentage settings */
-    gtk_container_border_width (GTK_CONTAINER(vbox), BORDER);
     vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, BORDER);
+    gtk_container_set_border_width (GTK_CONTAINER(vbox), BORDER);
     hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER);
     gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
 
@@ -1501,8 +1501,8 @@ battmon_create_options(XfcePanelPlugin *plugin, t_battmon *battmon)
 
     /* Create checkbox options */
 
-    gtk_container_border_width (GTK_CONTAINER(vbox2), BORDER);
     vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, BORDER);
+    gtk_container_set_border_width (GTK_CONTAINER(vbox2), BORDER);
 
     dialog->cb_disp_label = gtk_check_button_new_with_mnemonic(_("Display label"));
     gtk_box_pack_start(GTK_BOX(vbox2), dialog->cb_disp_label, 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