From 039d738e3b8914bc075265a4c6d52168674563cd Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sun, 21 Feb 1999 21:24:02 +0000 Subject: [PATCH] Changed warnings from g_message() to g_warning(). Sun Feb 21 16:16:22 1999 Owen Taylor * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c: Changed warnings from g_message() to g_warning(). * gdk/gdkim.c (gdk_ic_destroy): Changed g_print to g_message within GDK_NOTE() * gtk/gtkcolorsel.c gtk/gtkhandlebox.c: Removed some leftover debugging printfs. --- ChangeLog | 11 +++++++++++ ChangeLog.pre-2-0 | 11 +++++++++++ ChangeLog.pre-2-10 | 11 +++++++++++ ChangeLog.pre-2-2 | 11 +++++++++++ ChangeLog.pre-2-4 | 11 +++++++++++ ChangeLog.pre-2-6 | 11 +++++++++++ ChangeLog.pre-2-8 | 11 +++++++++++ gdk/gdkfont.c | 4 ++-- gdk/gdkim.c | 16 ++++++++-------- gdk/x11/gdkfont-x11.c | 4 ++-- gdk/x11/gdkim-x11.c | 16 ++++++++-------- gtk/gtkcolorsel.c | 4 ---- gtk/gtkhandlebox.c | 5 ----- gtk/gtkscrolledwindow.c | 2 +- 14 files changed, 98 insertions(+), 30 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d870f6b05..a975fda4bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +Sun Feb 21 16:16:22 1999 Owen Taylor + + * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c: + Changed warnings from g_message() to g_warning(). + + * gdk/gdkim.c (gdk_ic_destroy): Changed g_print + to g_message within GDK_NOTE() + + * gtk/gtkcolorsel.c gtk/gtkhandlebox.c: + Removed some leftover debugging printfs. + Sun Feb 21 15:59:55 1999 Owen Taylor * gdk/MwmUtil.h gdk/gdkwindow.c: Account for the diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 0d870f6b05..a975fda4bc 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,14 @@ +Sun Feb 21 16:16:22 1999 Owen Taylor + + * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c: + Changed warnings from g_message() to g_warning(). + + * gdk/gdkim.c (gdk_ic_destroy): Changed g_print + to g_message within GDK_NOTE() + + * gtk/gtkcolorsel.c gtk/gtkhandlebox.c: + Removed some leftover debugging printfs. + Sun Feb 21 15:59:55 1999 Owen Taylor * gdk/MwmUtil.h gdk/gdkwindow.c: Account for the diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 0d870f6b05..a975fda4bc 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,14 @@ +Sun Feb 21 16:16:22 1999 Owen Taylor + + * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c: + Changed warnings from g_message() to g_warning(). + + * gdk/gdkim.c (gdk_ic_destroy): Changed g_print + to g_message within GDK_NOTE() + + * gtk/gtkcolorsel.c gtk/gtkhandlebox.c: + Removed some leftover debugging printfs. + Sun Feb 21 15:59:55 1999 Owen Taylor * gdk/MwmUtil.h gdk/gdkwindow.c: Account for the diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 0d870f6b05..a975fda4bc 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,14 @@ +Sun Feb 21 16:16:22 1999 Owen Taylor + + * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c: + Changed warnings from g_message() to g_warning(). + + * gdk/gdkim.c (gdk_ic_destroy): Changed g_print + to g_message within GDK_NOTE() + + * gtk/gtkcolorsel.c gtk/gtkhandlebox.c: + Removed some leftover debugging printfs. + Sun Feb 21 15:59:55 1999 Owen Taylor * gdk/MwmUtil.h gdk/gdkwindow.c: Account for the diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 0d870f6b05..a975fda4bc 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,14 @@ +Sun Feb 21 16:16:22 1999 Owen Taylor + + * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c: + Changed warnings from g_message() to g_warning(). + + * gdk/gdkim.c (gdk_ic_destroy): Changed g_print + to g_message within GDK_NOTE() + + * gtk/gtkcolorsel.c gtk/gtkhandlebox.c: + Removed some leftover debugging printfs. + Sun Feb 21 15:59:55 1999 Owen Taylor * gdk/MwmUtil.h gdk/gdkwindow.c: Account for the diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 0d870f6b05..a975fda4bc 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,14 @@ +Sun Feb 21 16:16:22 1999 Owen Taylor + + * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c: + Changed warnings from g_message() to g_warning(). + + * gdk/gdkim.c (gdk_ic_destroy): Changed g_print + to g_message within GDK_NOTE() + + * gtk/gtkcolorsel.c gtk/gtkhandlebox.c: + Removed some leftover debugging printfs. + Sun Feb 21 15:59:55 1999 Owen Taylor * gdk/MwmUtil.h gdk/gdkwindow.c: Account for the diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 0d870f6b05..a975fda4bc 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,14 @@ +Sun Feb 21 16:16:22 1999 Owen Taylor + + * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c: + Changed warnings from g_message() to g_warning(). + + * gdk/gdkim.c (gdk_ic_destroy): Changed g_print + to g_message within GDK_NOTE() + + * gtk/gtkcolorsel.c gtk/gtkhandlebox.c: + Removed some leftover debugging printfs. + Sun Feb 21 15:59:55 1999 Owen Taylor * gdk/MwmUtil.h gdk/gdkwindow.c: Account for the diff --git a/gdk/gdkfont.c b/gdk/gdkfont.c index c2bd18744a..617a4d2490 100644 --- a/gdk/gdkfont.c +++ b/gdk/gdkfont.c @@ -72,9 +72,9 @@ gdk_fontset_load (gchar *fontset_name) if (missing_charset_count) { gint i; - g_message ("Missing charsets in FontSet creation\n"); + g_warning ("Missing charsets in FontSet creation\n"); for (i=0;ixic) { XSetICFocus (private->xic); - GDK_NOTE (XIM, g_print ("im_begin icfocus : %p(%ld)\n", - private->xic, - GDK_WINDOW_XWINDOW(private->attr->focus_window))); + GDK_NOTE (XIM, g_message ("im_begin icfocus : %p(%ld)\n", + private->xic, + GDK_WINDOW_XWINDOW(private->attr->focus_window))); } } gdk_xim_ic = private; @@ -212,7 +212,7 @@ gdk_im_end (void) if (gdk_xim_ic && gdk_xim_ic->xic) { XUnsetICFocus (gdk_xim_ic->xic); - GDK_NOTE (XIM, g_print ("im_end unfocus : %p\n", gdk_xim_ic->xic)); + GDK_NOTE (XIM, g_message ("im_end unfocus : %p\n", gdk_xim_ic->xic)); } gdk_xim_ic = NULL; gdk_xim_window = NULL; @@ -674,7 +674,7 @@ gdk_ic_destroy (GdkIC *ic) if (gdk_xim_ic == private) gdk_im_end (); - GDK_NOTE (XIM, g_print("ic_destroy %p\n", private->xic)); + GDK_NOTE (XIM, g_message ("ic_destroy %p\n", private->xic)); if (private->xic != NULL) XDestroyIC (private->xic); diff --git a/gdk/x11/gdkfont-x11.c b/gdk/x11/gdkfont-x11.c index c2bd18744a..617a4d2490 100644 --- a/gdk/x11/gdkfont-x11.c +++ b/gdk/x11/gdkfont-x11.c @@ -72,9 +72,9 @@ gdk_fontset_load (gchar *fontset_name) if (missing_charset_count) { gint i; - g_message ("Missing charsets in FontSet creation\n"); + g_warning ("Missing charsets in FontSet creation\n"); for (i=0;ixic) { XSetICFocus (private->xic); - GDK_NOTE (XIM, g_print ("im_begin icfocus : %p(%ld)\n", - private->xic, - GDK_WINDOW_XWINDOW(private->attr->focus_window))); + GDK_NOTE (XIM, g_message ("im_begin icfocus : %p(%ld)\n", + private->xic, + GDK_WINDOW_XWINDOW(private->attr->focus_window))); } } gdk_xim_ic = private; @@ -212,7 +212,7 @@ gdk_im_end (void) if (gdk_xim_ic && gdk_xim_ic->xic) { XUnsetICFocus (gdk_xim_ic->xic); - GDK_NOTE (XIM, g_print ("im_end unfocus : %p\n", gdk_xim_ic->xic)); + GDK_NOTE (XIM, g_message ("im_end unfocus : %p\n", gdk_xim_ic->xic)); } gdk_xim_ic = NULL; gdk_xim_window = NULL; @@ -674,7 +674,7 @@ gdk_ic_destroy (GdkIC *ic) if (gdk_xim_ic == private) gdk_im_end (); - GDK_NOTE (XIM, g_print("ic_destroy %p\n", private->xic)); + GDK_NOTE (XIM, g_message ("ic_destroy %p\n", private->xic)); if (private->xic != NULL) XDestroyIC (private->xic); diff --git a/gtk/gtkcolorsel.c b/gtk/gtkcolorsel.c index 819ad8154e..dd97aaa336 100644 --- a/gtk/gtkcolorsel.c +++ b/gtk/gtkcolorsel.c @@ -958,10 +958,6 @@ gtk_color_selection_drag_handle (GtkWidget *widget, vals[2] = colors[2] * 0xffff; vals[3] = colorsel->use_opacity ? colors[3] * 0xffff : 0xffff; - g_print ("%x %x\n", vals[0], vals[3]); - g_print ("%g\n", colorsel->values[OPACITY]); - g_print ("%d\n", colorsel->use_opacity); - gtk_selection_data_set (selection_data, gdk_atom_intern ("application/x-color", FALSE), 16, (guchar *)vals, 8); diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c index 79c9f717aa..d62fbd71ea 100644 --- a/gtk/gtkhandlebox.c +++ b/gtk/gtkhandlebox.c @@ -954,8 +954,6 @@ gtk_handle_box_button_changed (GtkWidget *widget, hb->attach_allocation.width = width; hb->attach_allocation.height = height; - g_print ("%d %d\n", width, height); - hb->in_drag = TRUE; fleur = gdk_cursor_new (GDK_FLEUR); if (gdk_pointer_grab (widget->window, @@ -1076,9 +1074,6 @@ gtk_handle_box_motion (GtkWidget *widget, break; } - g_print ("(%d %d), (%d %d)\n", - float_pos1, float_pos2, attach_pos1, attach_pos2); - is_snapped = ((attach_pos1 - TOLERANCE < float_pos1) && (attach_pos2 + TOLERANCE > float_pos2)) || ((float_pos1 - TOLERANCE < attach_pos1) && diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 2651acc880..5e34ddf78d 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -892,7 +892,7 @@ gtk_scrolled_window_add (GtkContainer *container, if (!gtk_widget_set_scroll_adjustments (child, gtk_range_get_adjustment (GTK_RANGE (scrolled_window->hscrollbar)), gtk_range_get_adjustment (GTK_RANGE (scrolled_window->vscrollbar)))) - g_message ("gtk_scrolled_window_add(): cannot add non scrollable widget " + g_warning ("gtk_scrolled_window_add(): cannot add non scrollable widget " "use gtk_scrolled_window_add_with_viewport() instead"); if (GTK_WIDGET_VISIBLE (child->parent))