diff dwt/internal/gtk/OS.d @ 78:3acb1029ed5c

DirectoryDialog
author Frank Benoit <benoit@tionex.de>
date Tue, 15 Jan 2008 16:35:35 +0100
parents d014d6f9eeab
children eb0144eddf0f
line wrap: on
line diff
--- a/dwt/internal/gtk/OS.d	Tue Jan 15 15:59:30 2008 +0100
+++ b/dwt/internal/gtk/OS.d	Tue Jan 15 16:35:35 2008 +0100
@@ -547,7 +547,9 @@
 private void gtk_cell_layout_set_attributes1( void *cell_layout, void* cell, void* key, void* value ){
     gtk_cell_layout_set_attributes( cast(GtkCellLayout *)cell_layout, cast(GtkCellRenderer*)cell, key, value, null );
 }
-
+GtkWidget * gtk_file_chooser_dialog_new2(char * title, aGtkWindow * parent, int action, char * btn0_text, int btn0_id, char * btn1_text, int btn1_id ){
+    return gtk_file_chooser_dialog_new( title, parent, action, btn0_text, btn0_id, btn1_text, btn1_id, null );
+}
 // for linux always true, the other possibility would be GDK_WINDOWING_WIN32
 private bool GDK_WINDOWING_X11(){
     return true;
@@ -1267,7 +1269,6 @@
     mixin ForwardGtkOsCFunc!(.g_utf8_pointer_to_offset);
     mixin ForwardGtkOsCFunc!(.g_utf8_strlen);
     mixin ForwardGtkOsCFunc!(.g_utf8_to_utf16);
-    mixin ForwardGtkOsCFunc!(.g_utf8_to_utf16);
     mixin ForwardGtkOsCFunc!(.gdk_atom_intern);
 //    mixin ForwardGtkOsCFunc!(.gdk_atom_name);
     mixin ForwardGtkOsCFunc!(.gdk_beep);
@@ -1544,7 +1545,7 @@
     mixin ForwardGtkOsCFunc!(.gtk_expander_set_label);
     mixin ForwardGtkOsCFunc!(.gtk_expander_set_label_widget);
     mixin ForwardGtkOsCFunc!(.gtk_file_chooser_add_filter);
-    mixin ForwardGtkOsCFunc!(.gtk_file_chooser_dialog_new);
+    mixin ForwardGtkOsCFunc!(.gtk_file_chooser_dialog_new2);
     mixin ForwardGtkOsCFunc!(.gtk_file_chooser_get_current_folder);
     mixin ForwardGtkOsCFunc!(.gtk_file_chooser_get_filename);
     mixin ForwardGtkOsCFunc!(.gtk_file_chooser_get_filenames);