mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Flush any pending changes at notebook 'switch-page' time
Dirk points out that equipment changes (cylinder size etc) do not cause a proper repaint of the dive profile with new SAC information. The reason? We haven't flushed the changes when the notebook changes from the equipment page to the dive profile page. Reported-by: Dirk Hohndel <dirk@hohndel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b35e1bad8e
commit
5f13a87cbd
1 changed files with 6 additions and 0 deletions
6
main.c
6
main.c
|
@ -410,6 +410,11 @@ static GtkWidget *get_menubar_menu(GtkWidget *window)
|
|||
return menu;
|
||||
}
|
||||
|
||||
static void switch_page(GtkNotebook *notebook, gint arg1, gpointer user_data)
|
||||
{
|
||||
repaint_dive();
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
|
@ -470,6 +475,7 @@ int main(int argc, char **argv)
|
|||
|
||||
/* Notebook for dive info vs profile vs .. */
|
||||
notebook = gtk_notebook_new();
|
||||
g_signal_connect(notebook, "switch-page", G_CALLBACK(switch_page), NULL);
|
||||
gtk_box_pack_start(GTK_BOX(info_box), notebook, TRUE, TRUE, 6);
|
||||
|
||||
/* Frame for dive profile */
|
||||
|
|
Loading…
Add table
Reference in a new issue