[gtk+/open-with-dialog: 10/21] open-with: add gtk_open_with_dialog_get_mode()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/open-with-dialog: 10/21] open-with: add gtk_open_with_dialog_get_mode()
- Date: Wed, 17 Nov 2010 23:10:26 +0000 (UTC)
commit ba51e4878f572c1ba64baaeb75e443f126a61045
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Nov 16 19:23:15 2010 +0100
open-with: add gtk_open_with_dialog_get_mode()
gtk/gtkopenwithdialog.c | 19 ++++++++++++++++++-
gtk/gtkopenwithdialog.h | 2 ++
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkopenwithdialog.c b/gtk/gtkopenwithdialog.c
index b096fdf..065b189 100644
--- a/gtk/gtkopenwithdialog.c
+++ b/gtk/gtkopenwithdialog.c
@@ -1384,7 +1384,7 @@ gtk_open_with_dialog_set_show_other_applications (GtkOpenWithDialog *self,
}
gboolean
-gtk_open_with_get_show_other_applications (GtkOpenWithDialog *self)
+gtk_open_with_dialog_get_show_other_applications (GtkOpenWithDialog *self)
{
g_return_val_if_fail (GTK_IS_OPEN_WITH_DIALOG (self), FALSE);
@@ -1428,3 +1428,20 @@ gtk_open_with_dialog_get_show_set_as_default_button (GtkOpenWithDialog *self)
return self->priv->show_set_as_default_button;
}
+/**
+ * gtk_open_with_dialog_get_mode:
+ * @self: a #GtkOpenWithDialog
+ *
+ * Returns the current mode of the dialog
+ *
+ * Returns: the current mode of the dialog
+ *
+ * Since: 3.0
+ */
+GtkOpenWithDialogMode
+gtk_open_with_dialog_get_mode (GtkOpenWithDialog *self)
+{
+ g_return_val_if_fail (GTK_IS_OPEN_WITH_DIALOG (self), -1);
+
+ return self->priv->mode;
+}
diff --git a/gtk/gtkopenwithdialog.h b/gtk/gtkopenwithdialog.h
index 6b202c7..55c74fa 100644
--- a/gtk/gtkopenwithdialog.h
+++ b/gtk/gtkopenwithdialog.h
@@ -86,4 +86,6 @@ gboolean gtk_open_with_get_show_set_as_default_button (GtkOpenWithDialog *self);
GAppInfo * gtk_open_with_dialog_get_selected_application (GtkOpenWithDialog *self);
+GtkOpenWithDialogMode gtk_open_with_dialog_get_mode (GtkOpenWithDialog *self);
+
#endif /* __GTK_OPEN_WITH_DIALOG_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]