zenity r1488 - in trunk: . src
- From: lucasr svn gnome org
- To: svn-commits-list gnome org
- Subject: zenity r1488 - in trunk: . src
- Date: Sun, 8 Mar 2009 22:04:02 +0000 (UTC)
Author: lucasr
Date: Sun Mar 8 22:04:02 2009
New Revision: 1488
URL: http://svn.gnome.org/viewvc/zenity?rev=1488&view=rev
Log:
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>.
Modified:
trunk/ChangeLog
trunk/configure.in
trunk/src/notification.c
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Sun Mar 8 22:04:02 2009
@@ -16,7 +16,7 @@
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])
Modified: trunk/src/notification.c
==============================================================================
--- trunk/src/notification.c (original)
+++ trunk/src/notification.c Sun Mar 8 22:04:02 2009
@@ -198,7 +198,7 @@
}
} 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 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]