jgke / connman-gtk

ConnMan GTK GUI (unmaintained)
GNU General Public License v2.0
56 stars 15 forks source link

No tray icon with stalone tray #15

Closed Astaoth closed 8 years ago

Astaoth commented 8 years ago

Hi,

Even build with the "--enable-status-icon=yes" option, there is no tray icon displayed with Stalonetray.

jgke commented 8 years ago

I have some breakage as well regarding the icon, I'm suspecting GTK... What GTK version do you have?

Astaoth commented 8 years ago

I have gtk3 3.18.5 and gtk2 2.24.28 installed.

jgke commented 8 years ago

Cannot reproduce, the icon shows up just fine over here. Does connman-gtk show any warnings or errors in stderr?

Astaoth commented 8 years ago

No there is nothing written.

jgke commented 8 years ago

Oh, and do check the settings menu, there's a enable/disable status icon checkbox (requires restarting connman-gtk to take effect).

Astaoth commented 8 years ago

Right, I didn't see it. However, the first time I launched it, I enabled the "Launch to tray by default" option. So now, when I launch it, it starts minimized but I don't have the status icon :/.

jgke commented 8 years ago

Hm, so at least a option like --no-tray is missing... Run the command 'gsettings set net.connman.gtk launch-to-tray false'.

Astaoth commented 8 years ago

Thank you. I think "Launch to tray by default" option should also enable the "Use status icon". It will avoid this kind of problem.

jgke commented 8 years ago

Or alternatively do nothing if the status icon is not selected. Quality code, who the hell wrote this... Culprit is main.c:628, I'll push out the fix on Thursday.

Astaoth commented 8 years ago

Thank you :)