PRATAP
(PRATAP)
November 12, 2022, 1:00pm
1
I am developing gnome-extension for shell version 43, Review "Bring Out Submenu Of Power Off Button" version 30 - GNOME Shell Extensions
in gnome-shell v42 on hover the tooltip is showing on top of all, please observe the gif below
now when I try to do this on v43 it is hidden under the QuickSettingsMenu
from the above Image, the text “suspend”, is partly under the QuickSettingsMenu background
if I change its position to top bar, it(the text “Suspend”) is visible fully like below,
any suggestions please?
thanks for your time.
andyholmes
(Andy Holmes)
November 13, 2022, 3:40am
2
PRATAP
(PRATAP)
November 13, 2022, 4:06am
3
Thank you very much @andyholmes ,
I tried it, and I could not make it success,
do I need to change anything in this code?
const LabelLauncher = new GObject.registerClass(
class LabelLauncher extends St.Widget {
_init() {
this.label = new St.Label({style_class: 'dash-label'});
this.label.hide();
Main.layoutManager.addTopChrome(this.label);
this.label_actor = this.label;
}
PRATAP
(PRATAP)
November 13, 2022, 4:45am
4
I tweaked the above code like this to use addTopChrome
but still the label(tooltip) is under the popup
const LabelLauncher = new GObject.registerClass(
class LabelLauncher extends St.Widget {
_init() {
this.label = new St.Label({style_class: 'dash-label'});
this.label.hide();
Main.layoutManager.addTopChrome(this.label);
}
andyholmes
(Andy Holmes)
November 13, 2022, 9:42pm
5
Maybe popup menus also use that function, and you should try Clutter.Actor:z-position
?
PRATAP
(PRATAP)
November 14, 2022, 2:33am
6
@andyholmes thank you verymuch for your response to link Clutter.Actor:z-position, I tried it and still not working. Can you have a look on the full code here, if you can bring this to work please.
https://extensions.gnome.org/review/36623
andyholmes
(Andy Holmes)
November 14, 2022, 3:02am
7
Sorry, I’ve never done this explicitly with actors before. You’ll just have to play around with the z-index
or maybe Clutter.Actor.set_child_above_sibling()
and related functions can help.
system
(system)
Closed
December 14, 2022, 3:02am
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.