Skip to content
Snippets Groups Projects
Commit 12d1a65a authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent f539ba3b
Branches
Tags
No related merge requests found
...@@ -656,11 +656,6 @@ void GUI::callForSolverPlugin(int dim) ...@@ -656,11 +656,6 @@ void GUI::callForSolverPlugin(int dim)
// Callbacks // Callbacks
void hide_cb(Fl_Widget *w, void *data)
{
if(data) ((Fl_Window*)data)->hide();
}
void redraw_cb(Fl_Widget *w, void *data) void redraw_cb(Fl_Widget *w, void *data)
{ {
Draw(); Draw();
......
...@@ -107,7 +107,6 @@ class GUI{ ...@@ -107,7 +107,6 @@ class GUI{
void callForSolverPlugin(int dim); void callForSolverPlugin(int dim);
}; };
void hide_cb(Fl_Widget *w, void *data);
void redraw_cb(Fl_Widget *w, void *data); void redraw_cb(Fl_Widget *w, void *data);
void window_cb(Fl_Widget *w, void *data); void window_cb(Fl_Widget *w, void *data);
......
...@@ -32,6 +32,11 @@ static void help_credits_cb(Fl_Widget *w, void *data) ...@@ -32,6 +32,11 @@ static void help_credits_cb(Fl_Widget *w, void *data)
SystemCall(cmd); SystemCall(cmd);
} }
static void help_hide_cb(Fl_Widget *w, void *data)
{
((Fl_Window*)data)->hide();
}
aboutWindow::aboutWindow() aboutWindow::aboutWindow()
{ {
char buffer[1024]; char buffer[1024];
...@@ -82,7 +87,7 @@ aboutWindow::aboutWindow() ...@@ -82,7 +87,7 @@ aboutWindow::aboutWindow()
o->add(" "); o->add(" ");
o->add("@c@.Visit http://www.geuz.org/gmsh/ for more information"); o->add("@c@.Visit http://www.geuz.org/gmsh/ for more information");
o->add(" "); o->add(" ");
o->callback(hide_cb, (void *)win); o->callback(help_hide_cb, (void*)win);
} }
{ {
......
...@@ -2401,7 +2401,7 @@ contextItem menu_mesh[] = { ...@@ -2401,7 +2401,7 @@ contextItem menu_mesh[] = {
#if defined(HAVE_FOURIER_MODEL) #if defined(HAVE_FOURIER_MODEL)
{"Reparameterize", (Fl_Callback *)mesh_parameterize_cb} , {"Reparameterize", (Fl_Callback *)mesh_parameterize_cb} ,
#endif #endif
{"Reclassify", (Fl_Callback *)mesh_classify_cb} , // {"Reclassify", (Fl_Callback *)mesh_classify_cb} ,
{"Save", (Fl_Callback *)mesh_save_cb} , {"Save", (Fl_Callback *)mesh_save_cb} ,
{0} {0}
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment