Problems at use | Problèmes à l'utilisation
Vorron, Friday 31 May 2013 à 13:50
|
|
Subscription date : 31 May 2013
Messages : 20
|
After updating to 3.2.99.alpha1 global menu applet doesn't work. Message "The application didn't sent its menu to us" pops up for all programs.
Ubuntu 13.04. |
matttbe, Friday 31 May 2013 à 16:07
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Hello and thank you for this bug report!
I confirm this bug but unfortunately this bug is not fixed just because Global Menu has to use X11 specific functionalities.
@fabounet: How can we fix this bug? I see 5 possibilities:
- By adding a get_id() function in the Windows Manager:
=== modified file 'src/gldit/cairo-dock-windows-manager.c'
--- src/gldit/cairo-dock-windows-manager.c 2013-05-22 23:03:13 +0000
+++ src/gldit/cairo-dock-windows-manager.c 2013-05-31 13:10:46 +0000
@@ -280,6 +280,13 @@
}
}
+guint gldi_window_get_id (GldiWindowActor *actor)
+{
+ if (s_backend.get_id)
+ return s_backend.get_id (actor);
+ return 0;
+}
+
=== modified file 'src/gldit/cairo-dock-windows-manager.h'
--- src/gldit/cairo-dock-windows-manager.h 2013-05-18 22:32:05 +0000
+++ src/gldit/cairo-dock-windows-manager.h 2013-05-31 13:36:24 +0000
@@ -82,6 +82,7 @@
gboolean (*is_sticky) (GldiWindowActor *actor);
void (*set_sticky) (GldiWindowActor *actor, gboolean bSticky);
void (*can_minimize_maximize_close) (GldiWindowActor *actor, gboolean *bCanMinimize, gboolean *bCanMaximize, gboolean *bCanClose);
+ guint (*get_id) (GldiWindowActor *actor);
} ;
@@ -163,6 +164,8 @@
void gldi_window_can_minimize_maximize_close (GldiWindowActor *actor, gboolean *bCanMinimize, gboolean *bCanMaximize, gboolean *bCanClose);
+guint gldi_window_get_id (GldiWindowActor *actor);
+
gboolean gldi_window_is_on_current_desktop (GldiWindowActor *actor);
=== modified file 'src/implementations/cairo-dock-X-manager.c'
--- src/implementations/cairo-dock-X-manager.c 2013-05-20 08:51:10 +0000
+++ src/implementations/cairo-dock-X-manager.c 2013-05-31 13:10:05 +0000
@@ -793,6 +793,12 @@
cairo_dock_xwindow_can_minimize_maximized_close (xactor->Xid, bCanMinimize, bCanMaximize, bCanClose);
}
+static guint _get_id (GldiWindowActor *actor)
+{
+ GldiXWindowActor *xactor = (GldiXWindowActor *)actor;
+ return xactor->Xid;
+}
+
@@ -888,6 +894,7 @@
wmb.is_sticky = _is_sticky;
wmb.set_sticky = _set_sticky;
wmb.can_minimize_maximize_close = _can_minimize_maximize_close;
+ wmb.get_id = _get_id;
gldi_windows_manager_register_backend (&wmb);
}
- Or by adding cairo-dock-X-manager.h in the include directory (if we are using X manager, we can use GldiXWindowActor)
- Or by adding a function (get-id) in cairo-dock-X-utilies.[ch]
- Or by tracking all windows in Global-Menu (but maybe a bit useless)
- Or by using cairo_dock_get_active_xwindow() (but maybe not correct)
|
Vorron, Sunday 02 June 2013 à 14:45
|
|
Subscription date : 31 May 2013
Messages : 20
|
The bug fixed after last update. Thanks a lot for quick response. It's really cool since I'm using weekly version in main system
This theme may be marked as solved, but it should be mentioned that global menu hotkey (Alt+F1) still doesn't working. There was another theme with bug report, unfortunately I can't find it now. Can you say anything about hotkeys (Alt+F1 for global menu, Ctrl+F1 for application menu)? Thanks. |
Subscription date : 30 November 2007
Messages : 17118
|
these shortkeys are maybe used by another application
you can see that by launching the dock in a terminal (close the running one first) |
matttbe, Monday 17 June 2013 à 14:59
|
|
Problems at use | Problèmes à l'utilisation
|