[Xfce4-commits] <xfce4-weather-plugin:master> Fix appearance page layout in config dialog.
Harald Judt
noreply at xfce.org
Tue Dec 4 15:24:03 CET 2012
Updating branch refs/heads/master
to 1dce9a95ed59615ef949bdc99b0759627d1d42de (commit)
from e96365bcc4fc4a1801397be1813433420afb3dd1 (commit)
commit 1dce9a95ed59615ef949bdc99b0759627d1d42de
Author: Harald Judt <h.judt at gmx.at>
Date: Tue Dec 4 15:17:21 2012 +0100
Fix appearance page layout in config dialog.
Add separators to the notebook page to make it look nice again
after removing the interpolation option.
panel-plugin/weather-config.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index c8a56e1..f77cba5 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -830,12 +830,12 @@ check_round_values_toggled(GtkWidget *button,
static GtkWidget *
create_appearance_page(xfceweather_dialog *dialog)
{
- GtkWidget *palign, *page, *hbox, *vbox, *label;
+ GtkWidget *palign, *page, *sep, *hbox, *vbox, *label;
GtkSizeGroup *sg;
icon_theme *theme;
guint i;
- ADD_PAGE(TRUE);
+ ADD_PAGE(FALSE);
sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
/* icon theme */
@@ -866,6 +866,9 @@ create_appearance_page(xfceweather_dialog *dialog)
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(page), vbox, FALSE, FALSE, 0);
+ sep = gtk_hseparator_new();
+ gtk_box_pack_start(GTK_BOX(page), sep, FALSE, FALSE, BORDER * 2);
+
/* forecast layout */
vbox = gtk_vbox_new(FALSE, BORDER);
hbox = gtk_hbox_new(FALSE, BORDER);
@@ -886,6 +889,9 @@ create_appearance_page(xfceweather_dialog *dialog)
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(page), vbox, FALSE, FALSE, 0);
+ sep = gtk_hseparator_new();
+ gtk_box_pack_start(GTK_BOX(page), sep, FALSE, FALSE, BORDER * 2);
+
/* round temperature */
vbox = gtk_vbox_new(FALSE, BORDER);
dialog->check_round_values =
More information about the Xfce4-commits
mailing list