bugDenemo - Bugs: bug #38731, Move annoying pop-ups to the side


bug #38731: Move annoying pop-ups to the side

Submitted by:  None
Submitted on:  Sat Apr 13 15:13:10 2013  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Mon Apr 29 16:32:10 2013, comment #6:

Perhaps GTK is largely developed by some large commercial interests rather than a thriving community of interested individuals, that would explain the lack of response...

Richard Shann <rshann>
Project Administrator
Mon Apr 29 13:15:03 2013, comment #5:

Yes, that was me. I'm surprised it hasn't received a response.

As far as I know the position of tooltips is only influenced in gtk_tooltip_position [1], and not by any theme properties. The default is to place the tooltips below the widget, though I haven't looked much into the positioning rules since it I would rather have application-level control over the tooltip position. For example, the positioning rules for the canvas tooltip should differ from the menu tooltips, and a global preference to move all tooltips to the bottom right of the main window would also be nifty.

[1] https://git.gnome.org/browse/gtk+/tree/gtk/gtktooltip.c#n1059

Thu Apr 25 07:02:34 2013, comment #4:

Coincidentally (?) there is a new email on the gtk-list which I append below because I don't know how to reference it. I was going to say that if the default is not right then gtk should change it, and if it needs customization then some "theme" thing needs to be used - which may then expose some bug in Denemo ignoring themes....

From: Yclept Nemo <orbisvicis@gmail.com>
To: -unavailable-
Subject: Customize GtkTooltip position
Date: 04/25/13 05:03:05

I've settled on subclassing GtkTooltip:
. create a new type, GTK_TYPE_TOOLTIP_POSITION
. add three new instance members, gint position_x, gint position_y,
gboolean position_override
. override the class function gtk_tooltip_position: if
position_override: gtk_window_move to position_x and position_y;
position_override = FALSE, otherwise: call parent (original)

However, I can't figure out how to override the "query-tooltip" signal
and "query-tooltip" default handler to use GTK_TYPE_TOOLTIP_POSITION
instead of GTK_TYPE_TOOLTIP.

Also, I'm not clear at what point gtk_tooltip_init is called. Does the
new "query-tooltip" signal registered (g_signal_new) in gtkwidget.c
create a new GTK_TYPE_TOOLTIP object?

gtk-list mailing list

Richard Shann <rshann>
Project Administrator
Wed Apr 24 22:12:41 2013, comment #3:

Approach #1: access GtkTooltip->window, use gtk_window_move
. problem: struct _GtkTooltip is hidden

Approach #2: gtk_window_new, gtk_widget_set_tooltip_window, gtk_window_move
. problem: position overridden by GtkTooltip on first show (any additional mouse movement uses the correct position)

Approach #3: subclass GtkTooltip (TODO)

Wed Apr 24 19:22:55 2013, comment #2:

It should be possible to change the position of the tooltip using the "query-tooltip" signal handler and gtk_widget_get_tooltip_window().


Sun Apr 21 16:57:31 2013, comment #1:

This is GTK that has the behavior you are noticing - I think the popup is relative to the cursor. I trust you know you can set a preference for the time to pop-up? In Edit->Change Preferences, Command Behavior

Richard Shann <rshann>
Project Administrator
Sat Apr 13 15:13:10 2013, original submission:

The pop-ups are annoying because:
*Menus: they cover other menu entries
*Canvas: they cover staves (and notes, etc)

The menu pop-ups should be moved to the side, to the right or left of the menu (depends on screen position).

Not tips about where to put the canvas pop-ups, but they aren't that annoying anyway.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rshann (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Aug 16 14:58:29 2016rshannOpen/ClosedOpen=>Closed
    Thu Apr 25 07:02:34 2013rshannStatusInvalid=>Need Info
    Sun Apr 21 16:57:31 2013rshannStatusNone=>Invalid

    Back to the top

    Powered by Savane 3.1-cleanup1