Re: How to capture mouse movements independend of a Window?

2007-01-11 Thread Andreas Stricker
 I need to move my cursor in a curve plotted in the window,using keyboard...how
 can i do it??

You should have read this whole thread. Then you find this documente here:

gdk_display_warp_pointer()
http://developer.gnome.org/doc/API/2.0/gdk/GdkDisplay.html#id2533888

The following note is from the this document:

   Note that the pointer should normally be under the control of the user.
This function was added to cover some rare use cases like keyboard
navigation support for the color picker in the GtkColorSelectionDialog.

This is basically what you intend.

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


Re: How to capture mouse movements independend of a Window?

2007-01-11 Thread ferri_marllo


Thanks a lot!!
it seems good...but...can you tell me about where to find examples of using
it??


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


Re: How to capture mouse movements independend of a Window?

2007-01-11 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Jan 11, 2007 at 09:45:49AM +0100, [EMAIL PROTECTED] wrote:
 
 
 Thanks a lot!!
 it seems good...but...can you tell me about where to find examples of using
 it??

I'd like to cook up something, but it'll take a while. At the mopment
I'm a bit overwhelmed with other (less nice) things

Regards
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFpimKBcgs9XrR2kYRAuZxAJ9yPpxZPlBZTvRibEaQWdEgp7UUnQCdHIds
90sb8WykvRm0wwMFnEdLY6k=
=Jxg8
-END PGP SIGNATURE-

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

Re: How to capture mouse movements independend of a Window?

2007-01-11 Thread ferri_marllo

Hi again,Tomas!!
thanks a for your help...
i understand you're busy(me too) to build an example...but i'll wait for your
'cook'.
thanks, again!!


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


Re: Question about GtkComboBox entry....

2007-01-11 Thread Micah Carrick
Russell Markus wrote:
 I am a Glade/GTK newbie and I am building an application similar to a chat
 program.  I have a GtkComboBox field where the user can type in his message
 and I would like to be able to send the message when the user presses the
 enter key.  Currently, when the user presses the enter key, the combo list
 drops down.  Is there a way to trap the enter key so that I can send the
 message?

 Thanks for any help.

 Russell Markus
 Sr. Software Engineer
 IPMobileNet, Inc.
 (949)417-4590 

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

   
Use the key-press-event if the keycode is the enter key, and return 
TRUE from the handler to prevent the event from being further 
propogated. I created a little demo app for which the source can be seen 
here: http://www.gtkforums.com/viewtopic.php?p=457

-- 
- Micah Carrick
  Freelance Developer
  http://www.micahcarrick.com | http://www.gtkforums.com

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


Re: Button - Launch context menu? ^^

2007-01-11 Thread Micah Carrick
briansteffens wrote:
 Hi everyone.. I'm just getting my feet wet developing with Gtk+, a recent
 convert from Win32/.NET. I'm developing on Debian Etch + Xorg + Gnome in
 C++. I'm having trouble finding many Gtk+ resources (API lists and
 examples), so if you happen to know of a good website, please pass that on
 =)

 On to my real question. I'm trying to design a small Gnome panel applet, and
 I want to have a button, which when clicked will display a context menu. So
 basically I need to know the call to display a menu.

 Thanks in advance! :)
   
I have some GTK+ forum started which is slow starting but just about any 
basic question will get answered...
http://www.gtkforums.com

I have links to numerous GTK+ resources here:
http://www.micahcarrick.com/v2/component/option,com_weblinks/catid,6/Itemid,29/

I have my own GTK+/Glade/Gnome tutorials here:
http://www.micahcarrick.com/v2/content/category/1/17/20/

GTK+ (and some other libraries) API documentation here:
http://developer.gnome.org/doc/API/

Specifically how to add a popup menu from the GTK+ FAQ:
http://www.mhatt.aps.anl.gov/dohn/programming/gtk-2.0/gtk-faq/x670.html

The gtk_menu_popup() function in the GTK+ API Docs:
http://developer.gimp.org/api/2.0/gtk/GtkMenu.html#gtk-menu-popup

Cheers,

-- 
- Micah Carrick
  Freelance Developer
  http://www.micahcarrick.com | http://www.gtkforums.com

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


Re: help cross compiling again

2007-01-11 Thread Tor Lillqvist
  Tor Lillqvist wrote:
  does pkg-config --cflags gtk+-2.0 print the correct -I flags?

Marcelo Armengot writes:
  What are the -I flags?

Hmm. If you have to ask that question, maybe you shouldn't be doing
what you are attempting... -I flags are command-line options passed to
the compiler that tells it where to look for header files. All known
compilers implement it (all Unix compilers, gcc, MSVC).

  Excuse me, may be I dont know enough about internal structure of gtk and 
  gtk/win32 libraries...

The term -I flag has nothing to do with GTK+, or Win32. You just
need to learn how to use command-line compilers and tools. How can you
otherwise write Makefiles etc?

  Well, you know if you travel to Valencia (Spain) you will have a place 
  where you can sleep in my house, sure, and a plate in the table (this is 
  a spanish typical saying) for you.

I'll try to remember that if I come to Valencia;)

  AND THIS IS THE RETURN OF make INSTRUCTION

  i586-mingw32msvc-gcc -O2 -Wall -g -mms-bitfields -mwindows 
  -mms-bitfields -Ic:/devel/target/gtk+-2.10.7/include/gtk-2.0 
  -Ic:/devel/target/gtk+-2.10.7/lib/gtk-2.0/include 
  -Ic:/devel/target/atk-1.12.3/include/atk-1.0 

You didn't edit the .pc files as I told you some mails ago...

Also, this is definitely off-topic for gtk-devel-list. Please follow
up on gtk-app-devel-list.

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