Win32 issues with GtkWindow taskbar and decorations

View: New views
3 Messages — Rating Filter:   Alert me  

Win32 issues with GtkWindow taskbar and decorations

by Jared Hurn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issues are with GtkWindow::set_skip_taskbar_hint and GtkWindow::set_decorated. Issues were experienced on Windows XP Pro with all latest recommended updates. These issues are also inherited by GtkDialog.
 
When you create a new GtkWindow it is automatically created with a type of GTK_WINDOW_TOPLEVEL and is placed in the taskbar. Setting GtkWindow::skip_taskbar_hint doesn't appear to have any noticable affect on the window.
 
The only way I have found to get a GtkWindow to not appear in the taskbar is by setting its type as GTK_WINDOW_POPUP. However, setting a GtkWindow to GTK_WINDOW_POPUP removes the ability to show the window's decorations.
 
This is not a huge issue for me, but it would be nice to not have my configuration dialogs show up in the taskbar.
 
This demonstrates how set_skip_taskbar_hint doesn't work
<?php
 
  $window = new GtkWindow();
  $window->set_skip_taskbar_hint(true);
  $window->show();
  Gtk::main();
 
?>
 
This demonstrates how set_decorated doesn't work
<?php
 
  $window = new GtkWindow(Gtk::WINDOW_POPUP);
  $window->set_decorated(true);
  $window->show();
  Gtk::main();
 
?>
 
- Jared

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Win32 issues with GtkWindow taskbar and decorations

by bob majdak jr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have confirmed this with the following code. It works fine in Linux 2.10 and
2.12, but get this. In Windows 2.12 it does not work at all, and in Windows 2.10
it only half works - once the window is removed from the taskbar it will not
come back. Same results in 2.12 when i drop the old libwimp in it, so that is
not the problem.

http://oops.opsat.net/temp/gtkwindow-skip-taskbar.phpg

--
Bob Majdak Jr
KateOS Rofflecopter Pilot
http://www.kateos.org

Jared Hurn wrote:

> Issues are with GtkWindow::set_skip_taskbar_hint and GtkWindow::set_decorated. Issues were experienced on Windows XP Pro with all latest recommended updates. These issues are also inherited by GtkDialog.
>  
> When you create a new GtkWindow it is automatically created with a type of GTK_WINDOW_TOPLEVEL and is placed in the taskbar. Setting GtkWindow::skip_taskbar_hint doesn't appear to have any noticable affect on the window.
>  
> The only way I have found to get a GtkWindow to not appear in the taskbar is by setting its type as GTK_WINDOW_POPUP. However, setting a GtkWindow to GTK_WINDOW_POPUP removes the ability to show the window's decorations.
>  
> This is not a huge issue for me, but it would be nice to not have my configuration dialogs show up in the taskbar.
>  
> This demonstrates how set_skip_taskbar_hint doesn't work
> <?php
>  
>   $window = new GtkWindow();
>   $window->set_skip_taskbar_hint(true);
>   $window->show();
>   Gtk::main();
>  
> ?>
>  
> This demonstrates how set_decorated doesn't work
> <?php
>  
>   $window = new GtkWindow(Gtk::WINDOW_POPUP);
>   $window->set_decorated(true);
>   $window->show();
>   Gtk::main();
>  
> ?>
>  
> - Jared
>

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Win32 issues with GtkWindow taskbar and decorations

by Elizabeth M Smith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jared Hurn wrote:

> Issues are with GtkWindow::set_skip_taskbar_hint and GtkWindow::set_decorated. Issues were experienced on Windows XP Pro with all latest recommended updates. These issues are also inherited by GtkDialog.
>  
> When you create a new GtkWindow it is automatically created with a type of GTK_WINDOW_TOPLEVEL and is placed in the taskbar. Setting GtkWindow::skip_taskbar_hint doesn't appear to have any noticable affect on the window.
>  
> The only way I have found to get a GtkWindow to not appear in the taskbar is by setting its type as GTK_WINDOW_POPUP. However, setting a GtkWindow to GTK_WINDOW_POPUP removes the ability to show the window's decorations.
>  
> This is not a huge issue for me, but it would be nice to not have my configuration dialogs show up in the taskbar.
>  
> This demonstrates how set_skip_taskbar_hint doesn't work
> <?php
>  
>   $window = new GtkWindow();
>   $window->set_skip_taskbar_hint(true);
>   $window->show();
>   Gtk::main();
>  
> ?>
>  
> This demonstrates how set_decorated doesn't work
> <?php
>  
>   $window = new GtkWindow(Gtk::WINDOW_POPUP);
>   $window->set_decorated(true);
>   $window->show();
>   Gtk::main();
>  
> ?>
>  
> - Jared

If you don't want your gtkwindow to appear in the taskbar use
set_transient_for on it, that should fix the issue...

But this sounds like a gtk bug - if you can reproduce it in C code
gtk.org would be glad for the bug report ;)

Thanks,
Elizabeth Smih

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

LightInTheBox - Buy quality products at wholesale price!