Commit 5c327ecb authored by Jaap Haitsma's avatar Jaap Haitsma Committed by Jaap A. Haitsma

Remove usage of deprecated GtkTooltips API. Use

2007-07-09  Jaap Haitsma  <jaap@haitsma.org>

	* gtk/gtkstatusicon.c: Remove usage of deprecated GtkTooltips API. Use
	gtk_widget_set_tooltip_text instead

svn path=/trunk/; revision=18411
parent 3865f682
2007-07-09 Jaap Haitsma <jaap@haitsma.org>
* gtk/gtkstatusicon.c: Remove usage of deprecated GtkTooltips API. Use
gtk_widget_set_tooltip_text instead
2007-07-09 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtktooltip.c:
......
......@@ -35,7 +35,6 @@
#include "gtkintl.h"
#include "gtkiconfactory.h"
#include "gtkmarshalers.h"
#include "gtktooltips.h"
#include "gtktrayicon.h"
#include "gtkprivate.h"
......@@ -93,7 +92,6 @@ struct _GtkStatusIconPrivate
#ifdef GDK_WINDOWING_X11
GtkWidget *tray_icon;
GtkWidget *image;
GtkTooltips *tooltips;
#endif
#ifdef GDK_WINDOWING_WIN32
......@@ -505,8 +503,6 @@ gtk_status_icon_init (GtkStatusIcon *status_icon)
g_signal_connect_swapped (priv->image, "size-allocate",
G_CALLBACK (gtk_status_icon_size_allocate), status_icon);
status_icon->priv->tooltips = gtk_tooltips_new ();
g_object_ref_sink (priv->tooltips);
#endif
#ifdef GDK_WINDOWING_WIN32
......@@ -600,10 +596,6 @@ gtk_status_icon_finalize (GObject *object)
priv->blank_icon = NULL;
#ifdef GDK_WINDOWING_X11
if (priv->tooltips)
g_object_unref (priv->tooltips);
priv->tooltips = NULL;
gtk_widget_destroy (priv->tray_icon);
#endif
......@@ -1601,8 +1593,9 @@ gtk_status_icon_set_tooltip (GtkStatusIcon *status_icon,
priv = status_icon->priv;
#ifdef GDK_WINDOWING_X11
gtk_tooltips_set_tip (priv->tooltips, priv->tray_icon,
tooltip_text, NULL);
gtk_widget_set_tooltip_text (priv->tray_icon, tooltip_text);
#endif
#ifdef GDK_WINDOWING_WIN32
if (tooltip_text == NULL)
......
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