ryanackley avatar ryanackley committed bdc0a48

No functional changes, I was experimenting with the modal dialog

Comments (0)

Files changed (1)

X11/DialogManagerX11.cpp

 				      NULL,
 				      forFile ? GTK_FILE_CHOOSER_ACTION_OPEN : GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
 				      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-				      GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+				      GTK_STOCK_OPEN, GTK_RESPONSE_OK,
 				      NULL);
+
+
     gtk_widget_realize(dialog);
     GdkWindow* gdk_window = gtk_widget_get_window(dialog);
     Window w = getActiveWindow();
+
     if (w != None)
     {
 		XSetTransientForHint(GDK_WINDOW_XDISPLAY(gdk_window),
 							   GDK_WINDOW_XID(gdk_window),
 							   w);
     }
-    if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
+    if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK)
     {
         char *filename;
         filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.