diff options
author | Javier Jardón <jjardon@gnome.org> | 2009-10-26 22:51:41 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-10-27 00:21:51 +0100 |
commit | d0f2cd73b075a7490840b26ef06b83803d895c10 (patch) | |
tree | 912a9e92ac82a6e8708595666213858f2055e102 /gtk/gtkstatusicon.c | |
parent | 92a68f4cf94f7615b5f0b2d16ec3c20b3775202b (diff) | |
download | gtk+-d0f2cd73b075a7490840b26ef06b83803d895c10.tar.gz |
Use G_STRLOC instead __FILE__ and __LINE__
Diffstat (limited to 'gtk/gtkstatusicon.c')
-rw-r--r-- | gtk/gtkstatusicon.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk/gtkstatusicon.c b/gtk/gtkstatusicon.c index 74c52ae218..f400bff73c 100644 --- a/gtk/gtkstatusicon.c +++ b/gtk/gtkstatusicon.c @@ -702,7 +702,7 @@ wndproc (HWND hwnd, if (!Shell_NotifyIconW (NIM_ADD, &priv->nid)) { - g_warning ("%s:%d:Shell_NotifyIcon(NIM_ADD) failed", __FILE__, __LINE__-2); + g_warning (G_STRLOC ": Shell_NotifyIcon(NIM_ADD) failed"); priv->nid.hWnd = NULL; continue; } @@ -902,7 +902,7 @@ gtk_status_icon_init (GtkStatusIcon *status_icon) if (!Shell_NotifyIconW (NIM_ADD, &priv->nid)) { - g_warning ("%s:%d:Shell_NotifyIcon(NIM_ADD) failed", __FILE__, __LINE__-2); + g_warning (G_STRLOC ": Shell_NotifyIcon(NIM_ADD) failed"); priv->nid.hWnd = NULL; } @@ -1391,7 +1391,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon) priv->nid.uFlags |= NIF_ICON; if (priv->nid.hWnd != NULL && priv->visible) if (!Shell_NotifyIconW (NIM_MODIFY, &priv->nid)) - g_warning ("%s:%d:Shell_NotifyIcon(NIM_MODIFY) failed", __FILE__, __LINE__-1); + g_warning (G_STRLOC ": Shell_NotifyIcon(NIM_MODIFY) failed"); if (prev_hicon) DestroyIcon (prev_hicon); #endif @@ -1440,7 +1440,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon) priv->nid.uFlags |= NIF_ICON; if (priv->nid.hWnd != NULL && priv->visible) if (!Shell_NotifyIconW (NIM_MODIFY, &priv->nid)) - g_warning ("%s:%d:Shell_NotifyIcon(NIM_MODIFY) failed", __FILE__, __LINE__-1); + g_warning (G_STRLOC ": Shell_NotifyIcon(NIM_MODIFY) failed"); if (prev_hicon) DestroyIcon (prev_hicon); #endif @@ -1461,7 +1461,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon) priv->nid.uFlags &= ~NIF_ICON; if (priv->nid.hWnd != NULL && priv->visible) if (!Shell_NotifyIconW (NIM_MODIFY, &priv->nid)) - g_warning ("%s:%d:Shell_NotifyIcon(NIM_MODIFY) failed", __FILE__, __LINE__-1); + g_warning (G_STRLOC ": Shell_NotifyIcon(NIM_MODIFY) failed"); #endif #ifdef GDK_WINDOWING_QUARTZ [priv->status_item setImage:NULL]; @@ -1491,7 +1491,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon) priv->nid.uFlags |= NIF_ICON; if (priv->nid.hWnd != NULL && priv->visible) if (!Shell_NotifyIconW (NIM_MODIFY, &priv->nid)) - g_warning ("%s:%d:Shell_NotifyIcon(NIM_MODIFY) failed", __FILE__, __LINE__-1); + g_warning (G_STRLOC ": Shell_NotifyIcon(NIM_MODIFY) failed"); if (prev_hicon) DestroyIcon (prev_hicon); g_object_unref (pixbuf); @@ -1535,7 +1535,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon) priv->nid.uFlags |= NIF_ICON; if (priv->nid.hWnd != NULL && priv->visible) if (!Shell_NotifyIconW (NIM_MODIFY, &priv->nid)) - g_warning ("%s:%d:Shell_NotifyIcon(NIM_MODIFY) failed", __FILE__, __LINE__-1); + g_warning (G_STRLOC ": Shell_NotifyIcon(NIM_MODIFY) failed"); if (prev_hicon) DestroyIcon (prev_hicon); g_object_unref (pixbuf); @@ -1582,7 +1582,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon) priv->nid.uFlags |= NIF_ICON; if (priv->nid.hWnd != NULL && priv->visible) if (!Shell_NotifyIconW (NIM_MODIFY, &priv->nid)) - g_warning ("%s:%d:Shell_NotifyIcon(NIM_MODIFY) failed", __FILE__, __LINE__-1); + g_warning (G_STRLOC ": Shell_NotifyIcon(NIM_MODIFY) failed"); if (prev_hicon) DestroyIcon (prev_hicon); g_object_unref (pixbuf); @@ -1615,7 +1615,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon) priv->nid.uFlags &= ~NIF_ICON; if (priv->nid.hWnd != NULL && priv->visible) if (!Shell_NotifyIconW (NIM_MODIFY, &priv->nid)) - g_warning ("%s:%d:Shell_NotifyIcon(NIM_MODIFY) failed", __FILE__, __LINE__-1); + g_warning (G_STRLOC ": Shell_NotifyIcon(NIM_MODIFY) failed"); #endif #ifdef GDK_WINDOWING_QUARTZ { @@ -2737,7 +2737,7 @@ gtk_status_icon_set_tooltip_text (GtkStatusIcon *status_icon, } if (priv->nid.hWnd != NULL && priv->visible) if (!Shell_NotifyIconW (NIM_MODIFY, &priv->nid)) - g_warning ("%s:%d:Shell_NotifyIconW(NIM_MODIFY) failed", __FILE__, __LINE__-1); + g_warning (G_STRLOC ": Shell_NotifyIconW(NIM_MODIFY) failed"); g_free (priv->tooltip_text); priv->tooltip_text = g_strdup (text); |