! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add default panel plugin properties window location
Status:
RESOLVED: WORKSFORME
Severity:
enhancement
Product:
Xfce4-panel
Component:
General

Comments

Description juha editbugs 2006-04-12 11:44:52 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fi-FI; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fi-FI; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7)

It would be nice if Properties windows would appear close to the panel.
Current default is however below the panel (at least when panel is at the bottom) so that Close button is in visible. This means that properties window 
must always be moved.

It is easy to define the window to appear in the center of the screen, but it
would be more natural if there was a "next to panel" location available 
automatically as default.

This can be seen with the mixer or Test plugin with panel at the bottom.

Reproducible: Always
Comment 1 Jasper Huijsmans editbugs 2006-04-20 20:13:26 CEST
This is a hard problem, because every plugin has to manually position every dialog it uses. I tried making them transient for the panel, but that didn't really work very well, so I reverted it back to centering.

It still would be nice though...
Comment 2 Harold Aling 2007-09-23 19:47:33 CEST
There have been a discussion about adding popup code to xfce4-panel libs.

Is this a candidate too?
Comment 3 Jasper Huijsmans editbugs 2007-09-23 19:51:49 CEST
(In reply to comment #2)
> There have been a discussion about adding popup code to xfce4-panel libs.
> 
> Is this a candidate too?
> 

There's no code for this one, and I'm still a bit afraid that it may not really be possible to do this generically. It is a good request, so we'll just have to keep it open until someone has a brilliant idea (read: someone else ;-).
Comment 4 Nick Schermer editbugs 2009-03-23 08:09:12 CET
The is a new function in the 4.8 api, 
void xfce_panel_plugin_take_window (XfcePanelPlugin *plugin, GtkWindow *window);

This function will close the dialog window when the plugin is destroyed (like the g_object_[gs]_et_data way in the 4.6 panel), but it could also handle the window positioning. I looks like a suitable place to me... any ideas?

Bug #1659

Reported by:
juha
Reported on: 2006-04-12
Last modified on: 2012-03-10

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
Unspecified

Attachments

Additional information