summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-03-23 09:27:35 +0100
committermonsta <[email protected]>2017-03-26 00:07:19 +0300
commit60b192c5939bf07f93bf4103ff7ccb55fe816581 (patch)
treeb2037a893f9fc324ea15870ea30e2b8b56406360
parentdc510d875ae166dd814cebc060186b4042b0ef30 (diff)
downloadcaja-60b192c5939bf07f93bf4103ff7ccb55fe816581.tar.bz2
caja-60b192c5939bf07f93bf4103ff7ccb55fe816581.tar.xz
[GTK+3] property-browser: add style class frame to scrolledwindows
port of 52a3d30957889eb37e65e9c4416dbe0ea79a109c + 45f862c6178358e73470296e5793b10c486926c1 to mixed GTK+2/3 code
-rw-r--r--src/caja-property-browser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/caja-property-browser.c b/src/caja-property-browser.c
index 28a778e7..74b5276e 100644
--- a/src/caja-property-browser.c
+++ b/src/caja-property-browser.c
@@ -2238,6 +2238,9 @@ caja_property_browser_update_contents (CajaPropertyBrowser *property_browser)
gboolean got_categories;
char *name, *image, *type, *description, *display_name, *path, *mode;
const char *text;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GtkStyleContext *context;
+#endif
/* load the xml document corresponding to the path and selection */
document = read_browser_xml (property_browser);
@@ -2255,6 +2258,8 @@ caja_property_browser_update_contents (CajaPropertyBrowser *property_browser)
/* allocate a new container, with a scrollwindow and viewport */
property_browser->details->content_frame = gtk_scrolled_window_new (NULL, NULL);
#if GTK_CHECK_VERSION (3, 0, 0)
+ context = gtk_widget_get_style_context (property_browser->details->content_frame);
+ gtk_style_context_add_class (context, "frame");
gtk_widget_set_vexpand (property_browser->details->content_frame, TRUE);
#endif
viewport = gtk_viewport_new (NULL, NULL);