[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 02/03: Decrease default font size to 11 pt
noreply at xfce.org
noreply at xfce.org
Tue Apr 18 23:57:09 CEST 2017
This is an automated email from the git hooks/post-receive script.
timystery pushed a commit to branch master
in repository panel-plugins/xfce4-sensors-plugin.
commit 31b25b30a7a3d3aab1cc6eb6840ba7db5d780776
Author: Fabian <timystery at arcor.de>
Date: Tue Apr 18 23:00:06 2017 +0200
Decrease default font size to 11 pt
---
lib/configuration.c | 2 +-
lib/sensors-interface-common.c | 2 +-
lib/tacho.c | 2 +-
src/interface.c | 1 +
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/configuration.c b/lib/configuration.c
index 06a2bed..0dfddb3 100644
--- a/lib/configuration.c
+++ b/lib/configuration.c
@@ -240,7 +240,7 @@ sensors_read_general_config (XfceRc *ptr_xfceresources, t_sensors *ptr_sensors)
font = g_strdup(str_value); // in tacho.h for the tachometers
}
else if (font==NULL)
- font = g_strdup("Sans 12");
+ font = g_strdup("Sans 11");
ptr_sensors->val_fontsize = xfce_rc_read_int_entry (ptr_xfceresources,
"val_fontsize", 2);
diff --git a/lib/sensors-interface-common.c b/lib/sensors-interface-common.c
index cee1e5a..28f565e 100644
--- a/lib/sensors-interface-common.c
+++ b/lib/sensors-interface-common.c
@@ -128,7 +128,7 @@ sensors_init_default_values (t_sensors *sensors, XfcePanelPlugin *plugin)
sensors->show_smallspacings = FALSE;
- font = g_strdup("Sans 12");
+ font = g_strdup("Sans 11");
TRACE ("leaves sensors_init_default_values");
}
diff --git a/lib/tacho.c b/lib/tacho.c
index df29257..c669316 100644
--- a/lib/tacho.c
+++ b/lib/tacho.c
@@ -140,7 +140,7 @@ gtk_sensorstacho_class_init (GtkSensorsTachoClass *ptr_gtksensorstachoclass)
ptr_widgetclass->destroy = gtk_sensorstacho_destroy;
if (font==NULL)
- font = g_strdup("Sans 12");
+ font = g_strdup("Sans 11");
TRACE("leave gtk_sensorstacho_class_init\n");
}
diff --git a/src/interface.c b/src/interface.c
index dec84cd..7d43e48 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -99,6 +99,7 @@ add_notebook (GtkWidget *ptr_boxwidget, t_sensors_dialog *ptr_sensorsdialog)
ptr_fontbutton = gtk_font_button_new();
g_signal_connect (G_OBJECT(ptr_fontbutton), "font-set", G_CALLBACK(on_font_set), ptr_sensorsdialog);
+ gtk_font_button_set_font_name(GTK_FONT_BUTTON(ptr_fontbutton), "Sans 11");
gtk_widget_show (ptr_fontbutton);
gtk_box_pack_end (GTK_BOX(ptr_childvbox), ptr_fontbutton, 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