|
|
74ac90 |
diff --git a/src/gtkutil.c b/src/gtkutil.c
|
|
|
74ac90 |
index 44f828c..d434a48 100644
|
|
|
74ac90 |
--- a/src/gtkutil.c
|
|
|
74ac90 |
+++ b/src/gtkutil.c
|
|
|
74ac90 |
@@ -784,6 +784,14 @@ xg_hide_tooltip (FRAME_PTR f)
|
|
|
74ac90 |
General functions for creating widgets, resizing, events, e.t.c.
|
|
|
74ac90 |
***********************************************************************/
|
|
|
74ac90 |
|
|
|
74ac90 |
+static void
|
|
|
74ac90 |
+my_log_handler (const gchar *log_domain, GLogLevelFlags log_level,
|
|
|
74ac90 |
+ const gchar *msg, gpointer user_data)
|
|
|
74ac90 |
+{
|
|
|
74ac90 |
+ if (!strstr (msg, "visible children"))
|
|
|
74ac90 |
+ fprintf (stderr, "XX %s-WARNING **: %s\n", log_domain, msg);
|
|
|
74ac90 |
+}
|
|
|
74ac90 |
+
|
|
|
74ac90 |
/* Make a geometry string and pass that to GTK. It seems this is the
|
|
|
74ac90 |
only way to get geometry position right if the user explicitly
|
|
|
74ac90 |
asked for a position when starting Emacs.
|
|
|
74ac90 |
@@ -799,6 +807,7 @@ xg_set_geometry (FRAME_PTR f)
|
|
|
74ac90 |
int top = f->top_pos;
|
|
|
74ac90 |
int yneg = f->size_hint_flags & YNegative;
|
|
|
74ac90 |
char geom_str[sizeof "=x--" + 4 * INT_STRLEN_BOUND (int)];
|
|
|
74ac90 |
+ guint id;
|
|
|
74ac90 |
|
|
|
74ac90 |
if (xneg)
|
|
|
74ac90 |
left = -left;
|
|
|
74ac90 |
@@ -811,9 +820,15 @@ xg_set_geometry (FRAME_PTR f)
|
|
|
74ac90 |
(xneg ? '-' : '+'), left,
|
|
|
74ac90 |
(yneg ? '-' : '+'), top);
|
|
|
74ac90 |
|
|
|
74ac90 |
+ /* Silence warning about visible children. */
|
|
|
74ac90 |
+ id = g_log_set_handler ("Gtk", G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL
|
|
|
74ac90 |
+ | G_LOG_FLAG_RECURSION, my_log_handler, NULL);
|
|
|
74ac90 |
+
|
|
|
74ac90 |
if (!gtk_window_parse_geometry (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
|
|
|
74ac90 |
geom_str))
|
|
|
74ac90 |
fprintf (stderr, "Failed to parse: '%s'\n", geom_str);
|
|
|
74ac90 |
+
|
|
|
74ac90 |
+ g_log_remove_handler ("Gtk", id);
|
|
|
74ac90 |
}
|
|
|
74ac90 |
}
|
|
|
74ac90 |
|