Re: How to make a progress-bar thinner?

2012-04-02 Thread Benjamin Otte
2 things: 1) You cannot force widgets smaller than their minimum size in GTK 3. This was allowed in GTK 2. (And it crashed only sometimes!) 2) You can try to use gtk_widget_set_halign/valign() to make sure the widget doesn't fill the space it's assigned to. bonus: While you look into sizing, you

Re: How to make a progress-bar thinner?

2012-04-01 Thread Osmo Antero
Hello, It wasn't so easy to make the GtkProgressBar smaller. It's also controlled by desktop's active theme and style. So I created a simple GtkLevelBar widget that is thinner and lighter. Picture: http://bildr.no/view/1146365 Here is the source code https://launchpad.net/audio-recorder Look for

Re: How to make a progress-bar thinner?

2012-03-31 Thread Osmo Antero
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

How to make a progress-bar thinner?

2012-03-30 Thread Osmo Antero
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 Compile/link the code with $ gcc test1.c -o test1 `pkg-config --cflags --libs gtk+-3.0` and run $ ./test1 I have tried to use

Re: How to make a progress-bar thinner?

2012-03-30 Thread Milan Bouchet-Valat
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

How to make a progress-bar thinner?

2012-03-29 Thread Osmo Antero
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 Compile/link the code with gcc test1.c -o test1 `pkg-config --cflags --libs gtk+-3.0` and run ./test1 I have tried to use