summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-10-17 23:42:15 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2015-10-17 23:49:35 +0300
commitc1b97d2747004d1912744ab7ff11353a73713310 (patch)
treee4b32a4e17eaf59898950d8f965b05db2add313a
parentf8f1a0645106a02a926e96d61f5a55c0e8e41a7b (diff)
tdf#94936 Update the button removal hack to 3.18
Gtk 3.18 has the filename entry in the header too. Change-Id: Id1abf5baf0e82c03e27ede2bfc67ec1983a2c4fb
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index ac9f8d171d50..4f35390355f0 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -425,7 +425,11 @@ dialog_remove_buttons(GtkWidget *pActionArea)
gtk_container_get_children( GTK_CONTAINER( pActionArea ) );
for( GList *p = pChildren; p; p = p->next )
- gtk_widget_destroy( GTK_WIDGET( p->data ) );
+ {
+ GtkWidget *pWidget = GTK_WIDGET( p->data );
+ if ( GTK_IS_BUTTON( pWidget ) )
+ gtk_widget_destroy( pWidget );
+ }
g_list_free( pChildren );
}