-
Notifications
You must be signed in to change notification settings - Fork 9
Port to GTK3 and Python3 #8
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
base: master
Are you sure you want to change the base?
Conversation
Use Gdk.DrawingArea via context (c) -- Rename area_expose_cb to draw_cb , fix argument names for draw_cb
Thanks. Reviewed by examining diff, with and without whitespace changes.
Tested for excessive updates;
Pass. bf4201f is effective. Tested features;
Checked appearance;
|
I saw some ambiguous behaviour of view buttons. They are queuing redraw, but only when we click on main view button after clicking on a particular view button.
Can you please tell on which display you are testing? |
Why does that happen?
In the above screenshots, QEMU/KVM with virtual display configured for 1024x768 resolution. I don't understand why you need to know this. |
I don't know. I haven't made any change which could result in this behaviour. You have also mentioned the issue in #6 (comment).
Actually this issue is also introduced by that previous port to Gtk3 , Trying to look into it what could cause this behaviour. |
It is caused by not calling Summary is that the Port to GTK 3 is incomplete. |
Tested not yet reviewed changes; some additional observations/suggestions:
|
@quozl said;
Fixed @JuiP said;
When tooltips are set, clicking on the buttons doesn't activate them when they're clicked for some reason.
This is an existing bug and wasn't created by this PR, doesn't mean it can't be fixed here but I don't think it's paramount that it's fixed here. |
f5f7b7b ("queue draw in draw_cb") causes an infinite loop because every time GTK asks the app to draw, the app asks GTK to ask to draw again. It is not correct to call |
Signed-off-by: Ibiam Chihurumnaya <[email protected]>
Seems it's been called in all the necessary places, do you still notice the appearance difference in your tests? |
Tetsed f4933fe. The view buttons remain ineffective. Here's how I fixed it for the Flip L/R button; diff --git a/StarChart.py b/StarChart.py
index 225ec62..f643714 100644
--- a/StarChart.py
+++ b/StarChart.py
@@ -1164,6 +1164,7 @@ class ChartDisplay(Gtk.DrawingArea):
elif (data == 'flip horizontally'):
self.fliphorizontally = button3.get_active()
self.plotchart()
+ self.queue_draw()
return False
elif (data == 'draw constellations'):
self.drawconstellations = button4.get_active() Probably there is a better place to put this. |
switch to floor division when divisor is an int remove redundant reversed call in loops call self.queue_draw in plotchart for a redraw Signed-off-by: Ibiam Chihurumnaya <[email protected]>
Tested , works as expected. draw by clicking on stop button is solved in bf4201f. I did what @quozl suggested in #6 (comment). @quozl @chimosky Please review.