[mutter] screen-cast-window-src: Rename painted callback to after_paint
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] screen-cast-window-src: Rename painted callback to after_paint
- Date: Tue, 26 Feb 2019 13:52:08 +0000 (UTC)
commit 14c6a347c13fac6860a6bab946e6ba2debf6af00
Author: Jonas Ådahl <jadahl gmail com>
Date: Wed Jan 23 18:20:42 2019 +0100
screen-cast-window-src: Rename painted callback to after_paint
We'll add a before_paint soon, so better have the names somewhat match.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/413
src/backends/meta-screen-cast-window-stream-src.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/backends/meta-screen-cast-window-stream-src.c
b/src/backends/meta-screen-cast-window-stream-src.c
index 32df9f127..3bb18c10b 100644
--- a/src/backends/meta-screen-cast-window-stream-src.c
+++ b/src/backends/meta-screen-cast-window-stream-src.c
@@ -33,7 +33,7 @@ struct _MetaScreenCastWindowStreamSrc
MetaWindowActor *window_actor;
- unsigned long actor_painted_handler_id;
+ unsigned long actor_after_paint_handler_id;
unsigned long actor_destroyed_handler_id;
};
@@ -144,10 +144,10 @@ meta_screen_cast_window_stream_src_stop (MetaScreenCastWindowStreamSrc *window_s
if (!window_src->window_actor)
return;
- if (window_src->actor_painted_handler_id)
+ if (window_src->actor_after_paint_handler_id)
g_signal_handler_disconnect (window_src->window_actor,
- window_src->actor_painted_handler_id);
- window_src->actor_painted_handler_id = 0;
+ window_src->actor_after_paint_handler_id);
+ window_src->actor_after_paint_handler_id = 0;
if (window_src->actor_destroyed_handler_id)
g_signal_handler_disconnect (window_src->window_actor,
@@ -156,8 +156,8 @@ meta_screen_cast_window_stream_src_stop (MetaScreenCastWindowStreamSrc *window_s
}
static void
-window_actor_painted (MetaWindowActor *actor,
- MetaScreenCastWindowStreamSrc *window_src)
+window_actor_after_paint (MetaWindowActor *actor,
+ MetaScreenCastWindowStreamSrc *window_src)
{
MetaScreenCastStreamSrc *src = META_SCREEN_CAST_STREAM_SRC (window_src);
@@ -185,10 +185,10 @@ meta_screen_cast_window_stream_src_enable (MetaScreenCastStreamSrc *src)
window_src->window_actor = window_actor;
- window_src->actor_painted_handler_id =
+ window_src->actor_after_paint_handler_id =
g_signal_connect_after (window_src->window_actor,
"paint",
- G_CALLBACK (window_actor_painted),
+ G_CALLBACK (window_actor_after_paint),
window_src);
window_src->actor_destroyed_handler_id =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]