Remove GtkScrolledWindow frame border in C
-
14-11-2019 - |
Question
I read about the removing of border from this GTK widget (you can see it in this image http://developer.gnome.org/gtk/2.24/scrolledwindow.png) in Python or C#
How to do that if I'm working in ANSI C? How can I set the "famous" border style property?
Solution
I think I figured out by myself. My scrollable window is scrollable_component
, the trick is to get its child, that's the viewport, and set its shadow property.
gtk_viewport_set_shadow_type(GTK_VIEWPORT(gtk_bin_get_child(scrollable_component)), GTK_SHADOW_NONE);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow