Commit 78149159 authored by Rodrigo Moya's avatar Rodrigo Moya Committed by Rodrigo Moya

check strings before calling g_str_has_prefix().

2007-02-12  Rodrigo Moya <rodrigo@gnome-db.org>

	* application-tile.c (application_tile_setup): check strings before
	calling g_str_has_prefix().

svn path=/trunk/; revision=178
parent a4a4abcd
2007-02-12 Rodrigo Moya <rodrigo@gnome-db.org>
* application-tile.c (application_tile_setup): check strings before
calling g_str_has_prefix().
2007-02-12 Damien Carbery <damien.carbery@sun.com>
Fixes #383022
......
......@@ -386,7 +386,7 @@ application_tile_setup (ApplicationTile *this, const gchar *gconf_prefix)
/* make "add/remove to favorites" action */
if (g_str_has_prefix (this->gconf_prefix, "/desktop/"))
if (this->gconf_prefix && g_str_has_prefix (this->gconf_prefix, "/desktop/"))
key = SLAB_USER_SPECIFIED_APPS_KEY;
else
key = "/apps/main-menu/file-area/user_specified_apps";
......@@ -420,7 +420,7 @@ application_tile_setup (ApplicationTile *this, const gchar *gconf_prefix)
/* make upgrade action */
if (g_str_has_prefix (this->gconf_prefix, "/desktop/"))
if (this->gconf_prefix && g_str_has_prefix (this->gconf_prefix, "/desktop/"))
key = SLAB_UPGRADE_PACKAGE_KEY;
else
key = "/apps/main-menu/upgrade_package_command";
......@@ -435,7 +435,7 @@ application_tile_setup (ApplicationTile *this, const gchar *gconf_prefix)
/* make uninstall action */
if (g_str_has_prefix (this->gconf_prefix, "/desktop/"))
if (this->gconf_prefix && g_str_has_prefix (this->gconf_prefix, "/desktop/"))
key = SLAB_UNINSTALL_PACKAGE_KEY;
else
key = "/apps/main-menu/uninstall_package_command";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment