--- garglk/sysgtk.c	2010-09-01 13:57:36.183209837 +0400
+++ garglk/sysgtk.c.maemo	2010-09-01 13:58:01.891209254 +0400
@@ -34,6 +34,8 @@
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
+#include <hildon/hildon-file-chooser-dialog.h>
+
 static GtkWidget *frame;
 static GtkWidget *canvas;
 static GtkWidget *filedlog;
@@ -94,10 +96,8 @@
 
 void winchoosefile(char *prompt, char *buf, int len, char *filter, GtkFileChooserAction action)
 {
-    filedlog = gtk_file_chooser_dialog_new(prompt, NULL, action,
-                                    GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                                    GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
-                                    NULL);
+    filedlog = hildon_file_chooser_dialog_new(NULL, action);
+    
     if (strlen(buf))
         gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(filedlog), buf);
     
@@ -111,13 +111,11 @@
     
     gint result = gtk_dialog_run(GTK_DIALOG(filedlog));
     
-    if (result == GTK_RESPONSE_ACCEPT) {
+    if (result == GTK_RESPONSE_OK) {
         strcpy(filename, gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(filedlog)));
         strcpy(filepath, gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(filedlog)));
         fileselect = TRUE;
-    }
-    
-    if (result == GTK_RESPONSE_CANCEL) {
+    } else {
         strcpy(filename, "");
     }
     
