Re: "Could not load spinner image"
- From: "Joe Shaw" <joe ximian com>
- To: "Felix E. Klee" <felix klee inka de>
- Cc: dashboard-hackers gnome org
- Subject: Re: "Could not load spinner image"
- Date: Wed, 21 Mar 2007 12:42:55 -0400
Hi,
On 3/21/07, Felix E. Klee <felix klee inka de> wrote:
Perhaps you have a code snippet that allows me to see the theme that's
being used. According to gconf-editor it should be Gorilla, but one
never knows.
Unfortunately, there doesn't appear to be an API to do this. I have
attached an updated snippet which hopefully will give a little more
insight.
Joe
using System;
class X {
static void Main ()
{
Gtk.Application.Init ();
Gtk.IconTheme theme = Gtk.IconTheme.GetForScreen (Gdk.Screen.Default);
Gdk.Pixbuf pixbuf;
Gtk.IconInfo info;
Console.WriteLine (theme.ExampleIconName);
info = theme.LookupIcon ("gnome-spinner-rest", 24, 0);
if (info != null)
Console.WriteLine (info.DisplayName + " " + info.Filename);
else
Console.WriteLine ("lookup of gnome-spinner-rest failed");
info = theme.LookupIcon ("gnome-spinner-rest", 24, Gtk.IconLookupFlags.UseBuiltin);
if (info != null)
Console.WriteLine ("DisplayName: " + info.DisplayName + " Filename: " + info.Filename);
else
Console.WriteLine ("lookup of gnome-spinner-rest failed");
pixbuf = theme.LoadIcon ("gnome-spinner-rest", 24, 0);
Console.WriteLine ("Got gnome-spinner-rest at {0}x{1}", pixbuf.Width, pixbuf.Height);
pixbuf = theme.LoadIcon ("gnome-spinner", 24, 0);
Console.WriteLine ("Got gnome-spinner at {0}x{1}", pixbuf.Width, pixbuf.Height);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]