[gnome-control-center] wacom: Fix deprecated functions in gui_gtk.c
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Fix deprecated functions in gui_gtk.c
- Date: Thu, 21 Feb 2013 16:10:19 +0000 (UTC)
commit 1f57add30fbebfbdf3eddc8e9334d1beadaa1ffb
Author: Ángel Guzmán Maeso <shakaran gmail com>
Date: Thu Feb 21 15:43:59 2013 +0100
wacom: Fix deprecated functions in gui_gtk.c
From gtk_icon_info_free() to g_object_unref()
gtk_window_set_opacity() to gtk_widget_set_opacity()
https://mail.gnome.org/archives/commits-list/2013-February/msg02049.html
https://bugzilla.gnome.org/show_bug.cgi?id=694362
panels/wacom/calibrator/gui_gtk.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/wacom/calibrator/gui_gtk.c b/panels/wacom/calibrator/gui_gtk.c
index 82b60d5..91fc4f7 100644
--- a/panels/wacom/calibrator/gui_gtk.c
+++ b/panels/wacom/calibrator/gui_gtk.c
@@ -327,7 +327,7 @@ set_calibration_status (CalibArea *area)
NULL,
NULL,
NULL);
- gtk_icon_info_free (icon_info);
+ g_object_unref (icon_info);
if (!area->icon_success)
g_warning ("Failed to load icon \"%s\"", ICON_SUCCESS);
@@ -488,7 +488,7 @@ calib_area_new (GdkScreen *screen,
/* Black background */
gdk_rgba_parse (&black, "rgb(0,0,0)");
- gtk_window_set_opacity (GTK_WINDOW (calib_area->window), WINDOW_OPACITY);
+ gtk_widget_set_opacity (GTK_WIDGET (calib_area->window), WINDOW_OPACITY);
gtk_widget_realize (calib_area->window);
window = gtk_widget_get_window (calib_area->window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]