-
Notifications
You must be signed in to change notification settings - Fork 41
Remove the "old" graph mode #264
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Grepping for
new.*graph
still hits one match inpytrainer/core/activity.py
, it's just a comment but a good opportunity to get rid of.
pytrainer/pytrainer/core/activity.py
Line 594 in fb6debc
pace = 0 #TODO this should be None when we move to newgraph... -
Bringing up the recordgraph now generates a lot of GTK warnings that wasn't there before:
(pytrainer:871586): Gtk-WARNING **: 10:54:04.630: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-WARNING **: 10:54:04.630: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.630: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.630: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.630: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.630: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-WARNING **: 10:54:04.664: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-WARNING **: 10:54:04.664: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.664: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.664: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.664: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.664: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-WARNING **: 10:54:04.692: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-WARNING **: 10:54:04.692: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.692: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.692: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.692: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.692: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-WARNING **: 10:54:04.720: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-WARNING **: 10:54:04.720: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.720: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.720: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.721: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.721: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-WARNING **: 10:54:04.749: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-WARNING **: 10:54:04.749: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.749: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.749: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.749: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.749: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-WARNING **: 10:54:04.776: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-WARNING **: 10:54:04.776: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.776: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.776: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.776: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.776: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
self.hbox30.show() | ||
#Hide new graph details | ||
self.graph_data_hbox.hide() | ||
self.hboxGraphOptions.hide() | ||
#Enable graph | ||
self.record_vbox.set_sensitive(1) | ||
self.drawarearecord.drawgraph(self.record_list,self.laps) | ||
#Hide current drop down boxes | ||
self.hbox30.hide() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think hbox30
can be removed entirely, from what I understand it's the old graph mode.
Since hbox30
is still present in glade and toggled to show
further down for activities without GPX data the two dropdowns with "Versus" in between can be seen for such activities.
Both these lines should then be removed too:
pytrainer/pytrainer/gui/windowmain.py
Lines 749 to 750 in fb6debc
self.hbox30.show() | |
#Hide new graph details |
This hasn't worked in years, so no point in carrying the option and code.
fb6debc
to
8cd0cc8
Compare
This hasn't worked in years, so no point in carrying the option and code.