GTG

Popup containing icons doesnt get closed on closing Edit Tag window

Bug #1293104 reported by Shikha Chowdhary
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Low
Shikha Chowdhary

Bug Description

Steps to reproduce
1)Select a tag to edit
2)In Edit tag window press 'Click to set icon'
3)A popup containing some icons opens.
4)Now close Edit tag window
5)The window disappears but the popup remains

Tags: github love
Revision history for this message
Sagar Ghuge (ghugesss) wrote :

Also one more problem with this.

On loosing foucs popup doesnt hide.

Expected Feature : on foucs-out popup should hide.

Revision history for this message
Shikha Chowdhary (shikhachowdhary28) wrote :

Should both these bugs be solved in a single branch?I have solved the first issue.Should I solve the second issue in this same branch?

Revision history for this message
Nimit Shah (nimit-svnit) wrote : Re: [Bug 1293104] Re: Popup containing icons doesnt get closed on closing Edit Tag window

Hi Sikha,
Fix both these issues in the same branch.

Nimit Shah

On Tue, Mar 18, 2014 at 2:50 AM, Shikha Chowdhary <
<email address hidden>> wrote:

> Should both these bugs be solved in a single branch?I have solved the
> first issue.Should I solve the second issue in this same branch?
>
> --
> You received this bug notification because you are subscribed to Getting
> Things GNOME!.
> Matching subscriptions: bugs
> https://bugs.launchpad.net/bugs/1293104
>
> Title:
> Popup containing icons doesnt get closed on closing Edit Tag window
>
> Status in Getting Things GNOME!:
> New
>
> Bug description:
> Steps to reproduce
> 1)Select a tag to edit
> 2)In Edit tag window press 'Click to set icon'
> 3)A popup containing some icons opens.
> 4)Now close Edit tag window
> 5)The window disappears but the popup remains
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gtg/+bug/1293104/+subscriptions
>

Changed in gtg:
assignee: nobody → Shikha Chowdhary (shikhachowdhary28)
Revision history for this message
Parin Porecha (parinporecha) wrote :

This bug is caused because the pointer position returned here - http://bazaar.launchpad.net/~gtg/gtg/trunk/view/head:/GTG/gtk/browser/tag_editor.py#L99 is wrong.

Why is it wrong ?
The issue is due to this line in tag_editor.py - http://bazaar.launchpad.net/~gtg/gtg/trunk/view/head:/GTG/gtk/browser/tag_editor.py#L159

According to the API - http://lazka.github.io/pgi-docs/api/Gdk_3.0/functions.html?highlight=pointer_grab#Gdk.pointer_grab , pointer_grab() is deprecated so that needs to be changed.

Hope this helps.

tags: added: love
Changed in gtg:
status: New → In Progress
importance: Undecided → Low
milestone: none → 0.3.2
Revision history for this message
Shikha Chowdhary (shikhachowdhary28) wrote :

Parin : The icon-selector is displayed at the right position.As per the current implementation the selector is hidden when the user 'clicks' out of it.What is expected is that the selector should be hidden when ' cursor hovers out' of the window.I changed 'button-press-event' to 'leave-notify-event' in http://bazaar.launchpad.net/~gtg/gtg/trunk/view/head:/GTG/gtk/browser/tag_editor.py#L168 and it works.

Revision history for this message
Parin Porecha (parinporecha) wrote :

Shikha > Yes, the icon selector is displayed at the right position, it's out of the question.
But, no the selector should only be hidden when user 'clicks' out of it, and not on hovering.

Yes, you can change the event to make it work, but that would be a hack. You will still get the pointer position from the pointer_grab() function which should not be there. So, you need to replace that with the appropriate function.

Revision history for this message
Shikha Chowdhary (shikhachowdhary28) wrote :

Ok.I will look into it.

On Thu, Mar 20, 2014 at 12:38 AM, Parin Porecha <email address hidden>wrote:

> Shikha > Yes, the icon selector is displayed at the right position, it's
> out of the question.
> But, no the selector should only be hidden when user 'clicks' out of it,
> and not on hovering.
>
> Yes, you can change the event to make it work, but that would be a hack.
> You will still get the pointer position from the pointer_grab() function
> which should not be there. So, you need to replace that with the
> appropriate function.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1293104
>
> Title:
> Popup containing icons doesnt get closed on closing Edit Tag window
>
> Status in Getting Things GNOME!:
> In Progress
>
> Bug description:
> Steps to reproduce
> 1)Select a tag to edit
> 2)In Edit tag window press 'Click to set icon'
> 3)A popup containing some icons opens.
> 4)Now close Edit tag window
> 5)The window disappears but the popup remains
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gtg/+bug/1293104/+subscriptions
>

Revision history for this message
Shikha Chowdhary (shikhachowdhary28) wrote :

I tried solving this by using http://lazka.github.io/pgi-docs/api/Gdk_3.0/classes/Device.html#Gdk.Device.grab .But the error says this function requires 7 arguments whereas the API states 6.I added 0 as the 7th argument and got to know that the first argument this function takes is Gdk.device . There is no method in Gdk.Device to set the source. I tried getting the device from http://lazka.github.io/pgi-docs/api/Gdk_3.0/classes/DeviceManager.html#Gdk.DeviceManager.get_client_pointer but the method again asks for 1 argument whereas the API states none.

Gdk.Device.grab(Gdk.DeviceManager.get_client_pointer(),self.get_window(),Gdk.GrabOwnership.NONE,True,Gdk.EventMask.ALL_EVENTS_MASK,None,0)
TypeError: get_client_pointer() takes exactly 1 argument (0 given)
TypeError: argument self: Expected Gdk.DeviceManager

I am stuck here.Please help

Revision history for this message
Parin Porecha (parinporecha) wrote :

Ask about this in #python on GimpNet

Izidor Matušov (izidor)
tags: added: github
Jeff Fortin Tam (kiddo)
Changed in gtg:
status: In Progress → Fix Committed
Jeff Fortin Tam (kiddo)
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.