pixmaps

pixmaps

Synopsis

GdkPixbuf *         gpe_find_icon                       (const gchar *name);
gboolean            gpe_find_icon_pixmap                (const gchar *name,
                                                         GdkPixmap **pixmap,
                                                         GdkBitmap **bitmap);
GdkPixbuf *         gpe_find_icon_scaled                (const gchar *name,
                                                         GtkIconSize size);
GdkPixbuf *         gpe_find_icon_scaled_free           (const gchar *name,
                                                         gint width,
                                                         gint height);
gboolean            gpe_load_icons                      (struct gpe_icon *Param1);
void                gpe_set_theme                       (const gchar *theme_name);
void                gpe_set_window_icon                 (GtkWidget *window,
                                                         gchar *icon);
GdkPixbuf *         gpe_try_find_icon                   (const gchar *name,
                                                         gchar **error);

Description

Details

gpe_find_icon ()

GdkPixbuf *         gpe_find_icon                       (const gchar *name);


gpe_find_icon_pixmap ()

gboolean            gpe_find_icon_pixmap                (const gchar *name,
                                                         GdkPixmap **pixmap,
                                                         GdkBitmap **bitmap);


gpe_find_icon_scaled ()

GdkPixbuf *         gpe_find_icon_scaled                (const gchar *name,
                                                         GtkIconSize size);


gpe_find_icon_scaled_free ()

GdkPixbuf *         gpe_find_icon_scaled_free           (const gchar *name,
                                                         gint width,
                                                         gint height);

Find an icon by name and scale it to a new size defined by the user.

name :

name of the icon to find

width :

designated icon width

height :

designated icon height

Returns :

New allocated and scaled pixbuf.

gpe_load_icons ()

gboolean            gpe_load_icons                      (struct gpe_icon *Param1);


gpe_set_theme ()

void                gpe_set_theme                       (const gchar *theme_name);

Set the name of the theme used by GPE functions. This will cause GPE icon functions to load icons from the given theme instead of the default location (if the icon is present in the selected theme). The name of the theme points GPE to the directory in $PREFIX/share/gpe/pixmaps where to search for the themed icons. How the actual theme is set and changed needs to be handled by the application. Passing NULL to theme_name resets the theme to the default/user theme.

theme_name :

Name of the theme to be used for GPE.

gpe_set_window_icon ()

void                gpe_set_window_icon                 (GtkWidget *window,
                                                         gchar *icon);


gpe_try_find_icon ()

GdkPixbuf *         gpe_try_find_icon                   (const gchar *name,
                                                         gchar **error);