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 13 Apr 2013 03:13:10 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: Open

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 29 Apr 2013 04:32:10 PM UTC, 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 29 Apr 2013 01:15:03 PM UTC, 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

Anonymous
Thu 25 Apr 2013 07:02:34 AM UTC, 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)
gtk_tooltip_position.

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?

sincerely,
_____________________________________________
gtk-list mailing list
-unavailable-
https://mail.gnome.org/mailman/listinfo/gtk-list

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

Well:
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)

Anonymous
Wed 24 Apr 2013 07:22:55 PM UTC, 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().

https://developer.gnome.org/gtk3/stable/GtkTooltip.html

Anonymous
Sun 21 Apr 2013 04:57:31 PM UTC, 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 13 Apr 2013 03:13:10 PM UTC, 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.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 25 Apr 2013 07:02:34 AM UTCrshannStatusInvalid=>Need Info
      Open/ClosedClosed=>Open
    Sun 21 Apr 2013 04:57:31 PM UTCrshannStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup