After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 627306 - traymanager updates
traymanager updates
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-08-18 21:20 UTC by Dan Winship
Modified: 2010-08-19 14:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[tray] sync NaTray code from gnome-panel (11.07 KB, patch)
2010-08-18 21:20 UTC, Dan Winship
committed Details | Review
[ShellTrayManager] a few updates (3.01 KB, patch)
2010-08-18 21:20 UTC, Dan Winship
committed Details | Review

Description Dan Winship 2010-08-18 21:20:21 UTC
more pre-608869 patches, pertaining to the cut+pasted NaTray code and
ShellTrayManager
Comment 1 Dan Winship 2010-08-18 21:20:23 UTC
Created attachment 168235 [details] [review]
[tray] sync NaTray code from gnome-panel

Our copies and gnome-panel's had been ported for GSEAL independently.
Sync them back up again.
Comment 2 Dan Winship 2010-08-18 21:20:25 UTC
Created attachment 168236 [details] [review]
[ShellTrayManager] a few updates

Use the new na_tray_child_get_wm_class() method.
Add the trayicon title to the signal.
Comment 3 Owen Taylor 2010-08-18 21:57:55 UTC
Review of attachment 168235 [details] [review]:

Couple of small things that need to be fixed (and presumably pushed back to gnome-panel). Otherwise, OK to commit.

::: src/tray/na-tray-child.c
@@ +140,3 @@
+                   allocation->y != widget_allocation.y;
+  gboolean resized = allocation->width != widget_allocation.width ||
+                     allocation->height != widget_allocation.height;

mixed-declarations-and-code

::: src/tray/na-tray-manager.c
@@ +591,1 @@
+  if (!manager->invisible || !window)

manager->invisible is used before it is checked for NULL

@@ +623,1 @@
+  if (!manager->invisible || !window)

And again here
Comment 4 Owen Taylor 2010-08-18 22:03:02 UTC
Review of attachment 168236 [details] [review]:

Sort of confusing that the JS prototype connected to the signal wasn't modified to have the extra parameter, but will work fine sending in an extra parameter and patch looks OK.
Comment 5 Dan Winship 2010-08-19 14:03:06 UTC
(In reply to comment #4)
> Sort of confusing that the JS prototype connected to the signal wasn't modified
> to have the extra parameter, but will work fine sending in an extra parameter
> and patch looks OK.

yeah, it will get used by the new tray manager in 608869, i just rearranged the patches and this seemed to make more sense here
Comment 6 Dan Winship 2010-08-19 14:15:11 UTC
filed bug 627368 against gnome-panel

Attachment 168235 [details] pushed as 7ff7ec0 - [tray] sync NaTray code from gnome-panel
Attachment 168236 [details] pushed as d9169d2 - [ShellTrayManager] a few updates