Re: How to make a progress-bar thinner?



Ok, I see.

It's rather easy to create a cairo-based (amplitude) level bar.
Here is a sample
http://www.futuredesktop.com/tmp/test3.c

Compile/link with
$ gcc test3.c -o test3 `pkg-config --cflags --libs gtk+-3.0`  
and run 
$ ./test3

I think I will go for this solution. Would be nice to create a proper widget class for this.

Cheers,
 Osmo (Moma) Antero

On Fri, Mar 30, 2012 at 9:54 AM, Milan Bouchet-Valat <nalimilan club fr> wrote:
Le vendredi 30 mars 2012 à 09:35 +0200, Osmo Antero a écrit :
> Hello,
> How can I make a GtkProgressBar thinner in this application.
> See:
> http://www.futuredesktop.com/tmp/test1.c
> And
> http://www.futuredesktop.com/tmp/screenshot1.png
I'm not sure at all you can make it smaller. Actually, the button on the
left hand-side is higher than the progress bar, so you cannot gain space
here - and this size depends on the font size, so no luck with padding.

The general problem IMHO is that you're basically trying to theme your
application, and GTK is really not designed that way. You don't really
control the appearance of the widgets, at least not at such a detailed
level.

If you're not happy with the progress bar, you may use a slider instead
(just like other sound applications).

PS : this list is about discussion of GTK internal development. YOu
should have used gtk-app-devel-list for this problem.

Regards


>Thanks for your reply.
>
>>use a slider instead (just like other sound applications).
>Do you mean the GtkScale widget? It might work well in my case. 
>But can I HIDE the slider (the draggable handle) on a GtkScale widget?
>
>Ref: http://developer.gnome.org/gtk3/stable/GtkScale.html
>
> Osmo Antero
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]