Public bug reported:

How to reproduce,

1) Go to unity-control-center->appearance

2) Click on + icon, select a valid image

3) (Expected) GtkFileChooser dialog shows a small preview of the image,

4) (Actual) No, preview. Instead a icon (dialog-question) is shown.

This is same for user accounts panel when user tries to add a custom
avatar.

This reason is in https://bazaar.launchpad.net/~unity-control-center-
team/unity-control-center/trunk/view/head:/panels/appearance/cc-
appearance-panel.c#L1303

it uses g_file_info_get_content_type which returns an internal string
and hence mime_type is always NULL.

See: https://bugzilla.gnome.org/show_bug.cgi?id=778424

** Affects: unity-control-center (Ubuntu)
     Importance: Undecided
     Assignee: Khurshid Alam (khurshid-alam)
         Status: Confirmed


** Tags: disco

** Changed in: unity-control-center (Ubuntu)
     Assignee: (unassigned) => Khurshid Alam (khurshid-alam)

** Changed in: unity-control-center (Ubuntu)
       Status: New => Confirmed

** Description changed:

  How to reproduce,
  
  1) Go to unity-control-center->appearance
  
  2) Click on + icon, select a valid image
  
  3) (Expected) GtkFileChooser dialog shows a small preview of the image,
  
  4) (Actual) No, preview. Instead a icon (dialog-question) is shown.
  
  This is same for user accounts panel when user tries to add a custom
  avatar.
  
  This reason is in https://bazaar.launchpad.net/~unity-control-center-
  team/unity-control-center/trunk/view/head:/panels/appearance/cc-
  appearance-panel.c#L1303
  
  it uses g_file_info_get_content_type which returns an internal string
- and hence mime_type was always NULL.
+ and hence mime_type is always NULL.
  
  See: https://bugzilla.gnome.org/show_bug.cgi?id=778424

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1802589

Title:
  No image preview when adding a custom wallpaper

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1802589/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to