Dialogs always on top in Windows?
- From: Ari Jolma <ari jolma tkk fi>
- To: gtk-list gnome org
- Subject: Dialogs always on top in Windows?
- Date: Mon, 30 Apr 2007 10:29:29 +0300
I have a piece of code (Perl but that shouldn't be the issue) below,
which opens a transient dialog. The dialog is transient in X but not in
my experience in Windows. Am I doing something wrong, or what?
I'm using recent (gtk+ => 2.10.11, glib => 2.12.11) pre-built windows dlls.
Regards,
Ari Jolma
8<------------
use Gtk2 '-init';
my $parent = Gtk2::Window->new;
my $event_box = Gtk2::EventBox->new;
$parent->add($event_box);
$parent->signal_connect(button_press_event => \&a);
$parent->show_all;
Gtk2->main;
sub a {
my $dialog =
Gtk2::MessageDialog->new($parent,'modal','info','close','foo');
$dialog->set_transient_for($parent);
$dialog->run;
$dialog->destroy;
}
8<------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]