[Xfce4-commits] [apps/xfdashboard] 03/05: A little bit of nicer configuration dialog for clock view plugin

noreply at xfce.org noreply at xfce.org
Thu Feb 25 15:12:04 CET 2016


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

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 8df1aa731dc4da6ac51d2f409c6f8a2c0856c02b
Author: Stephan Haller <nomad at froevel.de>
Date:   Thu Feb 25 12:58:03 2016 +0100

    A little bit of nicer configuration dialog for clock view plugin
---
 plugins/clock-view/plugin.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/clock-view/plugin.c b/plugins/clock-view/plugin.c
index 006a35a..dda579b 100644
--- a/plugins/clock-view/plugin.c
+++ b/plugins/clock-view/plugin.c
@@ -202,9 +202,11 @@ static GObject* plugin_configure(XfdashboardPlugin *self, gpointer inUserData)
 
 	/* Create layout widget */
 	layout=gtk_grid_new();
+	gtk_grid_set_column_spacing(GTK_GRID(layout), 8);
 
 	/* Add widget to choose hour color */
 	widgetLabel=gtk_label_new(_("Hour color:"));
+	gtk_widget_set_halign(widgetLabel, GTK_ALIGN_END);
 	gtk_grid_attach(GTK_GRID(layout), widgetLabel, 0, 0, 1, 1);
 
 	widgetValue=gtk_color_button_new();
@@ -219,6 +221,7 @@ static GObject* plugin_configure(XfdashboardPlugin *self, gpointer inUserData)
 
 	/* Add widget to choose minute color */
 	widgetLabel=gtk_label_new(_("Minute color:"));
+	gtk_widget_set_halign(widgetLabel, GTK_ALIGN_END);
 	gtk_grid_attach(GTK_GRID(layout), widgetLabel, 0, 1, 1, 1);
 
 	widgetValue=gtk_color_button_new();
@@ -233,6 +236,7 @@ static GObject* plugin_configure(XfdashboardPlugin *self, gpointer inUserData)
 
 	/* Add widget to choose second color */
 	widgetLabel=gtk_label_new(_("Second color:"));
+	gtk_widget_set_halign(widgetLabel, GTK_ALIGN_END);
 	gtk_grid_attach(GTK_GRID(layout), widgetLabel, 0, 2, 1, 1);
 
 	widgetValue=gtk_color_button_new();
@@ -247,6 +251,7 @@ static GObject* plugin_configure(XfdashboardPlugin *self, gpointer inUserData)
 
 	/* Add widget to choose minute color */
 	widgetLabel=gtk_label_new(_("Background color:"));
+	gtk_widget_set_halign(widgetLabel, GTK_ALIGN_END);
 	gtk_grid_attach(GTK_GRID(layout), widgetLabel, 0, 3, 1, 1);
 
 	widgetValue=gtk_color_button_new();

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


More information about the Xfce4-commits mailing list