Opened 7 years ago

Last modified 7 years ago

#4978 new defect

Can't invoke a screenshot in Journal when icon popup menu is active

Reported by: FGrose Owned by:
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Sugar Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: Fedora
Bug Status: New

Description (last modified by FGrose)

Observed on Fedora-SoaS-Live-x86_64-26-20170423.n.0.iso and Fedora-SoaS-Live-x86_64-26-20170429.n.0.iso

Alt 1 and PrtScn fail to invoke the request when an item popup menu/panel is active. Alt 1 and the Frame screenshot tool work otherwise.

Attachments (1)

log-1493577119.zip (34.9 KB) - added by FGrose 7 years ago.
Log capture

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by FGrose

Log capture

comment:1 Changed 7 years ago by FGrose

  • Summary changed from Can't invoke a screeshot from the keyboard. to Can't invoke a screenshot from the keyboard.

comment:2 Changed 7 years ago by quozl

Thanks for the logs; but they have nothing indicative.

Fedora 26 is using Sugar 0.110 as released with one patch from master. There are 30 other patches in master not included, but none of them are in the screenshot or global hotkey features.

I can't afford a download of those ISOs at this time, but as you've got them already please do some more tests;

  • try the frame activation of screenshot, see test case 2 below; this should narrow the problem to either global hotkey response or journal datastore writing,
  • try the Alt key in the home view activity ring; it should cause activities with journal entries to lose colour; this proves whether Sugar is properly receiving the key event,
  • in /usr/share/sugar/extensions/globalkey/screenshot.py in the handle_key_press function, change
def handle_key_press(key):
    take_screenshot()

to

import sys

def handle_key_press(key):
    print >>sys.stderr, repr(take_screenshot())

and then restart Sugar without rebooting, try taking a screenshot using Alt+1, and look at shell.log for the response; this should prove the hotkey is responded to.


Test case 1; press F5 to display Journal, then Alt+1 and a 'Screenshot of "Journal"' entry with image viewer icon should be shown.

Test case 2; press F5 to display Journal, then F6 to display frame, then right-click on the display icon, and select "Take a screenshot", and a 'Screenshot of ' entry should be shown.

comment:3 Changed 7 years ago by FGrose

  • Bug Status changed from Unconfirmed to New
  • Component changed from Sugar on a Stick (SoaS) to Sugar
  • Description modified (diff)
  • Summary changed from Can't invoke a screenshot from the keyboard. to Can't invoke a screenshot in Journal when icon popup menu is active

Thanks for the directed testing suggestions.

See the modified title and description.

comment:4 Changed 7 years ago by quozl

Which menus cause this? In my tests; the journal entry menus do, but the home view activity and buddy menus do not.

Test case; F3 home view activity ring, mouse over activity icon or centre buddy icon, wait for popup menu, then press Alt+1. Expect a screenshot.

Sugar 0.110 with Fedora 18 and GTK+ 3.6.4, and Ubuntu 16.04 and GTK+ 3.18.9; pass.

Test case; F6 journal, mouse over an entry, wait for popup menu, then press Alt+1. Expect a screenshot.

Sugar 0.110 with Fedora 18 and GTK+ 3.6.4, and Ubuntu 16.04 and GTK+ 3.18.9; fail.

Brief speculation;

  • on the one hand, long ago we wanted to avoid all modal dialogs and the standard GTK+ menus because they blocked hotkeys and screenshot.
  • and on the other hand, there's been some change in how menus are implemented that may have undone that; either in GTK+ or in sugar-toolkit-gtk3,

You and I both seem to remember it working. Do you recall when screenshot last worked with a journal entry menu? That will help constrain the search for change.

Note: See TracTickets for help on using tickets.