GtkWidget::draw-border
Peeter Vois
Peeter.Vois at proekspert.ee
Tue Nov 27 20:46:11 CET 2007
Hi All,
Self asking self answering. It is possible to write into style engine the check like follows:
...
else if ( DETAIL("frame") && (shadow_type != GTK_SHADOW_NONE) )
{
gdk_draw_rectangle( window, gc3, FALSE, x, y, width-1, height-1 );
if( GTK_IS_FRAME( widget ) )
{
guint border=0;
border = gtk_container_get_border_width( GTK_CONTAINER(widget) );
if( border < 3 )
gtk_container_set_border_width( GTK_CONTAINER(widget), 3 );
}
}
...
I have been working on a very trivial theme engine, that would be fast and usable for monochrome screens. I based it on the gtk-xfce-engine. It is not fully ready but the feel is available already. You can browse / download it from
http://people.proekspert.ee/peeter/git/git.php?p=gtk-trivial-engine.git&tm=0
You can get screenshot from:
http://people.proekspert.ee/peeter/git/git.php?tr=add00c93388c7c6b48115d3819795afbf3d17bef&tag=153b8efdb2a1933359d30a9924e15d7aabad4981&p=gtk-trivial-engine.git&dl=dlfile&h=2e50c49228fbc500be105c26a68ae170d5f2e334&n=screenshot_1.png&tm=0
Have fun!
/Peeter
On Fri, 23 Nov 2007 01:36:55 +0200
Peeter Vois <Peeter.Vois at proekspert.ee> wrote:
> Hi Folks,
>
> I am messing around with a small GTK theming issue. I would like to add
> little additional space around frames. For that I have modified a
> xfce's gtkrc file:
>
> ...
> style "framestyle" = "default"
> {
> GtkWidget::draw-border = {13, 13, 3, 13}
> }
> widget_class "*Frame*" style "framestyle"
> class "*Frame*" style "framestyle"
> ...
>
> But no luck, there is no additional space around nor inside frames. I
> have also tried
> GtkFrame::draw-border
> GtkWidget::draw_border
> GtkFrame::draw_border
>
> Do you have some good ideas?
>
> --
> Peeter Vois <Peeter.Vois at proekspert.ee>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce4-dev
--
Peeter Vois <Peeter.Vois at proekspert.ee>
More information about the Xfce4-dev
mailing list