Re: Re: Re: Re: problems with linking and headers
- From: tihomir belev <tihomir_gb abv bg>
- To: nlevitt columbia edu
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Re: Re: Re: problems with linking and headers
- Date: Tue, 20 May 2003 04:39:10 +0300 (EEST)
hi,
well .. i just used all gdk*.pc files to make sure i miss that function.
i tried what you suggested altought it seems to make no big difference from what i already tried. and it
still doesn't work...
well.. so i have GTK2.0 and that's why i can't use the gdk_display_get_default fuction, but what's the way
then to use a Xlib func inside a GTK app having a GTK version < 2.2 ? practically that's what i need
and more straightforward: i want to detect the actual key-release event; i know how to do it with Xlib but i
don't know the corresponding GTK function for XQueryKeymap. there already were discussions on that and it was
suggested that one should use the time stamps of the events but when i receive one of the false key-release
events and check for more events (key-press events) within the handler function, they seem not to have
arrived yet. well .. i can afford some delay of a few miliseconds but that seems far too clumsy and ugly.
isn't there some reasonable and so to say clean way to detect the actual release of a key in GTK ?
tnx in advance
p.s. i'll still be thankful to get an answer for the first part as well
You don't need all those separate pkg-config things. Try
this command:
gcc -Wall -g `pkg-config --cflags gtk+-2.0` -o second second.c `pkg-config --libs gtk+-2.0`
What version of gtk+ are you using? gdk_display_get_default
is in 2.2 or later.
Noah
On Mon, May 19, 2003 at 23:36:38 +0300, tihomir belev wrote:
sorry about that, Noah ...
here's my Makefile:
default:
first_stuff=`pkg-config --cflags --libs gtk+-2.0`; \
second_stuff=`pkg-config --cflags --libs gdk-2.0`; \
third_stuff=`pkg-config --cflags --libs gdk-pixbuf-2.0`; \
fourth_stuff=`pkg-config --cflags --libs gdk-pixbuf-xlib-2.0`; \
fifth_stuff=`pkg-config --cflags --libs gdk-x11-2.0`; \
echo -e "$$fifth_stuff\n"; \
gcc $$first_stuff $$second_stuff $$third_stuff $$fourth_stuff $$fifth_stuff -o second second.c
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]