Skip to content

Commit b0e94be

Browse files
committed
Switch to GtkButtonsType
1 parent ca1eed6 commit b0e94be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

v2/internal/frontend/desktop/linux/window_webkit6.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -739,28 +739,28 @@ void messageResult(GtkDialog* dialog, gint response_id, gpointer user_data) {
739739

740740
void MessageDialog(void *data)
741741
{
742-
GtkDialogFlags flags;
742+
GtkButtonsType buttons;
743743
GtkMessageType messageType;
744744
MessageDialogOptions *options = (MessageDialogOptions *)data;
745745
if (options->messageType == 0)
746746
{
747747
messageType = GTK_MESSAGE_INFO;
748-
flags = GTK_BUTTONS_OK;
748+
buttons = GTK_BUTTONS_OK;
749749
}
750750
else if (options->messageType == 1)
751751
{
752752
messageType = GTK_MESSAGE_ERROR;
753-
flags = GTK_BUTTONS_OK;
753+
buttons = GTK_BUTTONS_OK;
754754
}
755755
else if (options->messageType == 2)
756756
{
757757
messageType = GTK_MESSAGE_QUESTION;
758-
flags = GTK_BUTTONS_YES_NO;
758+
buttons = GTK_BUTTONS_YES_NO;
759759
}
760760
else
761761
{
762762
messageType = GTK_MESSAGE_WARNING;
763-
flags = GTK_BUTTONS_OK;
763+
buttons = GTK_BUTTONS_OK;
764764
}
765765

766766
// TODO: gtk_message_dialog_new is deprecated since 4.10
@@ -771,7 +771,7 @@ void MessageDialog(void *data)
771771
dialog = gtk_message_dialog_new(GTK_WINDOW(options->window),
772772
GTK_DIALOG_DESTROY_WITH_PARENT,
773773
messageType,
774-
flags,
774+
buttons,
775775
options->message, NULL);
776776

777777
g_object_ref_sink(dialog);

0 commit comments

Comments
 (0)