Use GimpTreeHandler to connect to all vectors in the image
This commit is contained in:
@ -178,15 +178,15 @@ gimp_display_shell_connect (GimpDisplayShell *shell)
|
||||
shell);
|
||||
|
||||
shell->vectors_freeze_handler =
|
||||
gimp_container_add_handler (image->vectors, "freeze",
|
||||
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",
|
||||
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",
|
||||
gimp_tree_handler_connect (image->vectors, "visibility-changed",
|
||||
G_CALLBACK (gimp_display_shell_vectors_visible_handler),
|
||||
shell);
|
||||
|
||||
@ -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,
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user