[gtk+] gtk/deprecated/gtkstatusicon.c: Fix Build on C89 Compilers
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/deprecated/gtkstatusicon.c: Fix Build on C89 Compilers
- Date: Fri, 24 Oct 2014 04:23:39 +0000 (UTC)
commit 1c099ec78489ac29a74cfcbdb953f7282652d72b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Oct 24 12:23:31 2014 +0800
gtk/deprecated/gtkstatusicon.c: Fix Build on C89 Compilers
Declare variable at the top of the block, which is needed from the change
in commit 1bad7865.
gtk/deprecated/gtkstatusicon.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/deprecated/gtkstatusicon.c b/gtk/deprecated/gtkstatusicon.c
index 1fdb9d1..2850679 100644
--- a/gtk/deprecated/gtkstatusicon.c
+++ b/gtk/deprecated/gtkstatusicon.c
@@ -2600,6 +2600,9 @@ gtk_status_icon_set_tooltip_markup (GtkStatusIcon *status_icon,
#ifdef GDK_WINDOWING_X11
GtkStatusIconPrivate *priv;
#endif
+#if defined (GDK_WINDOWING_WIN32) || defined (GDK_WINDOWING_QUARTZ)
+ gchar *text = NULL;
+#endif
g_return_if_fail (GTK_IS_STATUS_ICON (status_icon));
@@ -2610,14 +2613,12 @@ gtk_status_icon_set_tooltip_markup (GtkStatusIcon *status_icon,
gtk_widget_set_tooltip_markup (priv->tray_icon, markup);
#endif
#ifdef GDK_WINDOWING_WIN32
- gchar *text = NULL;
if (markup)
pango_parse_markup (markup, -1, 0, NULL, &text, NULL, NULL);
gtk_status_icon_set_tooltip_text (status_icon, text);
g_free (text);
#endif
#ifdef GDK_WINDOWING_QUARTZ
- gchar *text = NULL;
if (markup)
pango_parse_markup (markup, -1, 0, NULL, &text, NULL, NULL);
gtk_status_icon_set_tooltip_text (status_icon, text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]