Global shortcut keys and gdk_window_add_filter()

2012-03-30 Thread David Klasinc
Greetings,

It appears that gdk_window_add_filter() is marked for skipping when
building introspection. Which means that it is not accessible from python.

I would like to implement global shortcut keys for my application and
gdk_window_add_filter() is required for this. Are there any workarounds
for this and why is it skipped in the first place?


Regards,
David
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 GtkAlignment to set the 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
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


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 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
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: Use of LPATH=.libs in common.mk for gobject-introspection

2012-03-30 Thread Colin Walters
On Tue, 2011-11-15 at 23:55 -0600, Albert Chin wrote:
 What's the purpose of LPATH=.libs in gobject-introspection? For HP-UX,
 when LPATH is set, it replaces the default search path for libraries.
 So, LPATH=.libs with -lpthread will not search /usr/lib for
 libpthread.sl.

It originated here:

https://bugzilla.gnome.org/show_bug.cgi?id=555293

It may no longer be necessary now that we try to embed an RPATH.

(The whole thing is really a tower of hacks...)


___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list