MCPcopy Create free account
hub / github.com/NetHack/NetHack / ghack_save_game_cb

Function ghack_save_game_cb

outdated/win/gnome/gnmain.c:75–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void
76ghack_save_game_cb(GtkWidget *widget, gpointer data)
77{
78 GtkWidget *box;
79 box = gnome_message_box_new(
80 _("Quit and save the current game?"), GNOME_MESSAGE_BOX_QUESTION,
81 GNOME_STOCK_BUTTON_YES, GNOME_STOCK_BUTTON_NO, NULL);
82 gnome_dialog_set_default(GNOME_DIALOG(box), 1);
83 gnome_dialog_set_parent(GNOME_DIALOG(box),
84 GTK_WINDOW(ghack_get_main_window()));
85 gnome_dialog_set_accelerator(GNOME_DIALOG(box), 1, 'n', 0);
86 gnome_dialog_set_accelerator(GNOME_DIALOG(box), 0, 'y', 0);
87
88 gtk_window_set_modal(GTK_WINDOW(box), TRUE);
89 gtk_signal_connect(GTK_OBJECT(box), "clicked",
90 (GtkSignalFunc) ghack_save_game, NULL);
91 gtk_widget_show(box);
92}
93
94static void
95ghack_new_game(GtkWidget *widget, int button)

Callers 1

ghack_handle_key_pressFunction · 0.85

Calls 1

ghack_get_main_windowFunction · 0.85

Tested by

no test coverage detected