|
List Info
Thread: The Always on top issue
|
|
| The Always on top issue |
  Sweden |
2007-03-20 05:06:49 |
Hi there!
I've searched the list and only found a thread from 2004, so
I'm
wondering if there's any way to keep a window always on top
as well as
getting decorations with it.
Hopefully that's the last part I need for my nifty little
program
TIA,
Fluff
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
|
|
| Re: The Always on top issue |
  United Kingdom |
2007-03-20 05:15:23 |
hi;
On Tue, 2007-03-20 at 11:06 +0100, Fluff wrote:
> I've searched the list and only found a thread from
2004, so I'm
> wondering if there's any way to keep a window always on
top as well as
> getting decorations with it.
$window->set_keep_above()
obviously, it's a hint to the window manager - so it might
not work, if
the WM is unable to comply with the request.
ciao,
Emmanuele.
--
Emmanuele Bassi, E: ebassi gmail.com
W: http://www.emmanuelebas
si.net
B: http://log.emmanuelebas
si.net
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
|
|
| Re: The Always on top issue |
  Sweden |
2007-03-20 05:18:01 |
Den 2007-03-20 11:15, Emmanuele Bassi skrev:
> hi;
>
> On Tue, 2007-03-20 at 11:06 +0100, Fluff wrote:
>
>
>> I've searched the list and only found a thread from
2004, so I'm
>> wondering if there's any way to keep a window
always on top as well as
>> getting decorations with it.
>>
>
> $window->set_keep_above()
>
> obviously, it's a hint to the window manager - so it
might not work, if
> the WM is unable to comply with the request.
>
> ciao,
> Emmanuele.
>
>
Darn, I tried that and it won't work with a
win32-environment :(
/Fluff
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
|
|
| Re: The Always on top issue |
  United Kingdom |
2007-03-20 05:28:59 |
On Tue, 2007-03-20 at 11:18 +0100, Fluff wrote:
> >> I've searched the list and only found a thread
from 2004, so I'm
> >> wondering if there's any way to keep a window
always on top as well as
> >> getting decorations with it.
> >>
> >
> > $window->set_keep_above()
> >
> > obviously, it's a hint to the window manager - so
it might not work, if
> > the WM is unable to comply with the request.
>
> Darn, I tried that and it won't work with a
win32-environment :(
if you can, you could write a minimal test case *in C* and
open a bug
inside bugzilla[1] against the win32 component of the gtk+
product.
ciao,
Emmanuele.
+++
[1] http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B
--
Emmanuele Bassi, E: ebassi gmail.com
W: http://www.emmanuelebas
si.net
B: http://log.emmanuelebas
si.net
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
|
|
| Re: The Always on top issue |
  United States |
2007-03-20 09:11:11 |
On Mar 20, 2007, at 6:06 AM, Fluff wrote:
> I've searched the list and only found a thread from
2004, so I'm
> wondering if there's any way to keep a window always on
top as well as
> getting decorations with it.
Always on top of what, exactly?
If you want always on top of everything, there's $window-
>set_keep_above(TRUE), which gives the window manager a
hint and
therefore may or may not work, and was added in version 2.4
of gtk+.
http://developer.gnome.org/doc/API/2.0/gtk/Gt
kWindow.html#id2776074
If you want always on top of a particular window in your
application,
then $window->set_transient_for ($parent_window) should
do that trick
in all versions of gtk+. This makes the window stay above
its parent
at all times, but does not prevent other windows from
covering it.
http://developer.gnome.org/doc/API/2.0/gtk/
GtkWindow.html#gtk-window-
set-transient-for
--
I hate to break it to you, but magic data pixies don't
exist.
-- Simon Cozens
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
|
|
| Re: The Always on top issue |
  Sweden |
2007-04-12 13:52:47 |
muppet kirjoitti:
> If you want always on top of a particular window in
your application,
> then $window->set_transient_for ($parent_window)
should do that trick
> in all versions of gtk+. This makes the window stay
above its parent
> at all times, but does not prevent other windows from
covering it.
> http://developer.gnome.org/doc/API/2.0/gtk/
GtkWindow.html#gtk-window-
> set-transient-for
>
Hmm, what am I doing wrong here:
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<------------
because on Windows the message dialog does not stay on top
of the
parent. Or is it my MinGW platform? Does this work ok in
other Windows
platforms?
Regards,
Ari
> --
> I hate to break it to you, but magic data pixies don't
exist.
> -- Simon Cozens
>
>
> _______________________________________________
> gtk-perl-list mailing list
> gtk-perl-list gnome.org
>
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
>
--
Prof. Ari Jolma
Geoinformaatio- ja paikannustekniikka
Geoinformation and positioning technology
Teknillinen Korkeakoulu / Helsinki University of Technology
POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
|
|
[1-6]
|
|