"gtk_status_icon... is deprecated" compiler warnings

Bug #1644683 reported by Francis Chin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
psensor
New
Undecided
Unassigned

Bug Description

The following warnings are seen when compiling v1.2.0:

ui_status.c: In function ‘ui_status_init’:
ui_status.c:50:2: warning: ‘gtk_status_icon_new’ is deprecated [-Wdeprecated-declarations]
  status = gtk_status_icon_new();
  ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ui_status.h:23,
                 from ui_status.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:84:23: note: declared here
 GtkStatusIcon *gtk_status_icon_new (void);
                       ^
ui_status.c:51:2: warning: ‘gtk_status_icon_set_from_icon_name’ is deprecated [-Wdeprecated-declarations]
  gtk_status_icon_set_from_icon_name(status, ICON);
  ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ui_status.h:23,
                 from ui_status.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:106:23: note: declared here
 void gtk_status_icon_set_from_icon_name (GtkStatusIcon *status_icon,
                       ^
ui_status.c: In function ‘is_status_supported’:
ui_status.c:67:2: warning: ‘gtk_status_icon_is_embedded’ is deprecated [-Wdeprecated-declarations]
  return status && gtk_status_icon_is_embedded(status);
  ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ui_status.h:23,
                 from ui_status.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:157:23: note: declared here
 gboolean gtk_status_icon_is_embedded (GtkStatusIcon *status_icon);
                       ^
ui_status.c: In function ‘ui_status_update’:
ui_status.c:85:3: warning: ‘gtk_status_icon_set_from_icon_name’ is deprecated [-Wdeprecated-declarations]
   gtk_status_icon_set_from_icon_name(status, ICON);
   ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ui_status.h:23,
                 from ui_status.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:106:23: note: declared here
 void gtk_status_icon_set_from_icon_name (GtkStatusIcon *status_icon,
                       ^
ui_status.c:87:3: warning: ‘gtk_status_icon_set_from_icon_name’ is deprecated [-Wdeprecated-declarations]
   gtk_status_icon_set_from_icon_name(status, ATTENTION_ICON);
   ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ui_status.h:23,
                 from ui_status.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:106:23: note: declared here
 void gtk_status_icon_set_from_icon_name (GtkStatusIcon *status_icon,
                       ^
ui_status.c: In function ‘ui_status_set_visible’:
ui_status.c:106:4: warning: ‘gtk_status_icon_set_visible’ is deprecated [-Wdeprecated-declarations]
    gtk_status_icon_set_visible(status, TRUE);
    ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ui_status.h:23,
                 from ui_status.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:151:23: note: declared here
 void gtk_status_icon_set_visible (GtkStatusIcon *status_icon,
                       ^
ui_status.c:108:4: warning: ‘gtk_status_icon_set_visible’ is deprecated [-Wdeprecated-declarations]
    gtk_status_icon_set_visible(status, FALSE);
    ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ui_status.h:23,
                 from ui_status.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:151:23: note: declared here
 void gtk_status_icon_set_visible (GtkStatusIcon *status_icon,
                       ^

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.