Skip to content

Conversation

justjosias
Copy link
Contributor

Resolves #308.

This is almost complete, except it behaves poorly when dealing with multiple files open at the same time.

@justjosias
Copy link
Contributor Author

Note that it gives this compile error (but it runs just fine):

../src/marker-window.c: In function ‘show_unsaved_documents_warning’:
../src/marker-window.c:135:26: warning: passing argument 1 of ‘gtk_dialog_add_buttons’ from incompatible pointer type [-Wincompatible-pointer-types]
   gtk_dialog_add_buttons(dialog,
                          ^~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from ../src/marker.h:25,
                 from ../src/marker-window.c:22:
/usr/include/gtk-3.0/gtk/gtkdialog.h:164:55: note: expected ‘GtkDialog *’ {aka ‘struct _GtkDialog *’} but argument is of type ‘GtkWidget
’ {aka ‘struct _GtkWidget *’}
 void       gtk_dialog_add_buttons       (GtkDialog   *dialog,
                                          ~~~~~~~~~~~~~^~~~~~

@justjosias
Copy link
Contributor Author

I am currently working on a save-all function to fix the remaining issues.

@justjosias justjosias closed this Aug 12, 2020
}

gtk_dialog_add_buttons(dialog,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Close without Saving" option
2 participants