Dialogs always on top in Windows?

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

 



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<------------



_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux