[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 21/25: Improve spacing in the weather summary dialog
noreply at xfce.org
noreply at xfce.org
Mon Sep 17 00:14:18 CEST 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b 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-weather-plugin.
commit ef0494446897dd539a3aa01391c09b720d7a0417
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Sat Sep 15 11:04:36 2018 -0400
Improve spacing in the weather summary dialog
---
panel-plugin/weather-summary.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
index 4295e0f..8cd44bb 100644
--- a/panel-plugin/weather-summary.c
+++ b/panel-plugin/weather-summary.c
@@ -358,6 +358,10 @@ create_summary_tab(plugin_data *data)
sum->text_view = view = gtk_text_view_new();
gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE);
gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(view), FALSE);
+ gtk_text_view_set_left_margin (GTK_TEXT_VIEW(view), 12);
+ gtk_text_view_set_top_margin (GTK_TEXT_VIEW(view), 12);
+ gtk_text_view_set_right_margin (GTK_TEXT_VIEW(view), 12);
+ gtk_text_view_set_bottom_margin (GTK_TEXT_VIEW(view), 12);
frame = gtk_frame_new(NULL);
scrolled = gtk_scrolled_window_new(NULL, NULL);
@@ -365,7 +369,7 @@ create_summary_tab(plugin_data *data)
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- gtk_container_set_border_width(GTK_CONTAINER(frame), BORDER);
+ gtk_container_set_border_width(GTK_CONTAINER(frame), 0);
gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN);
gtk_container_add(GTK_CONTAINER(frame), scrolled);
@@ -1056,15 +1060,15 @@ create_forecast_tab(plugin_data *data)
w_need < w_max && data->forecast_days < 8) ||
(data->forecast_layout == FC_LAYOUT_LIST && h_need < h_max)) {
/* no scroll window needed, just align the contents */
- gtk_container_set_border_width(GTK_CONTAINER(table), BORDER);
+ gtk_container_set_border_width(GTK_CONTAINER(table), 0);
return table;
} else {
/* contents too big, scroll window needed */
- hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
+ hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, FALSE, 0);
scrolled = gtk_scrolled_window_new (NULL, NULL);
- gtk_container_set_border_width(GTK_CONTAINER(scrolled), BORDER);
+ gtk_container_set_border_width(GTK_CONTAINER(scrolled), 0);
viewport = gtk_viewport_new (NULL, NULL);
gtk_container_add (GTK_CONTAINER (scrolled), viewport);
@@ -1204,7 +1208,7 @@ create_summary_window(plugin_data *data)
gtk_window_set_default_size(GTK_WINDOW(window), 500, 400);
} else {
notebook = gtk_notebook_new();
- gtk_container_set_border_width(GTK_CONTAINER(notebook), BORDER);
+ gtk_container_set_border_width(GTK_CONTAINER(notebook), 6);
gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
create_forecast_tab(data),
gtk_label_new_with_mnemonic(_("_Forecast")));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list