[gnome-builder] workbench: GtkFileChooserNative returns GTK_RESPONSE_ACCEPT



commit ee050da81b95a3d0550d327a22924eadc8d7d0d4
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 28 12:27:25 2016 -0700

    workbench: GtkFileChooserNative returns GTK_RESPONSE_ACCEPT
    
    We had the wrong response code here when moving to the native
    file chooser. Simply change to GTK_RESPONSE_ACCEPT.

 libide/workbench/ide-workbench-actions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/workbench/ide-workbench-actions.c b/libide/workbench/ide-workbench-actions.c
index c3f239b..e08834f 100644
--- a/libide/workbench/ide-workbench-actions.c
+++ b/libide/workbench/ide-workbench-actions.c
@@ -83,7 +83,7 @@ ide_workbench_actions_open_with_dialog (GSimpleAction *action,
    */
   ret = gtk_native_dialog_run (GTK_NATIVE_DIALOG (native));
 
-  if (ret == GTK_RESPONSE_OK)
+  if (ret == GTK_RESPONSE_ACCEPT)
     {
       g_autoptr(GFile) file = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]