mirror of https://github.com/GNOME/gimp.git
Use GimpTreeHandler to connect to all vectors in the image
This commit is contained in:
parent
2d5792d1da
commit
6425f5404d
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue