Fixed compilation with 2.10 <= Gtk+ < 2.18

This commit is contained in:
Pierre Pronchery 2010-05-01 02:31:02 +00:00
parent bce582c623
commit e42d05e351

View File

@ -165,7 +165,9 @@ Phone * phone_new(char const * device, unsigned int baudrate, int retry)
#if GTK_CHECK_VERSION(2, 10, 0)
phone->sy_icon = gtk_status_icon_new_from_icon_name(
"stock_landline-phone");
# if GTK_CHECK_VERSION(2, 18, 0)
gtk_status_icon_set_title(phone->sy_icon, _("Phone"));
# endif
#endif
phone->sy_level = NULL;
/* check errors */