gnome-applets r11291 - in trunk: accessx-status battstat geyes modemlights



Author: callum
Date: Tue Feb 17 00:21:22 2009
New Revision: 11291
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=11291&view=rev

Log:
More deprecated function replacement. (gdk_pixbuf this time)

Modified:
   trunk/accessx-status/applet.c
   trunk/battstat/battstat_applet.c
   trunk/geyes/ChangeLog
   trunk/geyes/themes.c
   trunk/modemlights/modem-applet.c

Modified: trunk/accessx-status/applet.c
==============================================================================
--- trunk/accessx-status/applet.c	(original)
+++ trunk/accessx-status/applet.c	Tue Feb 17 00:21:22 2009
@@ -548,7 +548,7 @@
 				      gdk_pixbuf_get_height (glyph_pixbuf) - 1, 
 				      1., 1., 1.0, 1.0, GDK_INTERP_NEAREST, 255);
 
-		gdk_pixbuf_unref (glyph_pixbuf);
+		g_object_unref (glyph_pixbuf);
 	}
 	return icon_base;
 }
@@ -659,7 +659,7 @@
 		GdkPixbuf *pixbuf = accessx_status_applet_mousekeys_image (
 			sapplet, &event->state);
 		gtk_image_set_from_pixbuf (GTK_IMAGE (sapplet->mousefoo),  pixbuf);
-		gdk_pixbuf_unref (pixbuf);
+		g_object_unref (pixbuf);
 	}
 
 	if (notify_type & ACCESSX_STATUS_ENABLED) {
@@ -865,7 +865,7 @@
 				      gdk_pixbuf_get_width (glyph_pixbuf),
 				      gdk_pixbuf_get_height (glyph_pixbuf),
 				      0., 0., 1.0, 1.0, GDK_INTERP_NEAREST, alpha);
-		gdk_pixbuf_unref (glyph_pixbuf);
+		g_object_unref (glyph_pixbuf);
 		gtk_icon_source_set_pixbuf (source, pixbuf);
 		gtk_icon_source_set_state (source, states[i]);
 		gtk_icon_source_set_state_wildcarded (source, wildcarded);

Modified: trunk/battstat/battstat_applet.c
==============================================================================
--- trunk/battstat/battstat_applet.c	(original)
+++ trunk/battstat/battstat_applet.c	Tue Feb 17 00:21:22 2009
@@ -434,7 +434,7 @@
 
 	/* XXX: it would be nice to pass this as a named icon */
 	notify_notification_set_icon_from_pixbuf (n, icon);
-	gdk_pixbuf_unref (icon);
+	g_object_unref (icon);
 
 	result = notify_notification_show (n, &error);
 	

Modified: trunk/geyes/themes.c
==============================================================================
--- trunk/geyes/themes.c	(original)
+++ trunk/geyes/themes.c	Tue Feb 17 00:21:22 2009
@@ -164,11 +164,11 @@
 {
 	/* Dunno about this - to unref or not to unref? */
 	if (eyes_applet->eye_image != NULL) {
-        	gdk_pixbuf_unref (eyes_applet->eye_image); 
+        	g_object_unref (eyes_applet->eye_image); 
         	eyes_applet->eye_image = NULL;
         }
         if (eyes_applet->pupil_image != NULL) {
-        	gdk_pixbuf_unref (eyes_applet->pupil_image); 
+        	g_object_unref (eyes_applet->pupil_image); 
         	eyes_applet->pupil_image = NULL;
 	}
 	

Modified: trunk/modemlights/modem-applet.c
==============================================================================
--- trunk/modemlights/modem-applet.c	(original)
+++ trunk/modemlights/modem-applet.c	Tue Feb 17 00:21:22 2009
@@ -198,7 +198,7 @@
 
   pixbuf = gtk_icon_theme_load_icon (priv->icon_theme, "gnome-modem-monitor-applet", 48, 0, NULL);
   gtk_image_set_from_pixbuf (GTK_IMAGE (priv->report_window_image), pixbuf);
-  gdk_pixbuf_unref (pixbuf);
+  g_object_unref (pixbuf);
 
   priv->configured = FALSE;
   priv->enabled = FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]