diff --git a/moo.kdevelop b/moo.kdevelop
index 62addc81..4dfec4f3 100644
--- a/moo.kdevelop
+++ b/moo.kdevelop
@@ -24,7 +24,7 @@
.
false
-
+
C
@@ -36,15 +36,13 @@
debug
- ./medit
+ medit
executable
/
-
+
false
false
-
-
-
+
@@ -218,12 +216,8 @@
-
+
--g-fatal-warnings
-
-
-
-
true
false
true
@@ -324,7 +318,7 @@
-
+
set
m_,_
theValue
diff --git a/moo/mooedit/plugins/Makefile.incl b/moo/mooedit/plugins/Makefile.incl
index ca08612f..0b24b708 100644
--- a/moo/mooedit/plugins/Makefile.incl
+++ b/moo/mooedit/plugins/Makefile.incl
@@ -7,17 +7,22 @@ mooedit_plugins_srcdir = $(srcdir)/$(mooedit_plugins)
mooedit_plugins_built_sources = \
$(mooedit_plugins)/moofileselector-glade.h\
+ $(mooedit_plugins)/moofilechooser-glade.h \
$(mooedit_plugins)/moofind-glade.h
mooedit_plugins_extra_dist = \
$(mooedit_plugins)/moofileselector.glade \
+ $(mooedit_plugins)/moofilechooser.glade \
$(mooedit_plugins)/moofind.glade
$(mooedit_plugins)/moofileselector-glade.h: $(mooedit_plugins)/moofileselector.glade $(XML2H)
mkdir -p $(mooedit_plugins)
sh $(XML2H) MOO_FILE_SELECTOR_GLADE_XML $(mooedit_plugins_srcdir)/moofileselector.glade > \
$(mooedit_plugins)/moofileselector-glade.h
-
+$(mooedit_plugins)/moofilechooser-glade.h: $(mooedit_plugins)/moofilechooser.glade $(XML2H)
+ mkdir -p $(mooedit_plugins)
+ sh $(XML2H) MOO_FILE_CHOOSER_GLADE_XML $(mooedit_plugins_srcdir)/moofilechooser.glade > \
+ $(mooedit_plugins)/moofilechooser-glade.h
$(mooedit_plugins)/moofind-glade.h: $(mooedit_plugins)/moofind.glade $(XML2H)
mkdir -p $(mooedit_plugins)
sh $(XML2H) MOO_FIND_GLADE_XML $(mooedit_plugins_srcdir)/moofind.glade > \
@@ -33,6 +38,7 @@ mooedit_plugins_sources = \
if GTK_2_6
mooedit_plugins_sources += \
$(mooedit_plugins)/moofileselector-glade.h\
+ $(mooedit_plugins)/moofilechooser-glade.h \
$(mooedit_plugins)/fileselector.c
endif
diff --git a/moo/mooedit/plugins/fileselector.c b/moo/mooedit/plugins/fileselector.c
index f2fb64c9..b342859f 100644
--- a/moo/mooedit/plugins/fileselector.c
+++ b/moo/mooedit/plugins/fileselector.c
@@ -20,6 +20,7 @@
#include "mooutils/moofileview/moobookmarkmgr.h"
#include "mooedit/plugins/mooeditplugins.h"
#include "mooedit/plugins/moofileselector-glade.h"
+#include "mooedit/plugins/moofilechooser-glade.h"
#include "mooutils/moostock.h"
#include "mooutils/mooutils-fs.h"
#include "mooutils/mooutils-misc.h"
@@ -1066,6 +1067,34 @@ show_file_selector (MooEditWindow *window)
}
+// static void
+// show_file_chooser (MooEditWindow *window)
+// {
+// GtkWidget *dialog;
+// int response;
+//
+// dialog = g_object_get_data (G_OBJECT (window), "moo-file-chooser");
+//
+// if (!dialog)
+// {
+// MooGladeXML *xml;
+//
+// xml = moo_glade_xml_new_empty ();
+// moo_glade_xml_map_id (xml, "fielview", MOO_TYPE_FILE_SELECTOR);
+// moo_glade_xml_parse_memory (*xml, MOO_FILE_CHOOSER_GLADE_XML, -1, NULL);
+//
+// dialog = moo_glade_xml_get_widget (xml, "dialog");
+// g_return_val_if_fail (dialog != NULL, NULL);
+//
+// gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (window));
+// g_object_set_data_full (G_OBJECT (window), "moo-file-chooser",
+// dialog, gtk_widget_destroy);
+// }
+//
+// response = gtk_dialog_run ();
+// }
+
+
static gboolean
file_selector_plugin_init (Plugin *plugin)
{
diff --git a/moo/mooedit/plugins/moofilechooser.glade b/moo/mooedit/plugins/moofilechooser.glade
new file mode 100644
index 00000000..f0ee942a
--- /dev/null
+++ b/moo/mooedit/plugins/moofilechooser.glade
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+ Open
+ GTK_WINDOW_TOPLEVEL
+ GTK_WIN_POS_CENTER_ON_PARENT
+ True
+ True
+ False
+ True
+ False
+ False
+ GDK_WINDOW_TYPE_HINT_DIALOG
+ GDK_GRAVITY_NORTH_WEST
+ True
+ False
+
+
+
+ True
+ False
+ 0
+
+
+
+ True
+ GTK_BUTTONBOX_END
+
+
+
+ True
+ True
+ True
+ gtk-cancel
+ True
+ GTK_RELIEF_NORMAL
+ False
+ -6
+
+
+
+
+
+ True
+ True
+ True
+ gtk-open
+ True
+ GTK_RELIEF_NORMAL
+ False
+ -5
+
+
+
+
+ 0
+ False
+ True
+ GTK_PACK_END
+
+
+
+
+
+ True
+
+
+ 0
+ True
+ True
+
+
+
+
+
+
+
diff --git a/moo/moopython/pygtk/mooeditor.defs b/moo/moopython/pygtk/mooeditor.defs
index 1e788c84..a583fc72 100644
--- a/moo/moopython/pygtk/mooeditor.defs
+++ b/moo/moopython/pygtk/mooeditor.defs
@@ -1,3 +1,6 @@
+;; -*- Mode: scheme; strip on; -*-
+;; hand-edited
+
(define-function editor_instance
(c-name "moo_editor_instance")
(return-type "MooEditor*")