Commit ca26f696 authored by Chun-wei Fan's avatar Chun-wei Fan

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.
parent 4a25c48a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment