-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to Gtk+ 3 #6
Conversation
Thanks. Reviewed to c7934d9.
I've no idea.
Perhaps caused by Perhaps that class can be replaced by ToggleToolButton in sugar3? |
Changed to |
Thanks, reviewed to c7934d9 I get this error -- the activity runs fine though --
It'll be great if you remove the commented out code, there's too many of them.
I don't know why you get this error, there's a |
@yashagrawal3, great, thanks. @chimosky, when you pasted that traceback, you didn't press enter after the three tick marks, so the text traceback was taken by GitHub to be a language description. Useful, because the text is smaller. But the missing first line makes it harder to perceive. I'll edit. |
@quozl, i did press enter after the three tick marks, the traceback started on the next line. |
@yashagrawal3, thanks. Reviewed, nice job. |
No, you didn't. If you're looking at how it looks like now, remember you're looking at my edits. Look at the history. |
@quozl, how would you like to proceed?, is there anything you'd like @yashagrawal3 to do?. |
@chimosky, I'm waiting for consensus. With your involvement in the pull request, I wait for you to review the latest commit and tell me if you tested. |
@quozl thanks, @yashagrawal3 reviewed up to eeacdb3 i get this error
Seems that's the first time it's been called and it wasn't initialised in that class but it was initialised in
Steps to reproduce
It'll also be great if there's a tooltip for the @quozl, i also get this error
What do you think? |
@quozl my clone was backwards, updated and activity now works fine. |
Tested eeacdb3;
Also a traceback;
|
@quozl i encountered this error, try cloning again before testing. |
It has to work without cloning again, thanks. You'll have to find what is wrong. |
I don't understand the reason of it happening, these errors are not present in mine version except the delay one. |
What's a dealy one? Keep debugging; use pdb or other tools, find out why it does not work. |
@yashagrawal3 click on the button before the last, change |
Fixed the Traceback @quozl pasted above. I am still not able to figure out the reason of delay in redraw and long redraw after the close button is pressed. Collapsing toolbar also seems to be a hard task. Any leads will be helpful. |
Thanks. Reviewed to 3dbb047. Tested on Ubuntu 16.04 with Sugar 0.112. In d99c7c7 your commit message didn't explain the problem and how you solved it, but it looks like you copied code from somewhere else. Would it be more appropriate to make the colors array global rather than a class variable? In c804ea0 your commit message didn't explain the problem and how you solved it, but it looks like you moved the stroke call up, causing the set_line_width and set_source_rgb calls to be ineffective? I'm puzzled. In 3dbb047 you added a lot of code that could have been factored out into a function to convert a Gdk.Color into RGB. Investigated. The reasons for the delay in redraw and long redraw on close are;
To demonstrate this, add this code temporarily to the end of StarChart.py; def close(self, **kwargs):
# disconnect the draw function to avoid a long delay during close
self.chart.disconnect_by_func(self.chart.area_expose_cb)
activity.Activity.close(self, **kwargs) However, this is a hack, and not an acceptable solution. The area_expose_cb function should be;
Also, it would be good to get away from using global variables; while there was once a need to do so on a particularly old version of GTK+ 2, it should not be needed with GTK+ 3. |
Activity is ported to GTK +3 , Cairo.
A couple of things that I was not able to fix.
@quozl @chimosky please review!