dogtail-devel [Bug 335546] New: Dogtail does not handle modality of windows and dialogs



Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=335546
 dogtail | Framework | Ver: 0.4.x

           Summary: Dogtail does not handle modality of windows and dialogs
           Product: dogtail
           Version: 0.4.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: Framework
        AssignedTo: dogtail-maint gnome bugs
        ReportedBy: jdapena igalia com
         QAContact: dogtail-maint gnome bugs
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
When you run programs launching modal dialogs, you can still send actions or
modify the status of widgets that are not in the modal dialog. The usual
behavior of a widget out of a modal dialog is disabling event handling, so
dogtail should also prevent modifications of widgets that are not in the modal
dialog.

Steps to reproduce:
1. Run gedit
2. In a python dogtail session:
   focus.application('gedit')
   focus.button('Open')
   click()
3. It opens the "Open file" dialog. It's modal in gedit, and then it should
prevent us to do any action in the main gedit window. But, we can write in the
dogtail session:
   focus.button('Save')
   click()
4. It opens the Save dialog.


Actual results:
It opens the save dialog from the main window, even when there's a modal dialog
that should prevent this being launched.

Expected results:
The Save dialog shouldn't be launched, and really the click() action should be
ignored by the Save button.

Does this happen every time?
Yes

Other information:
In GTK the implementation of modality is done using gtk_grab_add() method. If
we
want to  know if a widget can get events, usually we use GTK_IS_SENSITIVE, and
it should be handled in Gail side. But modality doesn't change sensitivity
state. I don't know how we can know if a widget is in a not grabbed window.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact for the bug.
You are watching the assignee for the bug.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]