diff options
author | monsta <[email protected]> | 2018-01-04 19:20:07 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2018-01-06 14:51:37 +0300 |
commit | 609b4b21f61f1bc26cb8a53d9b739f03399ee3c2 (patch) | |
tree | eca2c631a0848aad951bc23bc3564728bb0e23ee /mate-panel/libmate-panel-applet-private/panel-applet-container.h | |
parent | e4e76688ca09448adaa152e0a757e4f0ee14cf52 (diff) | |
download | mate-panel-609b4b21f61f1bc26cb8a53d9b739f03399ee3c2.tar.bz2 mate-panel-609b4b21f61f1bc26cb8a53d9b739f03399ee3c2.tar.xz |
rework the process of cancelling the background change operation
don't mess with additional references to a GCancellable, instead
keep just a const pointer to the internal operation data and use
it as a key when it's needed to cancel the operation.
fixes https://github.com/mate-desktop/mate-panel/issues/214
fixes https://github.com/mate-desktop/mate-panel/issues/431
(squashed 180ba4ae21e8f5bc7d67f4902d0cda6ff053f4b2 + 7f711b89d0db04c12db2286b5d18892be45f26a5 for 1.18 branch)
Diffstat (limited to 'mate-panel/libmate-panel-applet-private/panel-applet-container.h')
-rw-r--r-- | mate-panel/libmate-panel-applet-private/panel-applet-container.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mate-panel/libmate-panel-applet-private/panel-applet-container.h b/mate-panel/libmate-panel-applet-private/panel-applet-container.h index 108a38c9..63f5f078 100644 --- a/mate-panel/libmate-panel-applet-private/panel-applet-container.h +++ b/mate-panel/libmate-panel-applet-private/panel-applet-container.h @@ -94,7 +94,7 @@ gboolean mate_panel_applet_container_child_popup_menu_finish (MatePanelAppletC GAsyncResult *result, GError **error); -void mate_panel_applet_container_child_set (MatePanelAppletContainer *container, +gconstpointer mate_panel_applet_container_child_set (MatePanelAppletContainer *container, const gchar *property_name, const GVariant *value, GCancellable *cancellable, @@ -103,7 +103,7 @@ void mate_panel_applet_container_child_set (MatePanelAppletC gboolean mate_panel_applet_container_child_set_finish (MatePanelAppletContainer *container, GAsyncResult *result, GError **error); -void mate_panel_applet_container_child_get (MatePanelAppletContainer *container, +gconstpointer mate_panel_applet_container_child_get (MatePanelAppletContainer *container, const gchar *property_name, GCancellable *cancellable, GAsyncReadyCallback callback, @@ -112,6 +112,9 @@ GVariant *mate_panel_applet_container_child_get_finish (MatePanelAppletC GAsyncResult *result, GError **error); +void mate_panel_applet_container_cancel_operation (MatePanelAppletContainer *container, + gconstpointer operation); + #ifdef __cplusplus } #endif |