GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Aug 30, 2014 6:14 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Scrollbar slider and stepper size not adjustable
PostPosted: Fri Jun 13, 2014 6:47 am 
Offline

Joined: Thu Jun 12, 2014 1:18 pm
Posts: 2
Hi,

I'm writing an GTK+-application without any Desktop Manager on an embedded Debian system.
For Developing i am using Archlinux and Debian (both 64 bit x86 architecture). The embedded machine uses an ARMv8.
All systems are running gtk3 3.12.2-1. I do the styling through a css file.
However, on the Archlinux machine, everything shows up as it should. On both Debian machine I've got some problems.
Espeacially scrollbars give me headache. It seems that gtk ignores my stylesettings when I try to make them bigger.
It is possible to reduce the size of slider and stepper, but if I try to use a bigger size, it simply stops at the default size.
I am not able to find the problem until the gtk-versions are all the same.

The CSS-Code
Code:
.slider.vertical                                                                 
{                                                                               
    background-color: RGBA(0, 153, 204, 0.7);                                   
    border-width: 0;                                                           
    border-style: solid;                                                         
    border-radius: 5px;                                                         
}                                                                               
                                                                                 
.scrollbar                                                                       
{                                                                               
    background-color: transparent;                                               
    border-width: 0;                                         
}

GtkScale                                                                         
{                                                                               
   -GtkRange-slider-width: 30;                                                   
   -GtkRange-stepper-size: 30;                                                   
}


This works on Archlinux. On Debian it seems like slider and stepper size is set to 14px.

Thanks in advance for your help.


Top
 Profile  
 
 Post subject: Re: Scrollbar slider and stepper size not adjustable
PostPosted: Fri Jun 13, 2014 7:03 pm 
Offline
Familiar Face

Joined: Thu Aug 20, 2009 1:54 pm
Posts: 42
Location: Belgium
Look maybe at the theme engine, probably Adwaita. In GTK+ 3.12 Adwaita is not part of GTK+.


Top
 Profile  
 
 Post subject: Re: Scrollbar slider and stepper size not adjustable
PostPosted: Mon Jun 16, 2014 6:49 am 
Offline

Joined: Thu Jun 12, 2014 1:18 pm
Posts: 2
Hi,
thanks for your answer.

Do I really need to use a theming engine?
Every widget in my application has its own look, which I set in the css-file.
Everything works, but the slider and stepper size.
But you are right. I installed the Adwaita-engine and now I am able to set the size.
But I dont understand why I need an engnie.


Top
 Profile  
 
 Post subject: Re: Scrollbar slider and stepper size not adjustable
PostPosted: Mon Jun 16, 2014 11:36 am 
Offline
Familiar Face

Joined: Thu Aug 20, 2009 1:54 pm
Posts: 42
Location: Belgium
Adwaita is in the process of being the default GTK+ theme, see:
http://blogs.gnome.org/mclasen/2014/06/ ... e-for-gtk/

The Raleigh theme is probably not what you want.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group