Skip to content

Commit

Permalink
Fix dialog titles not showing in GTK, -Wformat-security error
Browse files Browse the repository at this point in the history
  • Loading branch information
doZennn committed Oct 9, 2024
1 parent 29bfc2c commit d4e61b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui-helper-gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ int ShowMessageBox(const char* title, const char* message)
{
gtk_init(NULL, NULL);

//return SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, title, message, NULL);
GtkWidget* dialog = gtk_message_dialog_new (
GtkWidget* dialog = gtk_message_dialog_new(
NULL,
0,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
"%s",
message
);
gtk_window_set_title(GTK_WINDOW(dialog), "title");
gtk_window_set_title(GTK_WINDOW(dialog), title);

g_signal_connect_swapped (
dialog,
Expand Down

0 comments on commit d4e61b0

Please sign in to comment.