From: erg Date: Sat, 28 Aug 2010 20:44:35 +0000 (+0000) Subject: Add action so that clicking on the delete button in the window X-Git-Tag: LAST_LIBGRAPH~32^2~1213 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d38485ce5a2b51d7cd473e09b15562ba0cd3d7fe;p=graphviz Add action so that clicking on the delete button in the window frame hides the frame. --- diff --git a/cmd/smyrna/gui/datalistcallbacks.c b/cmd/smyrna/gui/datalistcallbacks.c index 2516f39e2..5b5e4c25e 100755 --- a/cmd/smyrna/gui/datalistcallbacks.c +++ b/cmd/smyrna/gui/datalistcallbacks.c @@ -29,6 +29,11 @@ void btnTVOK_clicked_cb(GtkWidget * widget, gpointer user_data) gtk_widget_hide(glade_xml_get_widget(xml, "frmTVNodes")); } +void on_TVNodes_close (GtkWidget * widget, gpointer user_data) +{ + gtk_widget_hide(glade_xml_get_widget(xml, "frmTVNodes")); +} + void btnTVReverse_clicked_cb(GtkWidget * widget, gpointer user_data) { } diff --git a/cmd/smyrna/gui/topviewsettings.c b/cmd/smyrna/gui/topviewsettings.c index c3eda39f1..78dd3d0d0 100644 --- a/cmd/smyrna/gui/topviewsettings.c +++ b/cmd/smyrna/gui/topviewsettings.c @@ -47,11 +47,10 @@ void on_settingsApplyBtn_clicked(GtkWidget * widget, gpointer user_data) } void on_dlgSettings_close (GtkWidget * widget, gpointer user_data) { - printf ("setting window is being closed\n"); + gtk_widget_hide(glade_xml_get_widget(xml, "dlgSettings")); + /* printf ("setting window is being closed\n"); */ } - - void on_settingsCancelBtn_clicked(GtkWidget * widget, gpointer user_data) { gtk_widget_hide(glade_xml_get_widget(xml, "dlgSettings"));