~elementary-os/elementaryos/os-patch-gnome-control-center-precise

« back to all changes in this revision

Viewing changes to debian/patches/accounts_fix_unsetting_icon.patch

  • Committer: Sergey "Shnatsel" Davidoff
  • Date: 2012-05-18 13:02:50 UTC
  • Revision ID: shnatsel@gmail.com-20120518130250-2u99ldq61a42rbt7
Initial import, version 1:3.4.1-0ubuntu2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: gnome-control-center-3.4.0/panels/user-accounts/um-user.c
 
2
===================================================================
 
3
--- gnome-control-center-3.4.0.orig/panels/user-accounts/um-user.c      2012-04-10 09:45:21.318382748 -0400
 
4
+++ gnome-control-center-3.4.0/panels/user-accounts/um-user.c   2012-04-10 09:48:21.290384652 -0400
 
5
@@ -846,7 +846,7 @@
 
6
         GVariant *result;
 
7
         GError *error = NULL;
 
8
 
 
9
-        result = g_dbus_proxy_call_sync (user->proxy, "SetIconFile", g_variant_new ("(s)", icon_file), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
 
10
+        result = g_dbus_proxy_call_sync (user->proxy, "SetIconFile", g_variant_new ("(s)", icon_file ? icon_file : ""), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
 
11
         if (!result) {
 
12
                 g_warning ("SetIconFile call failed: %s", error->message);
 
13
                 g_error_free (error);