From 66a2b5f03c85a5a1c94ad439bc31eda958a5e7a9 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Thu, 27 Apr 2017 23:35:50 +0200 Subject: [PATCH] Fix more missing sentinel warnings --- radiant/gtkmisc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radiant/gtkmisc.cpp b/radiant/gtkmisc.cpp index 21dd9f49..f921c026 100644 --- a/radiant/gtkmisc.cpp +++ b/radiant/gtkmisc.cpp @@ -1465,7 +1465,7 @@ const char* file_dialog( void *parent, gboolean open, const char* title, const c *w = '\0'; action = open ? GTK_FILE_CHOOSER_ACTION_OPEN : GTK_FILE_CHOOSER_ACTION_SAVE; - file_sel = gtk_file_chooser_dialog_new( title, GTK_WINDOW( parent ), action, NULL, NULL ); + file_sel = gtk_file_chooser_dialog_new( title, GTK_WINDOW( parent ), action, NULL, (char*)NULL ); gtk_dialog_add_button( GTK_DIALOG( file_sel ), open ? _( "Open" ) : _("Save" ), GTK_RESPONSE_ACCEPT ); gtk_dialog_add_button( GTK_DIALOG( file_sel ), _( "Cancel" ), GTK_RESPONSE_CANCEL ); @@ -1588,7 +1588,7 @@ char* WINAPI dir_dialog( void *parent, const char* title, const char* path ){ gint response_id; GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; - file_sel = gtk_file_chooser_dialog_new( title, GTK_WINDOW( parent ), action, NULL, NULL ); + file_sel = gtk_file_chooser_dialog_new( title, GTK_WINDOW( parent ), action, NULL, (char*)NULL ); gtk_dialog_add_button( GTK_DIALOG( file_sel ), _( "OK" ), GTK_RESPONSE_ACCEPT ); gtk_dialog_add_button( GTK_DIALOG( file_sel ), _( "Cancel" ), GTK_RESPONSE_CANCEL );