Printing

2013-07-09 Thread Thomas Rønshof
GtkPrintUnixDialog directly. GtkPrintOperation relies on GtkPrintUnixDialog underneath, so it should be okay to use. Best regards. Thomas Rønshof. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman

GtkPrintUnixDialog and Cairo problem

2013-07-10 Thread Thomas Rønshof
Hi again, Well, looking into the archives, when people asks about printing problems, they are never answered :-( I'll try again. :-) There's not much info on the net, about this subject. I have made the following code working, when printing a pdf-file to a printer. Remarking this code and p

How to get objecttype

2016-09-09 Thread Thomas Rønshof
Hi, We are converting some OLD COBOL applications to GTK. The XML is created dynamically from SCREEN SECTIONS and we then use gtk_builder to get the objects into the program. Is there a way to get the objecttype ? If it's a gtk-combo we do this, if it's a gtk-entry we do that in the program and s

How to get objecttype

2016-09-09 Thread Thomas Rønshof
Hi, We are converting some OLD applications to GTK. The XML is created dynamically from COBOL and we then use gtk_builder to get the objects into the program. Is there a way to get the objecttype ? If it's a gtk-combo we do this, if it's a gtk-entry we do that in the program and so on... Ma

Re: How to get objecttype

2016-09-12 Thread Thomas Rønshof
Thanks :-) I've found them all in the gtk include-files. /Thomas Den 09/11/2016 kl. 12:04 AM skrev Ben Iofel: > in C, you can use the GTK_IS_COMO_BOX and GTK_IS_ENTRY macros on > GtkWidget* > > > On Fri, Sep 9, 2016 at 9:14 AM Thomas Rønshof <mailto:t...@kyborg

Combobox focus event

2017-04-05 Thread Thomas Rønshof
Hi, I can't get focus-in-event to work for a combobox. It seems others have the same problem, when I google. Is there a way to get an event when clicking on a combobox ? Either with the mouse or with TAB. Regards Thomas ___ gtk-app-devel-list mailing

Re: Newest GTK platform

2017-04-07 Thread Thomas Rønshof
But can all GTK´progams run without problems on a Wayland platform ? On 07-04-2017 17:22, Chris Moller wrote: Yes, Fedora comes with Wayland as the default, and probably two-thirds of the code I write involves GTK+. I recommend Fedora--I just find it easier to keep updated, and find package

Re: Combobox focus event

2017-04-07 Thread Thomas Rønshof
Thanks :-)) I'l try that. Thomas On 07-04-2017 23:10, cecas...@aol.com wrote: Hi Nicola, The "set-focus-child" on the container fires for the "focus-in-event" and "focus-out-event". I forgot about those container functions though. You can get the toggle button pointer from the container

Re: Combobox focus event

2017-04-11 Thread Thomas Rønshof
Works fine :-))) Thanks Eric. Regards Thomas Den 04/08/2017 kl. 07:30 PM skrev cecas...@aol.com: > > Another thing to give a try is just to set a boolean in the > "set-focus-child" callback. Not sure if this will always work. I think > that it should. > > I don't know the best workaround for

GTK PageSetupUnixdialog

2017-10-17 Thread Thomas Rønshof
Hi, Does anybody have examples for GtkPageSetupUnixDialog, how to call it and then get the current selected settings like papersize, orientation an so on. BR Thomas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.or

Re: Jump from PyGTK to C GTK

2017-11-07 Thread Thomas Rønshof
Hi Nils, Try something like this...     builder = gtk_builder_new ();     gtk_builder_add_from_file (builder, "test2.glade", NULL);     window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));     gtk_builder_connect_signals (builder, NULL);