Re: Gtk Printing and gtk_dialog_run
- From: James Henstridge <james jamesh id au>
- To: Matthias Clasen <matthias clasen gmail com>
- Cc: Paolo Borelli <pborelli katamail com>, gtk-devel-list gnome org, Alexander Larsson <alexl redhat com>
- Subject: Re: Gtk Printing and gtk_dialog_run
- Date: Wed, 19 Apr 2006 15:47:58 +0800
Matthias Clasen wrote:
> On 4/19/06, James Henstridge <james jamesh id au> wrote:
>
>> Paolo Borelli wrote:
>>
>>> I haven't yet looked at the new printing api in detail, but from what I
>>> quickly gathered the high level api involves a run() method for the
>>> dialog.
>>>
>>> This may be problematic for many apps that have multiple top level
>>> windows (gedit, epiphany, evince etc) since gtk_dialog_run makes the
>>> dialog modal to the whole application and not just to the current
>>> window, thus blocking user interaction on all the windows.
>>>
>>> Is this the case?
>>>
>>>
>> If your different toplevel windows are in separate GtkWindowGroups,
>> shouldn't the grab only affect other toplevels in the same window group?
>>
>
> gtk_dialog_run() is not a grab, its a recursive mainloop.
>
But gtk_dialog_run() also makes the dialog modal, which results in a
grab, right?
* gtk_dialog_run() calls gtk_window_set_modal(dialog, TRUE), and
shows the dialog
* gtk_window_set_modal() and gtk_window_show() call gtk_grab_add()
if the window is modal.
James.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]