tbursztyka / connman-ui

A full-featured GTK based trayicon UI for ConnMan
GNU General Public License v2.0
38 stars 13 forks source link

Display Available Networks issue: Pop up box does not expand with systray on bottom panel #15

Closed pete4abw closed 9 years ago

pete4abw commented 9 years ago

System and Platform:

KDE=4.10.5 (fresh home .kde folder) Kernel: 3.10.17 (stock) OS: Slackware 14.1 (stock) Video: nouveau driver (VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M](rev a1)) Git Pull: 2015-02-15

Description of issue:

With system tray on bottom panel, left-clicking connman-ui icon brings up an unusable list of available networks. All that's visible is scroll arrows at top and bottom.

With system tray on top panel, display of available networks works fine.

Thank you.

connman-ui-gtk-connections-bot connman-ui-gtk-connections-top

tbursztyka commented 9 years ago

That's a known Gtk+ issue (check this: https://github.com/tbursztyka/connman-ui/issues/6 )

However there is something new in your case: it seems to work when the panel is on top of the screen. Never got that working myself on kde systray. So it means gtk is doing things a bit better this time somehow.

pete4abw commented 9 years ago

Apologies for dup.

pete4abw commented 9 years ago

Update. Right click menu (Airplane mode, On and Off toggles) always expands menu to full height. Maybe because it is fixed size, not growable. However, some times (not always) click-hold iteratively causes the menu to grow each time. In addition, if system tray is on top and menu viewed then moved to the bottom, menu expands properly the first time. Obviously a defect in gtk, but maybe this is helpful. connman-ui_rightclickmenu

timothytylee commented 9 years ago

This issue can be fixed with pull request #18

tbursztyka commented 9 years ago

@timothytylee : Would you mind fixing the menu position issue? Looks like it has been introduced by your patch. Don't get me wrong, your patch is nice. Actually, this is again a proof that gtk does really stupid stuff around systray.

The fix would be to store the position at the left click on the systray icon. Then for every update of the menu: requesting the same position.

timothytylee commented 9 years ago

Dear Tomasz,

I've written up a patch and created a pull request. The fix uses a callback function to position the popup menu. Code copied from gtk_position_menu() to override the anchor position and menu size calculation.

You're right about GTK not doing enough about the system tray side of thing...... :(

Regards, Timothy

On 05/06/2015 02:57 PM, Tomasz Bursztyka wrote:

@timothytylee https://github.com/timothytylee : Would you mind fixing the menu position issue? Looks like it has been introduced by your patch. Don't get me wrong, your patch is nice. Actually, this is again a proof that gtk does really stupid stuff around systray.

The fix would be to store the position at the left click on the systray icon. Then for every update of the menu: requesting the same position.

— Reply to this email directly or view it on GitHub https://github.com/tbursztyka/connman-ui/issues/15#issuecomment-99346196.

tbursztyka commented 9 years ago

Thanks a lot!

I'll try to find some time to review it, test it and merge it.

tbursztyka commented 9 years ago

Patch merged, thanks Timothy.

Btw, have you noticed that now systray icon on Gtk is a "deprecated feature"? (and only because gnome does not need it... because of course only gnome uses gtk...)

timothytylee commented 9 years ago

Dear Tomasz,

I noticed that during compilation. I hope they don't decide to pull the support for GtkStatusIcon completely... :(

Regards, Timothy

On 06/15/2015 05:43 PM, Tomasz Bursztyka wrote:

Patch merged, thanks Timothy.

Btw, have you noticed that now systray icon on Gtk is a "deprecated feature"? (and only because gnome does not need it... because of course only gnome uses gtk...)

— Reply to this email directly or view it on GitHub https://github.com/tbursztyka/connman-ui/issues/15#issuecomment-111999576.