After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 526325 - f-spot crashes in import dialog when icon not found
f-spot crashes in import dialog when icon not found
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Import
SVN
Other Linux
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 527757 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-04-05 14:13 UTC by Tim Retout
Modified: 2008-04-12 18:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use GtkUtil.TryIconLoad in import dialog (789 bytes, patch)
2008-04-05 14:15 UTC, Tim Retout
committed Details | Review

Description Tim Retout 2008-04-05 14:13:54 UTC
When users mess up their icon caches, they report errors like this:

GLib.GException: Icon 'f-spot' not present in theme
  at Gtk.IconTheme.LoadIcon (System.String icon_name, Int32 size, 
IconLookupFlags flags) [0x00000]
  at ImportCommand.ImportFromFile (.PhotoStore store, System.String path) 
[0x00000]
  at MainWindow.HandleImportCommand (System.Object sender, System.EventArgs e) 
[0x00000]
  at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) [0x00000]
  at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean 
is_terminal)
  at GLib.Signal.voidObjectCallback(IntPtr handle, IntPtr gch)
  at GLib.Signal.voidObjectCallback(IntPtr , IntPtr )
  at Gtk.Application.gtk_main()
  at Gtk.Application.gtk_main()
  at Gtk.Application.Run()
  at Gnome.Program.Run()
  at FSpot.Driver.Main(System.String[] args)
Comment 1 Tim Retout 2008-04-05 14:15:15 UTC
Created attachment 108669 [details] [review]
Use GtkUtil.TryIconLoad in import dialog

2008-04-05  Tim Retout  <tim@retout.co.uk>

    * src/ImportCommand.cs (ImportFromFile): Use GtkUtil.TryLoadIcon to avoid
    throwing an exception when f-spot icon is not found.
Comment 2 Maxxer 2008-04-12 18:51:47 UTC
*** Bug 527757 has been marked as a duplicate of this bug. ***