After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 565552 - gtk_status_icon_set_tooltip has been deprecated
gtk_status_icon_set_tooltip has been deprecated
Status: RESOLVED FIXED
Product: gnome-power-manager
Classification: Deprecated
Component: general
SVN TRUNK
Other Linux
: Normal normal
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-12-24 11:27 UTC by Frederic Peters
Modified: 2008-12-25 13:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
conditionnaly use new API (583 bytes, patch)
2008-12-24 11:32 UTC, Frederic Peters
committed Details | Review

Description Frederic Peters 2008-12-24 11:27:41 UTC
Decision has recently been made to release GNOME 2.26 with GTK+ 2.16, this version deprecates gtk_status_icon_set_tooltip.

The problem is gnome-power-manager builds with -DGTK_DISABLE_DEPRECATED and -Werror:

  cc1: warnings being treated as errors
  gpm-tray-icon.c: In function 'gpm_tray_icon_set_tooltip':
  gpm-tray-icon.c:176: error: implicit declaration of function 'gtk_status_icon_set_tooltip'
  make[3]: *** [gpm-tray-icon.o] Error 1
Comment 1 Frederic Peters 2008-12-24 11:32:02 UTC
Created attachment 125267 [details] [review]
conditionnaly use new API

This patch will use gtk_status_icon_set_tooltip_text with latest GTK+, avoiding the deprecated function.
Comment 2 Richard Hughes 2008-12-24 16:42:45 UTC
Please apply, thanks. Richard.
Comment 3 Frederic Peters 2008-12-25 13:08:14 UTC
2008-12-25  Frederic Peters  <fpeters@0d.be>

        * src/gpm-tray-icon.c: (gpm_tray_icon_set_tooltip):
        Conditionally use the new GTK+ API to set the tooltip on the tray icon.
        Fixes #565552