Re: gtk_print_operation_run hang

2016-02-08 Thread Matthew Allen
Ok some new information. There is an incompatibility with g_idle_add and printing. I'm using g_idle_add for my own callback elsewhere in the application, and if I comment that out the printing starts working. What I think is happening is that the call to: priv->print_pages_idle_id = gdk_threads_ad

Re: gtk_print_operation_run hang

2016-02-08 Thread Matthew Allen
ike "begin-print" and some use "begin_print". But the docs say '-' so I'll stick with that for the moment. I wish I could trace all the signals... is there a way to print them out to the console as they happen? On 4 February 2016 at 22:43, Matthew Allen wrote: &

[no subject]

2016-02-04 Thread Matthew Allen
So I'm working on this code: GPrinter.cpp (and it's header ). And GPrinter::Print when I call gtk_print_operation_run I get a printer selection

Corrupt GDK_DESTROY event

2016-01-15 Thread Matthew Allen
I'm developing applications based on a widget library called LGI: https://github.com/memecode/Lgi The Linux back end uses GTK2 and I'm having trouble with the GDK_DESTROY event being corrupt by the time it reaches my application. In GWindow::Attach I setup a the signal handler: GView *i

Re: gdk_draw_image with alpha compositing on X?

2010-10-02 Thread Matthew Allen
-- Original Message -- To: Matthew Allen (l...@sydneyband.com.au) From: Tor Lillqvist (t...@iki.fi) Subject: Re: gdk_draw_image with alpha compositing on X? Date: 3/10/2010 4:42:34a > > I'm calling gdk_draw_image with a 32-bit per pixel image with some > > pixe

gdk_draw_image with alpha compositing on X?

2010-09-26 Thread Matthew Allen
Hi, I'm calling gdk_draw_image with a 32-bit per pixel image with some pixels having alpha=0 and some with alpha=255, and the transparent pixels come through as black (not surprisingly). What is the correct was to get that on to the screen? (for Win32 and X) Regards -- Matthew

Re: gtk_grab_add giving Gdk-CRITICAL

2010-09-21 Thread Matthew Allen
-- Original Message -- To: (gtk-app-devel-list@gnome.org) From: Matthew Allen (l...@sydneyband.com.au) Subject: gtk_grab_add giving Gdk-CRITICAL Date: 20/9/2010 1:44:03p > The gtk_grab_add asserts with: > > Gdk-CRITICAL **: gdk_window_get_window_type:

Getting native colors in GTK/GDK?

2010-09-21 Thread Matthew Allen
t the current system font which is useful). I assume somewhere there is a library to do this, maybe something from Gnome? I don't really care about the windows side of things, because it's easy enough to wrap GetSysColor but on Linux I don't know where t

gtk_grab_add giving Gdk-CRITICAL

2010-09-19 Thread Matthew Allen
k-CRITICAL **: gdk_window_get_window_type: assertion `GDK_IS_WINDOW (window)' failed. I passed a valid GtkWidget to the grab add, and there is nothing in the docs to infer that what I'm doing is bad... so what do I need to do to fix this code? Rega

Re: Custom content in GtkMenus?

2010-07-01 Thread Matthew Allen
ems so close to working just how I want it. I'd even put up with not having click events outside my app... but not getting events while a transient dialog is open too is a showstopper. Also I'm not getting much in the way of answers by posting here, am I not following some protoc

Custom content in GtkMenus?

2010-06-30 Thread Matthew Allen
ols focus (bad!) and I can't detect when the user clicks away from the control (so I can't close it at the right moment). I would just use GtkMenu + GtkMenuItems, but for things like a date picker that doesn't work. Maybe one of you coul

Re: Catching client events

2010-06-17 Thread Matthew Allen
on windows at the moment and I see the client message get sent > using Spy++, but nothing at the receiving end catches it. Both sender and > receiver are in the same application. -- Matthew Allen http://www.memecode.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Catching client events

2010-06-14 Thread Matthew Allen
nt_message(Event, Hnd); This is on windows at the moment and I see the client message get sent using Spy++, but nothing at the receiving end catches it. Both sender and receiver are in the same application. What am I missing here? -- Matthew Allen _

Translating co-ordinates from local to screen space

2010-06-11 Thread Matthew Allen
Hi, I'm trying to translate co-ordinates from local widget space into screen space and back again. Is that possible with GTK? Regards -- Matthew Allen ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/ma

Re: Top down layout

2010-06-09 Thread Matthew Allen
gnal connect it works well, the scrollview tracks with the window as you resize. So I guess now I want to know how to catch the "configure-event" and then pass it on to the next handler so I get normal behaviour AND have access to that event. (I'm a signal noob) Thanks. -- Matthew All

Re: Top down layout

2010-06-08 Thread Matthew Allen
-- Original Message -- To: Matthew Allen (l...@sydneyband.com.au) From: Tristan Van Berkom (t...@gnome.org) Subject: Re: Top down layout Date: 9/6/2010 1:44:30p > On Tue, Jun 8, 2010 at 11:09 PM, Matthew Allen > > wrote: -- Original Message -- > &

Re: Top down layout

2010-06-08 Thread Matthew Allen
-- Original Message -- To: Matthew Allen (l...@sydneyband.com.au) From: Tristan Van Berkom (t...@gnome.org) Subject: Re: Top down layout Date: 9/6/2010 12:55:44p > On Tue, Jun 8, 2010 at 10:36 PM, Matthew Allen > >> wrote: This sort of behaviour might not be possi

Re: Top down layout

2010-06-08 Thread Matthew Allen
arbitrarily, and I can sort out the layout from there. Is there some way of seeing the signals being fired? -- Matthew Allen ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Top down layout

2010-06-08 Thread Matthew Allen
the root widget increase to follow the GtkWindow as it gets larger. This sort of behaviour might not be possible with GTK. But at least I thought I'd ask. -- Matthew Allen ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http:/

Widget choice / top level window resizing

2010-03-24 Thread Matthew Allen
event on the top level window, and NOT have the top level window's size limited to the widgets it contains. Is there an easy way of doing that? Regards -- Matthew Allen ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome

gdk_event_send_client_message causing fatal IO error "resource temporarily unavailable"

2010-03-24 Thread Matthew Allen
ich version... but maybe a year old or something not tragically ancient. I havn't hooked something up on the receiving GtkWidget for processing the event yet... does that matter? Regards -- Matthew Allen ___ gtk-app-devel-list mailing list gtk-app-de