Skip to content

Commit

Permalink
fix gtk3 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Karasik committed Oct 11, 2017
1 parent 95089d8 commit 39605ab
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions unix/gtk.c
Expand Up @@ -299,8 +299,18 @@ gtk_openfile( Bool open)
( open ? "Open File" : "Save File"),
NULL,
open ? GTK_FILE_CHOOSER_ACTION_OPEN : GTK_FILE_CHOOSER_ACTION_SAVE,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
#if GTK_MAJOR_VERSION == 3
"_Cancel",
#else
GTK_STOCK_CANCEL,
#endif
GTK_RESPONSE_CANCEL,
#if GTK_MAJOR_VERSION == 3
"_Open",
#else
GTK_STOCK_OPEN,
#endif
GTK_RESPONSE_ACCEPT,
NULL);
#ifdef WITH_GTK_NONX11
gtk_window_set_position( GTK_WINDOW(gtk_dialog), GTK_WIN_POS_CENTER);
Expand Down

0 comments on commit 39605ab

Please sign in to comment.