[gcalctool/gnome-3-6] window: add a shadow around the scrolled window
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcalctool/gnome-3-6] window: add a shadow around the scrolled window
- Date: Sun, 30 Sep 2012 17:44:30 +0000 (UTC)
commit 8890b6dfca22bfd008d76c3531039f6adaa391a1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Sep 13 16:24:47 2012 -0400
window: add a shadow around the scrolled window
So that themes can render a frame.
https://bugzilla.gnome.org/show_bug.cgi?id=683542
src/math-window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/math-window.c b/src/math-window.c
index 8c1941b..c743a5b 100644
--- a/src/math-window.c
+++ b/src/math-window.c
@@ -154,6 +154,7 @@ create_gui(MathWindow *window)
scrolled_window = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER);
+ gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled_window), GTK_SHADOW_IN);
gtk_box_pack_start(GTK_BOX(vbox), GTK_WIDGET(scrolled_window), FALSE, FALSE, 0);
g_signal_connect(gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(scrolled_window)), "changed", G_CALLBACK(scroll_changed_cb), window);
g_signal_connect(gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(scrolled_window)), "value-changed", G_CALLBACK(scroll_value_changed_cb), window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]