diff options
Diffstat (limited to 'gtk/src/ghbcompat.c')
-rw-r--r-- | gtk/src/ghbcompat.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gtk/src/ghbcompat.c b/gtk/src/ghbcompat.c new file mode 100644 index 000000000..ce7623962 --- /dev/null +++ b/gtk/src/ghbcompat.c @@ -0,0 +1,36 @@ +/* + * ghbcompat.h + * Copyright (C) John Stebbins 2008-2019 <stebbins@stebbins> + * + * ghbcompat.h is free software. + * + * You may redistribute it and/or modify it under the terms of the + * GNU General Public License, as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * ghbcompat.h is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with callbacks.h. If not, write to: + * The Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor + * Boston, MA 02110-1301, USA. + */ + +#include "ghbcompat.h" + +G_MODULE_EXPORT gboolean +ghb_widget_hide_on_close( + GtkWidget *widget, +#if !GTK_CHECK_VERSION(3, 90, 0) + GdkEvent *event, +#endif + gpointer *ud) +{ + gtk_widget_set_visible(widget, FALSE); + return TRUE; +} |