[gnome-applets] geyes: avoid a critical warning
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] geyes: avoid a critical warning
- Date: Sun, 8 Oct 2017 14:31:07 +0000 (UTC)
commit fa26cfa358d611de03112390a5a21766d928cf90
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Oct 8 17:24:13 2017 +0300
geyes: avoid a critical warning
Gtk-CRITICAL **: gtk_widget_realize: assertion
'widget->priv->anchored || GTK_IS_INVISIBLE (widget)' failed
geyes/src/geyes.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/geyes/src/geyes.c b/geyes/src/geyes.c
index d5b0758..f0149c5 100644
--- a/geyes/src/geyes.c
+++ b/geyes/src/geyes.c
@@ -239,9 +239,7 @@ setup_eyes (EyesApplet *eyes_applet)
gtk_widget_set_halign (eyes_applet->eyes[i], GTK_ALIGN_CENTER);
gtk_widget_set_valign (eyes_applet->eyes[i], GTK_ALIGN_CENTER);
}
-
- gtk_widget_realize (eyes_applet->eyes[i]);
-
+
eyes_applet->pointer_last_x[i] = G_MAXINT;
eyes_applet->pointer_last_y[i] = G_MAXINT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]