diff options
author | Callum McKenzie <callum@src.gnome.org> | 2008-08-26 22:11:26 +0000 |
---|---|---|
committer | Callum McKenzie <callum@src.gnome.org> | 2008-08-26 22:11:26 +0000 |
commit | 478a2bbdd51bc77775d2d896089dbacad82702c6 (patch) | |
tree | 2306b41aea07fd9c9c60f3af8270b64ec4a0b360 /mixer/applet.c | |
parent | 37499a04b7cdfe32a5199c0e4a3eb02ee21d4437 (diff) |
Stop the mixer crashing if the icon cannot be found in an RTL environment. Bug 509065.
svn path=/trunk/; revision=10937
Diffstat (limited to 'mixer/applet.c')
-rw-r--r-- | mixer/applet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mixer/applet.c b/mixer/applet.c index 8d1ea48da..c4fa558e6 100644 --- a/mixer/applet.c +++ b/mixer/applet.c @@ -135,7 +135,8 @@ init_pixbufs (GnomeVolumeApplet *applet) 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); |