Re: difference between event and signal

2010-01-13 Thread Tadej Borovšak
Hi. > What means the Run First, Run Last and others in > http://library.gnome.org/devel/gtk/unstable/GtkWidget.htm at Signals? http://library.gnome.org/devel/gobject/stable/gobject-Signals.html#gobject-Signals.description http://library.gnome.org/devel/gobject/stable/gobject-Signals.html#GSignalF

Re: difference between event and signal

2010-01-13 Thread frederico schardong
What means the Run First, Run Last and others in http://library.gnome.org/devel/gtk/unstable/GtkWidget.htm at Signals? 2010/1/13 frederico schardong : > Thanks! > > 2010/1/13 Ben Pfaff : >> frederico schardong writes: >> >>> I'm confusing about the difference between event and signal. >> >> Accor

Re: difference between event and signal

2010-01-13 Thread frederico schardong
Thanks! 2010/1/13 Ben Pfaff : > frederico schardong writes: > >> I'm confusing about the difference between event and signal. > > According to the GTK+ FAQ: > > First of all, Havoc Pennington gives a rather complete > description of the differences between events and signals in his > free book (t

Re: difference between event and signal

2010-01-13 Thread Ben Pfaff
frederico schardong writes: > I'm confusing about the difference between event and signal. According to the GTK+ FAQ: First of all, Havoc Pennington gives a rather complete description of the differences between events and signals in his free book (two chapters can be found at http://www106.pai

difference between event and signal

2010-01-13 Thread frederico schardong
I'm confusing about the difference between event and signal. Event is the action of something happen, and signal is the code action for the event? How signal works? How it's emitted by GTK+? -- Thanks, Frederico Schardong, SOLIS - Open source solutions www.solis.coop.br Linux registered user #5

Re: Not getting which mouse button is pressed on button-press-event

2010-01-13 Thread Ed James
Robert, You are right - I've been buried for days in X Windows code (not GTK+) and my mindset was in the wrong place for this list. My bad. Ed James On Wed, Jan 13, 2010 at 4:39 PM, Robert Pearce wrote: > Hi Ed, ... > But as I understand it, none of this is relevant to GTK, which just > pas

Multiple independent modal dialogs

2010-01-13 Thread Martin Vejnár
Hi, I have a short program (below) that displays two windows, each with a button. Clicking the button pops up a modal dialog (in this case a file chooser, but the type of the dialog does not really matter). I would like the two windows to be completely independent, i.e. clicking the button i

Re: Can you help me compile a single widget?(I want to patch it later on).

2010-01-13 Thread Claudio Saavedra
El jue, 14-01-2010 a las 08:36 +1100, Andrew Cowie escribió: > On Wed, 2010-01-13 at 23:13 +0200, Claudio Saavedra wrote: > > El mié, 13-01-2010 a las 22:49 +0200, sledge hammer escribió: > > > You'd better try better luck by removing the widgets you don't need, > > than by isolating only one.. bu

Re: Can you help me compile a single widget?(I want to patch it later on).

2010-01-13 Thread Tadej Borovšak
Hello. > Is there any reason we shouldn't just tell this person to just subclass > the existing GtkFixed GObject and thence implement whatever they want to > do in the subclass? > > Admittedly subclassing GObjects is a lot of boilerplate work, but it's > still easier than attempting to rip apart t

Re: Not getting which mouse button is pressed on button-press-event

2010-01-13 Thread Robert Pearce
Hi Ed, On Wed, 13 Jan 2010 15:11:21 -0500 you wrote: > > Wasn't able to emulate middle button on my 2-button mouse (project for another > day, perhaps). That's an X setting - EmulateMiddleButton or something of the like. If it's set then X intercepts near-simultaneous left and right buttons and

Re: Can you help me compile a single widget?(I want to patch it later on).

2010-01-13 Thread Andrew Cowie
On Wed, 2010-01-13 at 23:13 +0200, Claudio Saavedra wrote: > El mié, 13-01-2010 a las 22:49 +0200, sledge hammer escribió: > You'd better try better luck by removing the widgets you don't need, > than by isolating only one.. but still, all this seems a bit strange to > me. Is there any reason we

Re: Can you help me compile a single widget?(I want to patch it later on).

2010-01-13 Thread David Nečas
On Wed, Jan 13, 2010 at 11:19:33PM +0200, sledge hammer wrote: > > Well I thought a "patched" gtkfixed would be treated as a "custom" widget. So > I thought that all a head to do is point it to the system's gtk+ headers and > libs. Am I wrong in doing this? I just want to leave my system gtkfixe

RE: Can you help me compile a single widget?(I want to patch it later on).

2010-01-13 Thread sledge hammer
Well I thought a "patched" gtkfixed would be treated as a "custom" widget. So I thought that all a head to do is point it to the system's gtk+ headers and libs. Am I wrong in doing this? I just want to leave my system gtkfixed intact and just create a new widget named "gtkfixed2" or something l

Re: Can you help me compile a single widget?(I want to patch it later on).

2010-01-13 Thread Claudio Saavedra
El mié, 13-01-2010 a las 22:49 +0200, sledge hammer escribió: > Can you help me with this? Is my approach correct? If not, can someone > guide me through? I really want to solve this(get a working patched > gtkfixed). You are gonna need a lot of GTK+ anyway. All the widgets that are in the hierar

Re: Can you help me compile a single widget?(I want to patch it later on).

2010-01-13 Thread Tadej Borovšak
Hello. > Hi, I want to use GtkFixed as my preferred container(yes I am aware of the > warnings against it). Currently there is an old bug that prevents me from > fully utilising it. I am referring to bug 81630. Although there are > available 2 patches there is no word from the developers. I want t

Can you help me compile a single widget?(I want to patch it later on).

2010-01-13 Thread sledge hammer
Hi, I want to use GtkFixed as my preferred container(yes I am aware of the warnings against it). Currently there is an old bug that prevents me from fully utilising it. I am referring to bug 81630. Although there are available 2 patches there is no word from the developers. I want to test them

Re: Not getting which mouse button is pressed on button-press-event

2010-01-13 Thread Ed James
Just tried it and verified most of the answer, via something I'm playing with; UINT ejEventManager::getButton () { return currEvent.xbutton.button; } 1 == Left mouse button 2 == Right mouse button 4 == scroll up 5 == scroll down Wasn't able to emulate middle button on my 2-button mouse (pro

Re: Not getting which mouse button is pressed on button-press-event

2010-01-13 Thread Tadej Borovšak
Hello. You can get the mouse button pressed by looking at event->button field. 1 means left button, 2 middle button (which can usually be emulated by pressing right and left button at once on 2-button mouse), 3 right button. I think 4-7 mean wheel movement (check API docs for that, I'm not 100% su

Not getting which mouse button is pressed on button-press-event

2010-01-13 Thread Ken Resander
The state member in GdkEventButton for the button-press/release events contains flag bits that specify which mouse button is operated and also any keyboard shift/ctrl/alt modifier bits. I have tried button-press-event on several widget types, but in all cases the modifier bit GDK_BUTTON1_MASK or

Re: about main event loop

2010-01-13 Thread Dov Grobgeld
Hi Zhang, Please use reply all to continue posting to the gtk list instead of replying privately. You're program is correct (though obviously it doesn't do anything) and does not give any warnings. It seems like you have an installation problem. Please describe your system, and perhaps someone on