gnome-applets r10937 - trunk/mixer



Author: callum
Date: Tue Aug 26 22:11:26 2008
New Revision: 10937
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=10937&view=rev

Log:
Stop the mixer crashing if the icon cannot be found in an RTL environment. Bug 509065.

Modified:
   trunk/mixer/ChangeLog
   trunk/mixer/applet.c

Modified: trunk/mixer/applet.c
==============================================================================
--- trunk/mixer/applet.c	(original)
+++ trunk/mixer/applet.c	Tue Aug 26 22:11:26 2008
@@ -135,7 +135,8 @@
 					       applet->panel_size - 4,
 					       0,
 					       NULL);
-    if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) {
+    if (applet->pix[n] != NULL &&
+	gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) {
       GdkPixbuf *temp;
 
       temp = gdk_pixbuf_flip (applet->pix[n], TRUE);



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