gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / desktop / mate / caja / patches / 12-timeslider-caja-window.patch
blob3e9738e86861078b596ab1b2eac6260fdf7b80dd
1 --- caja-1.28.0/src/caja-window.c.orig 2024-02-20 01:30:36.000000000 +0100
2 +++ caja-1.28.0/src/caja-window.c 2024-02-26 08:42:41.082802543 +0100
3 @@ -424,6 +424,18 @@
4 set_allow_up, (window, allow));
7 +void
8 +caja_window_allow_restore (CajaWindow *window, gboolean enable)
9 +{
10 + GtkAction *action;
12 + g_assert (CAJA_IS_WINDOW (window));
14 + action = gtk_action_group_get_action (window->details->main_action_group,
15 + CAJA_ACTION_RESTORE);
16 + gtk_action_set_sensitive (action, enable);
19 static void
20 update_cursor (CajaWindow *window)
22 @@ -431,7 +443,7 @@
24 slot = window->details->active_pane->active_slot;
26 - if (slot->allow_stop)
27 + if (slot && slot->allow_stop)
29 GdkDisplay *display;
30 GdkCursor * cursor;
31 @@ -468,7 +480,18 @@
32 if (slot == window->details->active_pane->active_slot)
34 G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
35 + if (!slot->allow_stop && slot->find_zfs_snapshots_cancellable != NULL)
36 + {
37 + /* if slot want to stop and snap find is finished/cancel then disable */
38 + if (g_cancellable_is_cancelled (slot->find_zfs_snapshots_cancellable))
39 + {
40 + gtk_action_set_sensitive (action, slot->allow_stop);
41 + }
42 + }
43 + else
44 + {
45 gtk_action_set_sensitive (action, slot->allow_stop);
46 + }
47 G_GNUC_END_IGNORE_DEPRECATIONS;