From 18dea90938b19bdf12b2d932ce5c964f8c40080b Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 29 May 2012 19:52:26 +0200 Subject: [PATCH] Show shadow around license text view in the about dialog Since the license is a huge piece of text expected to possibly scroll horizontally, and since most themes display the background of text views in a different color than the default widget background color, adding a shadow makes the edges more visible and the UI neater. --- src/about.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/about.c b/src/about.c index 0d7e0ba5..b58a1151 100644 --- a/src/about.c +++ b/src/about.c @@ -406,7 +406,10 @@ static GtkWidget *create_dialog(void) gtk_container_set_border_width(GTK_CONTAINER(license_scrollwin), 6); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(license_scrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(license_scrollwin), GTK_SHADOW_IN); license_textview = gtk_text_view_new(); + gtk_text_view_set_left_margin(GTK_TEXT_VIEW(license_textview), 2); + gtk_text_view_set_right_margin(GTK_TEXT_VIEW(license_textview), 2); gtk_text_view_set_editable(GTK_TEXT_VIEW(license_textview), FALSE); gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(license_textview), FALSE); gtk_widget_show(license_textview);