[gnome-builder] GbDocument: pass toplevel widget for dialogs
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] GbDocument: pass toplevel widget for dialogs
- Date: Thu, 11 Dec 2014 00:15:14 +0000 (UTC)
commit 3c93644fa83e9c8db933942622fd7aca0ab1b0df
Author: Christian Hergert <christian hergert me>
Date: Wed Dec 10 02:39:01 2014 -0800
GbDocument: pass toplevel widget for dialogs
src/documents/gb-document.c | 5 +++--
src/documents/gb-document.h | 6 ++++--
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/documents/gb-document.c b/src/documents/gb-document.c
index 981d2d9..7d3b42b 100644
--- a/src/documents/gb-document.c
+++ b/src/documents/gb-document.c
@@ -80,12 +80,13 @@ gb_document_save (GbDocument *document)
}
void
-gb_document_save_as (GbDocument *document)
+gb_document_save_as (GbDocument *document,
+ GtkWidget *toplevel)
{
g_return_if_fail (GB_IS_DOCUMENT (document));
if (GB_DOCUMENT_GET_INTERFACE (document)->save_as)
- GB_DOCUMENT_GET_INTERFACE (document)->save_as (document);
+ GB_DOCUMENT_GET_INTERFACE (document)->save_as (document, toplevel);
}
static void
diff --git a/src/documents/gb-document.h b/src/documents/gb-document.h
index 4e3502a..c6974bc 100644
--- a/src/documents/gb-document.h
+++ b/src/documents/gb-document.h
@@ -39,7 +39,8 @@ struct _GbDocumentInterface
const gchar *(*get_title) (GbDocument *document);
GtkWidget *(*create_view) (GbDocument *document);
void (*save) (GbDocument *document);
- void (*save_as) (GbDocument *document);
+ void (*save_as) (GbDocument *document,
+ GtkWidget *toplevel);
};
GType gb_document_get_type (void) G_GNUC_CONST;
@@ -47,7 +48,8 @@ gboolean gb_document_get_modified (GbDocument *document);
const gchar *gb_document_get_title (GbDocument *document);
GtkWidget *gb_document_create_view (GbDocument *document);
void gb_document_save (GbDocument *document);
-void gb_document_save_as (GbDocument *document);
+void gb_document_save_as (GbDocument *document,
+ GtkWidget *toplevel);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]