summaryrefslogtreecommitdiff
path: root/gtk/gtkmountoperation.h
diff options
context:
space:
mode:
authorChristian Kellner <gicmo@gnome.org>2008-03-17 17:29:55 +0000
committerChristian Kellner <gicmo@src.gnome.org>2008-03-17 17:29:55 +0000
commite1092e9a60c6ff1faa8cf0e89f3d39ee334e17cd (patch)
tree304b8cda58a9dc2f8ea653cbef711d4370b5aa60 /gtk/gtkmountoperation.h
parent519ba608ee8d8f954e2421254b6c7272750e2d6e (diff)
downloadgtk+-e1092e9a60c6ff1faa8cf0e89f3d39ee334e17cd.tar.gz
Implement GtkMountOperation, a subclass of GMountOperation to be used with
2008-03-17 Christian Kellner <gicmo@gnome.org> Implement GtkMountOperation, a subclass of GMountOperation to be used with gio wherever there is the need to ask the user for credentials or questions while mounting a volume. This is bug #522245 * gtk/gtkmountoperation.c: * gtk/gtkmountoperation.h: Implement GtkMountOperation. * gtk/gtk.h: Add gtkmountoperation.h * gtk/Makefile.am: Add gtkmountoperation.[hc] * gtk/gtk.symbols: Add symbols of GtkMountOperation. * tests/testmountoperation.c: Test program for it. * tests/Makefile.am: Add testmountoperation. svn path=/trunk/; revision=19894
Diffstat (limited to 'gtk/gtkmountoperation.h')
-rw-r--r--gtk/gtkmountoperation.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/gtk/gtkmountoperation.h b/gtk/gtkmountoperation.h
new file mode 100644
index 0000000000..3fe99c5ef0
--- /dev/null
+++ b/gtk/gtkmountoperation.h
@@ -0,0 +1,80 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) Christian Kellner <gicmo@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+/*
+ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
+ * file for a list of people on the GTK+ Team. See the ChangeLog
+ * files for a list of changes. These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#ifndef __GTK_MOUNT_OPERATION_H__
+#define __GTK_MOUNT_OPERATION_H__
+
+#include <glib.h>
+#include <gio/gio.h>
+#include <gdk/gdkscreen.h>
+#include <gtk/gtkwindow.h>
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_MOUNT_OPERATION (gtk_mount_operation_get_type ())
+#define GTK_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_MOUNT_OPERATION, GtkMountOperation))
+#define GTK_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTK_TYPE_MOUNT_OPERATION, GtkMountOperationClass))
+#define GTK_IS_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_MOUNT_OPERATION))
+#define GTK_IS_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_MOUNT_OPERATION))
+#define GTK_MOUNT_OPERATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_MOUNT_OPERATION, GtkMountOperationClass))
+
+typedef struct GtkMountOperation GtkMountOperation;
+typedef struct GtkMountOperationClass GtkMountOperationClass;
+typedef struct GtkMountOperationPrivate GtkMountOperationPrivate;
+
+struct GtkMountOperation
+{
+ GMountOperation parent_instance;
+
+ GtkMountOperationPrivate *priv;
+};
+
+struct GtkMountOperationClass
+{
+ GMountOperationClass parent_class;
+
+ /* Padding for future expansion */
+ void (*_gtk_reserved1) (void);
+ void (*_gtk_reserved2) (void);
+ void (*_gtk_reserved3) (void);
+ void (*_gtk_reserved4) (void);
+};
+
+
+GType gtk_mount_operation_get_type (void);
+GMountOperation *gtk_mount_operation_new (GtkWindow *parent);
+gboolean gtk_mount_operation_is_showing (GtkMountOperation *op);
+void gtk_mount_operation_set_parent (GtkMountOperation *op,
+ GtkWindow *parent);
+GtkWindow * gtk_mount_operation_get_parent (GtkMountOperation *op);
+void gtk_mount_operation_set_screen (GtkMountOperation *op,
+ GdkScreen *screen);
+GdkScreen *gtk_mount_operation_get_screen (GtkMountOperation *op);
+
+G_END_DECLS
+
+#endif /* __GTK_MOUNT_OPERATION_H__ */
+