[gimp] Use GimpTreeHandler to connect to all vectors in the image
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Use GimpTreeHandler to connect to all vectors in the image
- Date: Tue, 4 Aug 2009 20:07:05 +0000 (UTC)
commit 6425f5404de16a430d4fb525181334028a7db59d
Author: Michael Natterer <mitch gimp org>
Date: Tue Aug 4 22:06:28 2009 +0200
Use GimpTreeHandler to connect to all vectors in the image
app/display/gimpdisplayshell-handlers.c | 27 ++++++++++++---------------
app/display/gimpdisplayshell.h | 6 +++---
2 files changed, 15 insertions(+), 18 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-handlers.c b/app/display/gimpdisplayshell-handlers.c
index 96ce657..f7a043e 100644
--- a/app/display/gimpdisplayshell-handlers.c
+++ b/app/display/gimpdisplayshell-handlers.c
@@ -178,17 +178,17 @@ gimp_display_shell_connect (GimpDisplayShell *shell)
shell);
shell->vectors_freeze_handler =
- gimp_container_add_handler (image->vectors, "freeze",
- G_CALLBACK (gimp_display_shell_vectors_freeze_handler),
- shell);
+ gimp_tree_handler_connect (image->vectors, "freeze",
+ G_CALLBACK (gimp_display_shell_vectors_freeze_handler),
+ shell);
shell->vectors_thaw_handler =
- gimp_container_add_handler (image->vectors, "thaw",
- G_CALLBACK (gimp_display_shell_vectors_thaw_handler),
- shell);
+ gimp_tree_handler_connect (image->vectors, "thaw",
+ G_CALLBACK (gimp_display_shell_vectors_thaw_handler),
+ shell);
shell->vectors_visible_handler =
- gimp_container_add_handler (image->vectors, "visibility-changed",
- G_CALLBACK (gimp_display_shell_vectors_visible_handler),
- shell);
+ gimp_tree_handler_connect (image->vectors, "visibility-changed",
+ G_CALLBACK (gimp_display_shell_vectors_visible_handler),
+ shell);
g_signal_connect (image->vectors, "add",
G_CALLBACK (gimp_display_shell_vectors_add_handler),
@@ -319,12 +319,9 @@ gimp_display_shell_disconnect (GimpDisplayShell *shell)
gimp_display_shell_vectors_add_handler,
shell);
- gimp_container_remove_handler (image->vectors,
- shell->vectors_visible_handler);
- gimp_container_remove_handler (image->vectors,
- shell->vectors_thaw_handler);
- gimp_container_remove_handler (image->vectors,
- shell->vectors_freeze_handler);
+ gimp_tree_handler_disconnect (shell->vectors_visible_handler);
+ gimp_tree_handler_disconnect (shell->vectors_thaw_handler);
+ gimp_tree_handler_disconnect (shell->vectors_freeze_handler);
g_signal_handlers_disconnect_by_func (image,
gimp_display_shell_profile_changed_handler,
diff --git a/app/display/gimpdisplayshell.h b/app/display/gimpdisplayshell.h
index d62819d..47788ff 100644
--- a/app/display/gimpdisplayshell.h
+++ b/app/display/gimpdisplayshell.h
@@ -180,9 +180,9 @@ struct _GimpDisplayShell
gint paused_count;
- GQuark vectors_freeze_handler;
- GQuark vectors_thaw_handler;
- GQuark vectors_visible_handler;
+ GimpTreeHandler *vectors_freeze_handler;
+ GimpTreeHandler *vectors_thaw_handler;
+ GimpTreeHandler *vectors_visible_handler;
GdkWindowState window_state; /* for fullscreen display */
gboolean zoom_on_resize;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]