[gimp] Add gimp_display_shell_get_window() which returns an image window or NULL
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Add gimp_display_shell_get_window() which returns an image window or NULL
- Date: Tue, 29 Sep 2009 18:41:27 +0000 (UTC)
commit 97987aff6e8914f708838e2ebf5b7322fab78f85
Author: Michael Natterer <mitch gimp org>
Date: Mon Sep 28 23:53:05 2009 +0200
Add gimp_display_shell_get_window() which returns an image window or NULL
app/display/gimpdisplayshell.c | 9 +++++++++
app/display/gimpdisplayshell.h | 2 ++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index 208efb7..128cb8e 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -1162,6 +1162,15 @@ gimp_display_shell_new (GimpDisplay *display,
return GTK_WIDGET (shell);
}
+GimpImageWindow *
+gimp_display_shell_get_window (GimpDisplayShell *shell)
+{
+ g_return_val_if_fail (GIMP_IS_DISPLAY_SHELL (shell), NULL);
+
+ return GIMP_IMAGE_WINDOW (gtk_widget_get_ancestor (GTK_WIDGET (shell),
+ GIMP_TYPE_IMAGE_WINDOW));
+}
+
void
gimp_display_shell_reconnect (GimpDisplayShell *shell)
{
diff --git a/app/display/gimpdisplayshell.h b/app/display/gimpdisplayshell.h
index 70c0c35..e183d2b 100644
--- a/app/display/gimpdisplayshell.h
+++ b/app/display/gimpdisplayshell.h
@@ -232,6 +232,8 @@ GtkWidget * gimp_display_shell_new (GimpDisplay *display,
GimpUIManager *popup_manager,
GimpDialogFactory *display_factory);
+GimpImageWindow * gimp_display_shell_get_window (GimpDisplayShell *shell);
+
void gimp_display_shell_reconnect (GimpDisplayShell *shell);
void gimp_display_shell_empty (GimpDisplayShell *shell);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]