Re: coordinate system context for a drawing area uses (relative to get_allocation)

2017-05-15 Thread Dan Hitt
Thanks Tadej. That's a very good reference. (Also, thanks for creating a tutorial on using glade some years back, which i found useful.) dan On Mon, May 15, 2017 at 12:25 AM, Tadej Borovšak <tadeb...@gmail.com> wrote: > On Sat, May 13, 2017 at 05:00:43PM -0700, Dan Hitt wrote: >>

Re: does being inside a grid make an entry more editable?

2017-03-10 Thread Dan Hitt
not checking my code carefully enough) dan On Fri, Mar 10, 2017 at 8:33 PM, Dan Hitt <dan.h...@gmail.com> wrote: > Thanks a million Tilo! > > Your example (which works compiles and runs just fine on my system) > proves that my problem lies elsewhere. > > As to my gtk

Re: does being inside a grid make an entry more editable?

2017-03-10 Thread Dan Hitt
> return retval; > } > > Compiled with: > > gcc -Wall -Werror -pedantic -std=c99 \ > `pkg-config --cflags --libs gtk+-3.0` grid-test.c -o grid-test > > The entries in the first row are not editable this way. What GTK > version are you using? >

does being inside a grid make an entry more editable?

2017-03-09 Thread Dan Hitt
I have some entries that are inside a grid (all gtk3 stuff). I cannot seem to make them uneditable with a call to gtk_editable_set_editable(). I also have an entry outside the grid, which gtk_editable_set_editable() certainly can make uneditable. So i think the difference between the two cases

Re: want to capture a mouse click in an Entry

2017-02-19 Thread Dan Hitt
Thanks Norbert, your solution works for me. For whatever reason, i do not seem to have to grab the focus, although maybe i'm subtly degrading conformance to some expected behavior. I'm too dense to see what it is, though. Also, for me, the name "button-press-event" works just as well as

want to capture a mouse click in an Entry

2017-02-18 Thread Dan Hitt
I have an gtk_entry which normally holds some text, and i would like to capture clicks in the entry. More exactly, i would like to capture a mouse click, and then do something to the text in the entry depending on what modifier keys are held when the click is made. I've been looking through the

Re: accelerator keys for (right-click) menu only work after menu has been through a show-all

2016-11-25 Thread Dan Hitt
after creation (which probably deep in the bowels of gtk does something). And this also worked for me in my little app (written in the d programming language, using gtkd which is wraps up gtk3 for d). dan On Fri, Nov 25, 2016 at 10:53 AM, Dan Hitt <dan.h...@gmail.com> wrote: > Hi All

accelerator keys for (right-click) menu only work after menu has been through a show-all

2016-11-25 Thread Dan Hitt
Hi All, I'm writing a little app, and i put a right click menu in it. The menu is created early on, but i only show it (do a show-all on it) when button 3 (right click) is pressed. The items in the menu have accelerator keys. The problem is that although the accelerator keys work after the

Re: listening to stdin in the controlling terminal after gtk_main is called

2016-09-14 Thread Dan Hitt
Thu, Sep 15, 2016 at 12:52 AM Dan Hitt <dan.h...@gmail.com> wrote: >> >> HI All, >> >> I'm writing a gtk application and i would like it to listen to stdin >> in the controlling terminal after gtk_main() is called. >> >> So for example, when you type a

listening to stdin in the controlling terminal after gtk_main is called

2016-09-14 Thread Dan Hitt
HI All, I'm writing a gtk application and i would like it to listen to stdin in the controlling terminal after gtk_main() is called. So for example, when you type a carriage return in the controlling terminal, all the characters which have been typed since the last carriage return are gathered

Re: javascript alert function analog in gtk, probably some kind of modal dialog, but looking for a quickie

2016-07-31 Thread Dan Hitt
ageDialog. Three lines rather than one, but it seems > to do what you describe. > > > On 07/31/16 16:11, Dan Hitt wrote: >> >> For front end web development, javascript provides a very handy alert( >> ) function. >> >> alert("this is a message") just

javascript alert function analog in gtk, probably some kind of modal dialog, but looking for a quickie

2016-07-31 Thread Dan Hitt
For front end web development, javascript provides a very handy alert( ) function. alert("this is a message") just pops up a message for the user to click "ok" on. So it's a handy one-liner to stick (temporarily or not) into a piece of code. So i'm wondering if there's a one-line, one-argument