summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2009-03-08 22:04:02 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2009-03-08 22:04:02 +0000
commit6dd1d4b5e674014d1eeaad82d5b057e6537fc346 (patch)
treed98001cb23f8ccd563b71fb3daeb08cb8e631759
parentremove deprecated/obsoleted dialog definition (fixes bug #571869). Patch (diff)
downloadzenity-6dd1d4b5e674014d1eeaad82d5b057e6537fc346.tar.gz
zenity-6dd1d4b5e674014d1eeaad82d5b057e6537fc346.tar.bz2
zenity-6dd1d4b5e674014d1eeaad82d5b057e6537fc346.zip
replace deprecated GTK+ calls (fixes bug #571869). Patch from Felix
2009-03-08 Lucas Rocha <lucasr@gnome.org> * configure.in, src/notification.c: replace deprecated GTK+ calls (fixes bug #571869). Patch from Felix Riemann <friemann@svn.gnome.org>. svn path=/trunk/; revision=1488
-rw-r--r--ChangeLog6
-rw-r--r--configure.in2
-rw-r--r--src/notification.c6
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 70853935..5dd7b45b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2009-03-08 Lucas Rocha <lucasr@gnome.org>
+ * configure.in, src/notification.c: replace deprecated
+ GTK+ calls (fixes bug #571869).
+ Patch from Felix Riemann <friemann@svn.gnome.org>.
+
+2009-03-08 Lucas Rocha <lucasr@gnome.org>
+
* src/zenity.glade: remove deprecated/obsoleted dialog
definition (fixes bug #571869).
Patch from Felix Riemann <friemann@svn.gnome.org>.
diff --git a/configure.in b/configure.in
index 4b4e6173..7771a7ec 100644
--- a/configure.in
+++ b/configure.in
@@ -16,7 +16,7 @@ IT_PROG_INTLTOOL([0.40.0])
AC_PROG_CC
-GTK_REQUIRED=2.9.2
+GTK_REQUIRED=2.15.1
PKG_CHECK_MODULES([ZENITY],[gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 libgnomecanvas-2.0 glib-2.0])
AC_SUBST([ZENITY_CFLAGS])
diff --git a/src/notification.c b/src/notification.c
index b2ab18fe..6c8f7463 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -198,7 +198,7 @@ zenity_notification_handle_stdin (GIOChannel *channel,
}
} else if (!g_ascii_strcasecmp (command, "tooltip")) {
if (g_utf8_validate (value, -1, NULL)) {
- gtk_status_icon_set_tooltip (status_icon, value);
+ gtk_status_icon_set_tooltip_text (status_icon, value);
} else {
g_warning ("Invalid UTF-8 in input!");
}
@@ -247,9 +247,9 @@ zenity_notification (ZenityData *data, ZenityNotificationData *notification_data
G_CALLBACK (zenity_notification_icon_size_changed_cb), data);
if (notification_data->notification_text) {
- gtk_status_icon_set_tooltip (status_icon, notification_data->notification_text);
+ gtk_status_icon_set_tooltip_text (status_icon, notification_data->notification_text);
} else {
- gtk_status_icon_set_tooltip (status_icon, _("Zenity notification"));
+ gtk_status_icon_set_tooltip_text (status_icon, _("Zenity notification"));
}
icon_file = g_strdup (data->window_icon);
bgstack15