mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2024-06-22 06:02:26 -04:00
Fix GTK related warnings
This commit is contained in:
parent
a7b8c952c9
commit
7ea89ddaad
|
@ -314,7 +314,7 @@ void gtkui_create() {
|
|||
|
||||
// Make it dark if there's a dark theme
|
||||
GtkSettings *gtksettings = gtk_settings_get_default();
|
||||
g_object_set(G_OBJECT(gtksettings), "gtk-application-prefer-dark-theme", TRUE, NULL);
|
||||
g_object_set(G_OBJECT(gtksettings), "gtk-application-prefer-dark-theme", TRUE, nullptr);
|
||||
|
||||
// Set up the Drag and Drop target
|
||||
GtkTargetEntry target_entry[1];
|
||||
|
|
|
@ -110,7 +110,7 @@ bool gtkui_archive_select(const char *filename, char *reqfile, size_t reqsize) {
|
|||
"NES file",
|
||||
renderer,
|
||||
"text", 0,
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
gtk_tree_view_append_column(GTK_TREE_VIEW (treeview), column);
|
||||
|
||||
|
|
|
@ -222,11 +222,11 @@ GtkWidget *gtkui_cheats() {
|
|||
|
||||
GtkTreeViewColumn *column[5];
|
||||
// create the display columns
|
||||
column[0] = gtk_tree_view_column_new_with_attributes("Enable", checkbox, "active", 0, NULL);
|
||||
column[1] = gtk_tree_view_column_new_with_attributes("Game Genie", renderer, "text", 1, NULL);
|
||||
column[2] = gtk_tree_view_column_new_with_attributes("PAR", renderer, "text", 2, NULL);
|
||||
column[3] = gtk_tree_view_column_new_with_attributes("Raw", renderer, "text", 3, NULL);
|
||||
column[4] = gtk_tree_view_column_new_with_attributes("Description", renderer, "text", 4, NULL);
|
||||
column[0] = gtk_tree_view_column_new_with_attributes("Enable", checkbox, "active", 0, nullptr);
|
||||
column[1] = gtk_tree_view_column_new_with_attributes("Game Genie", renderer, "text", 1, nullptr);
|
||||
column[2] = gtk_tree_view_column_new_with_attributes("PAR", renderer, "text", 2, nullptr);
|
||||
column[3] = gtk_tree_view_column_new_with_attributes("Raw", renderer, "text", 3, nullptr);
|
||||
column[4] = gtk_tree_view_column_new_with_attributes("Description", renderer, "text", 4, nullptr);
|
||||
|
||||
// add the display column and renderer to the tree view
|
||||
gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column[0]);
|
||||
|
|
|
@ -829,10 +829,10 @@ GtkWidget *gtkui_config() {
|
|||
|
||||
GtkTreeViewColumn *columns[2];
|
||||
columns[0] = gtk_tree_view_column_new_with_attributes(
|
||||
"Button", renderer, "text", 0, NULL);
|
||||
"Button", renderer, "text", 0, nullptr);
|
||||
|
||||
columns[1] = gtk_tree_view_column_new_with_attributes(
|
||||
"Mapping", renderer, "text", 1, NULL);
|
||||
"Mapping", renderer, "text", 1, nullptr);
|
||||
gtk_tree_view_column_set_expand(columns[1], TRUE);
|
||||
|
||||
gtk_tree_view_append_column(GTK_TREE_VIEW (treeview), columns[0]);
|
||||
|
|
|
@ -40,7 +40,7 @@ void gtkui_file_open() {
|
|||
GTK_FILE_CHOOSER_ACTION_OPEN,
|
||||
"Cancel", GTK_RESPONSE_CANCEL,
|
||||
"Open", GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
if(conf.misc_last_folder != NULL)
|
||||
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), conf.misc_last_folder);
|
||||
|
@ -91,7 +91,7 @@ void gtkui_state_save() {
|
|||
GTK_FILE_CHOOSER_ACTION_SAVE,
|
||||
"Cancel", GTK_RESPONSE_CANCEL,
|
||||
"Save", GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
char statepath[512];
|
||||
snprintf(statepath, sizeof(statepath), "%s.nst", nstpaths.statepath);
|
||||
|
@ -114,7 +114,7 @@ void gtkui_state_load() {
|
|||
GTK_FILE_CHOOSER_ACTION_OPEN,
|
||||
"Cancel", GTK_RESPONSE_CANCEL,
|
||||
"Open", GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
GtkFileFilter *filter = gtk_file_filter_new();
|
||||
gtk_file_filter_set_name(filter, "Nestopia Save States");
|
||||
|
@ -138,7 +138,7 @@ void gtkui_screenshot_save() {
|
|||
GTK_FILE_CHOOSER_ACTION_SAVE,
|
||||
"Cancel", GTK_RESPONSE_CANCEL,
|
||||
"Save", GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
char sshotpath[512];
|
||||
char sshotfile[768];
|
||||
|
@ -163,7 +163,7 @@ void gtkui_movie_save() {
|
|||
GTK_FILE_CHOOSER_ACTION_SAVE,
|
||||
"Cancel", GTK_RESPONSE_CANCEL,
|
||||
"Save", GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
char moviepath[512];
|
||||
snprintf(moviepath, sizeof(moviepath), "%s%s.nsv", nstpaths.nstdir, nstpaths.gamename);
|
||||
|
@ -186,7 +186,7 @@ void gtkui_movie_load() {
|
|||
GTK_FILE_CHOOSER_ACTION_OPEN,
|
||||
"Cancel", GTK_RESPONSE_CANCEL,
|
||||
"Open", GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
GtkFileFilter *filter = gtk_file_filter_new();
|
||||
gtk_file_filter_set_name(filter, "Nestopia movies");
|
||||
|
@ -214,7 +214,7 @@ void gtkui_cheats_load() {
|
|||
GTK_FILE_CHOOSER_ACTION_OPEN,
|
||||
"Cancel", GTK_RESPONSE_CANCEL,
|
||||
"Open", GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
GtkFileFilter *filter = gtk_file_filter_new();
|
||||
gtk_file_filter_set_name(filter, "Nestopia cheats");
|
||||
|
@ -238,7 +238,7 @@ void gtkui_palette_load() {
|
|||
GTK_FILE_CHOOSER_ACTION_OPEN,
|
||||
"Cancel", GTK_RESPONSE_CANCEL,
|
||||
"Open", GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
GtkFileFilter *filter = gtk_file_filter_new();
|
||||
gtk_file_filter_set_name(filter, "NES Palettes");
|
||||
|
|
Loading…
Reference in a new issue