[retro-gtk] retro-gl-display: Drop queue_draw()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-gl-display: Drop queue_draw()
- Date: Sat, 29 Feb 2020 06:45:30 +0000 (UTC)
commit 702cbf6e7a04e0e370f76e8cadc70518c470d074
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Feb 22 20:54:23 2020 +0500
retro-gl-display: Drop queue_draw()
Use gtk_widget_queue_draw() with G_CONNECT_SWAPPED instead.
retro-gtk/retro-gl-display.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/retro-gtk/retro-gl-display.c b/retro-gtk/retro-gl-display.c
index 842d5a1..9a5cefe 100644
--- a/retro-gtk/retro-gl-display.c
+++ b/retro-gtk/retro-gl-display.c
@@ -324,14 +324,6 @@ retro_gl_display_class_init (RetroGLDisplayClass *klass)
gtk_widget_class_set_css_name (widget_class, "retrogldisplay");
}
-static void
-queue_draw (GObject *sender,
- GParamSpec *pspec,
- gpointer self)
-{
- gtk_widget_queue_draw (GTK_WIDGET (self));
-}
-
static void
retro_gl_display_init (RetroGLDisplay *self)
{
@@ -357,9 +349,9 @@ retro_gl_display_init (RetroGLDisplay *self)
g_signal_connect_object (G_OBJECT (self),
"notify::sensitive",
- (GCallback) queue_draw,
+ (GCallback) gtk_widget_queue_draw,
GTK_WIDGET (self),
- 0);
+ G_CONNECT_SWAPPED);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]