gnome-applets r11393 - trunk/drivemount
- From: callum svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-applets r11393 - trunk/drivemount
- Date: Fri, 20 Mar 2009 03:40:01 +0000 (UTC)
Author: callum
Date: Fri Mar 20 03:40:01 2009
New Revision: 11393
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=11393&view=rev
Log:
Check that we get a valid response from gconf
when asking for the play command. Bug 340410. Also avoid a crash
when no icons can be found.
Modified:
trunk/drivemount/ChangeLog
trunk/drivemount/drive-button.c
Modified: trunk/drivemount/drive-button.c
==============================================================================
--- trunk/drivemount/drive-button.c (original)
+++ trunk/drivemount/drive-button.c Fri Mar 20 03:40:01 2009
@@ -311,7 +311,7 @@
GtkIconInfo *icon_info;
GIcon *icon;
int width, height;
- GdkPixbuf *pixbuf, *scaled;
+ GdkPixbuf *pixbuf = NULL, *scaled;
GtkRequisition button_req, image_req;
char *display_name, *tip;
@@ -803,8 +803,11 @@
GConfClient *gconf_client = gconf_client_get_default ();
char *command = gconf_client_get_string (gconf_client,
autoplay_key, NULL);
- run_command (self, command);
- g_free (command);
+
+ if (command) {
+ run_command (self, command);
+ g_free (command);
+ }
g_object_unref (gconf_client);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]