[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 01/01: Improved spacing (Bug #14661)
noreply at xfce.org
noreply at xfce.org
Tue Sep 4 02:43:36 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-cpufreq-plugin.
commit 1c834a7b50e498dcf5e57899bad5ee1746914a69
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Mon Sep 3 07:38:01 2018 -0400
Improved spacing (Bug #14661)
---
panel-plugin/xfce4-cpufreq-configure.c | 37 +++++++++++++---------------------
1 file changed, 14 insertions(+), 23 deletions(-)
diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c
index 52bff99..7139ca5 100644
--- a/panel-plugin/xfce4-cpufreq-configure.c
+++ b/panel-plugin/xfce4-cpufreq-configure.c
@@ -18,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#define BORDER 1
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -211,6 +210,8 @@ cpufreq_configure (XfcePanelPlugin *plugin)
g_object_set_data (G_OBJECT (cpuFreq->plugin), "configure", dialog);
dialog_vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
+ gtk_container_set_border_width (GTK_CONTAINER (dialog_vbox), 12);
+ gtk_box_set_spacing (GTK_BOX (dialog_vbox), 18);
sg0 = gtk_size_group_new(GTK_SIZE_GROUP_BOTH);
@@ -223,24 +224,18 @@ cpufreq_configure (XfcePanelPlugin *plugin)
gtk_frame_set_label_widget (GTK_FRAME (frame), label);
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
- align = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1);
+ align = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_set_halign(align, GTK_ALIGN_START);
gtk_widget_set_valign(align, GTK_ALIGN_CENTER);
gtk_widget_set_hexpand(align, TRUE);
gtk_widget_set_vexpand(align, TRUE);
gtk_container_add (GTK_CONTAINER (frame), align);
- gtk_widget_set_margin_top (align, 0);
- gtk_widget_set_margin_bottom (align, 0);
- gtk_widget_set_margin_start (align, BORDER * 3);
- gtk_widget_set_margin_end (align, 0);
+ gtk_widget_set_margin_top (align, 6);
+ gtk_widget_set_margin_start (align, 12);
- vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, BORDER);
- gtk_container_add (GTK_CONTAINER (align), vbox);
- 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);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+ gtk_container_add (GTK_CONTAINER (align), hbox);
label = gtk_label_new_with_mnemonic (_("_Update interval:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
@@ -254,7 +249,6 @@ cpufreq_configure (XfcePanelPlugin *plugin)
gtk_box_pack_start (GTK_BOX (hbox), spinner, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (spinner), "value-changed", G_CALLBACK (spinner_changed), configure);
-
/* panel behaviours */
frame = gtk_frame_new (NULL);
gtk_box_pack_start (GTK_BOX (dialog_vbox), frame, FALSE, TRUE, 0);
@@ -264,24 +258,21 @@ cpufreq_configure (XfcePanelPlugin *plugin)
gtk_frame_set_label_widget (GTK_FRAME (frame), label);
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
- align = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1);
+ align = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_set_halign(align, GTK_ALIGN_FILL);
gtk_widget_set_valign(align, GTK_ALIGN_CENTER);
gtk_widget_set_hexpand(align, TRUE);
gtk_widget_set_vexpand(align, TRUE);
gtk_container_add (GTK_CONTAINER (frame), align);
- gtk_widget_set_margin_top (align, 0);
- gtk_widget_set_margin_bottom (align, 0);
- gtk_widget_set_margin_start (align, BORDER * 3);
- gtk_widget_set_margin_end (align, 0);
+ gtk_widget_set_margin_top (align, 6);
+ gtk_widget_set_margin_start (align, 12);
- vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, BORDER);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_add (GTK_CONTAINER (align), vbox);
- gtk_container_set_border_width (GTK_CONTAINER (vbox), BORDER);
/* font settings */
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BORDER);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new_with_mnemonic (_("_Font:"));
@@ -300,7 +291,7 @@ cpufreq_configure (XfcePanelPlugin *plugin)
button_fontname_update (button, FALSE);
/* font color */
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BORDER);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new_with_mnemonic (_("_Font color:"));
@@ -320,7 +311,7 @@ cpufreq_configure (XfcePanelPlugin *plugin)
g_free (color);
/* which cpu to show in panel */
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BORDER);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new_with_mnemonic (_("_Display CPU:"));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list