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 src/gtklevelbar.[ch] It's nothing prime-art but works very well for this recorder. Audio-recorder runs on all major Linux-distros. I run Ubuntu 11.10/12.04. Happy eastern Osmo Antero On Thu, Mar 29, 2012 at 12:03 PM, Osmo Antero <osm...@gmail.com> wrote: > 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 GtkAlignment to set paddings with > gtk_alignment_set_padding(GTK_ALIGNMENT(alignment0), 10, 10, 0, 0); > but this then makes the other widgets in hbox0 thicker/fatter. > Eg. the [Button 1] is fatter than the [Button 2]. > > This GtkAlignment trick used to work in GTK 2. > > The screenshot shows also the actual target application. > I want to make the level indicator (GtkProgressBar) in the audio-recorder > much smaller. > > Notice: I have no plans to use gtk-builder or glade! > > Do you have any suggestions? > > Greetings > Osmo (Moma) Antero > > -- // moma http://www.futuredesktop.org _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list