[phonemgr] Use gtk_status_icon_set_tooltip_text()
- From: Daniele Forsi <dforsi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phonemgr] Use gtk_status_icon_set_tooltip_text()
- Date: Sun, 5 Jun 2011 09:56:34 +0000 (UTC)
commit 81d5f745167d6ad8c9346aa43acf39babafb7770
Author: Daniele Forsi <dforsi src gnome org>
Date: Sun Jun 5 00:22:14 2011 +0200
Use gtk_status_icon_set_tooltip_text()
gtk_status_icon_set_tooltip() has been deprecated since version 2.16
and phonemgr now requires gtk+-2.0 >= 2.18
src/icon.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/icon.c b/src/icon.c
index 45d1683..4224ae2 100644
--- a/src/icon.c
+++ b/src/icon.c
@@ -56,18 +56,18 @@ set_icon_state (MyApp *app)
gtk_widget_set_sensitive (app->send_item, TRUE);
if (app->messages) {
gtk_status_icon_set_from_icon_name (app->tray_icon, "phone-message");
- gtk_status_icon_set_tooltip (app->tray_icon, _("Message arrived"));
+ gtk_status_icon_set_tooltip_text (app->tray_icon, _("Message arrived"));
} else {
gtk_status_icon_set_from_icon_name (app->tray_icon, "phone");
- gtk_status_icon_set_tooltip (app->tray_icon, _("Connected"));
+ gtk_status_icon_set_tooltip_text (app->tray_icon, _("Connected"));
}
} else if (app->connecting) {
gtk_status_icon_set_from_icon_name (app->tray_icon, "phone-connecting");
- gtk_status_icon_set_tooltip (app->tray_icon, _("Connecting to phone"));
+ gtk_status_icon_set_tooltip_text (app->tray_icon, _("Connecting to phone"));
gtk_widget_set_sensitive (app->send_item, FALSE);
} else {
gtk_status_icon_set_from_icon_name (app->tray_icon, "phone-error");
- gtk_status_icon_set_tooltip (app->tray_icon, _("Not connected"));
+ gtk_status_icon_set_tooltip_text (app->tray_icon, _("Not connected"));
gtk_widget_set_sensitive (app->send_item, FALSE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]