[gtk+/gtk-3-14] Don't emit a useless warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] Don't emit a useless warning
- Date: Wed, 1 Oct 2014 17:18:50 +0000 (UTC)
commit 94592be5bc5a71e7d9899bc3d9c047a5ca751c50
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 1 13:17:14 2014 -0400
Don't emit a useless warning
The warning may have had some value at some point, but if
people uninstall large icons just to make the warning go
away, it does more harm than good. So just remove it.
gdk/x11/gdkwindow-x11.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 2f3d9d6..fa40f0d 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -3839,10 +3839,7 @@ gdk_x11_window_set_icon_list (GdkWindow *window,
/* silently ignore overlarge icons */
if (size + 2 + width * height > GDK_SELECTION_MAX_SIZE(display))
- {
- g_warning ("gdk_window_set_icon_list: icon too large (%dx%d)", width, height);
- break;
- }
+ break;
n++;
size += 2 + width * height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]