summaryrefslogtreecommitdiff
path: root/capplets/mime-type/edit-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/mime-type/edit-window.c')
-rw-r--r--capplets/mime-type/edit-window.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/capplets/mime-type/edit-window.c b/capplets/mime-type/edit-window.c
new file mode 100644
index 000000000..1a26bba6b
--- /dev/null
+++ b/capplets/mime-type/edit-window.c
@@ -0,0 +1,23 @@
+#include "edit-window.h"
+typedef struct {
+ GtkWidget *window;
+} edit_window;
+static edit_window *main_win = NULL;
+
+static void
+initialize_main_win ()
+{
+ main_win = g_new (edit_window, 1);
+ main_win->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+
+}
+
+
+void
+launch_edit_window (MimeInfo *mi)
+{
+ if (main_win == NULL)
+ initialize_main_win ();
+ gtk_widget_show_all (main_win->window);
+}
+