dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #25582
[Bug 903302] Re: Dialog windows are not turning modal anyway
Confirmed in ubuntu 14.04 -14.10 - 15.04 (x86 and x86-64).
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to overlay-scrollbar in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/903302
Title:
Dialog windows are not turning modal anyway
Status in a fast and powerful GTK+ based mail client:
Invalid
Status in Overlay Scrollbar:
New
Status in overlay-scrollbar package in Ubuntu:
Confirmed
Bug description:
When I create any GtkDialog in my application, i set these two
methods: set_transient_for(parent_window) and set_modal(true), so I
can block any interaction with the app until close the dialog. This
approach works very good except when any child dialog widget uses
scrollbars, for example, GtkFileChooserWidget or GtkScrolledWindow.
This time, when I run dialog, some widgets from parent window, as
GtkButton or GtkComboBox, are not blocking interaction. To reproduce,
run this python script:
#!/usr/bin/python
from gi.repository import Gtk
def button_on_clicked(button, parent):
fch = Gtk.FileChooserDialog()
fch.set_transient_for(parent)
fch.set_modal(True)
fch.show_all()
fch.run()
win = Gtk.Window()
btn = Gtk.Button("Click me!")
win.add(btn)
btn.connect('clicked', button_on_clicked, win)
win.set_position(Gtk.WindowPosition.CENTER)
win.show_all()
win.connect('destroy', Gtk.main_quit)
Gtk.main()
When I uninstall the overlay-scrollbar and liboverlay-scrollbar*
packages, and restart unity/gnome-shell, the overlay are disabled and
the problem is gone. Run the script above with and without overlay
scrollbars and compare results. The issue can be reproduced in C++ and
Python wrappers to GTK3 (gtkmm-3 and gi.repository.Gtk, respectively).
I believe this is an overlay scrollbars issue with GTK3, reproduzible
with pure C GTK3 or any GTK3 wrapper. I don't know if this issue
affects GTK2.
The workaround for me is disable overlay scrollbars to solve my issue.
vinicius@OneiricLinux:~$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
vinicius@OneiricLinux:~$ apt-cache policy overlay-scrollbar
overlay-scrollbar:
Instalado: (nenhum)
Candidato: 0.2.11-0ubuntu1
Tabela de versão:
0.2.11-0ubuntu1 0
500 http://br.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
What I expected to happen: setting any child dialog modal property to true, all parent window widgets would be blocked.
What happened: some widgets, GtkButton, GtkComboBox, are not blocking.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: overlay-scrollbar (not installed)
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
Uname: Linux 3.0.0-14-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Mon Dec 12 15:18:17 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
LANGUAGE=pt_BR:pt:en
PATH=(custom, no user)
LANG=pt_BR.UTF-8
SHELL=/bin/bash
SourcePackage: overlay-scrollbar
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/claws-mail/+bug/903302/+subscriptions