Gnome2
view release on metacpan or search on metacpan
xs/GnomeIconTheme.xs view on Meta::CPAN
(data->attach_points)[i] = point_data;
}
/* ----------------------------------------------------------------- */
return data;
}
#endif
#endif /* GNOME_TYPE_ICON_THEME */
MODULE = Gnome2::IconTheme PACKAGE = Gnome2::IconTheme PREFIX = gnome_icon_theme_
BOOT:
/* pass -Werror even if there are no xsubs at all */
#ifndef GNOME_TYPE_ICON_THEME
PERL_UNUSED_VAR (file);
#endif
#ifdef GNOME_TYPE_ICON_THEME
## GnomeIconTheme *gnome_icon_theme_new (void)
GnomeIconTheme *
gnome_icon_theme_new (class)
C_ARGS:
/* void */
=for apidoc
=for arg ... of paths
=cut
## void gnome_icon_theme_set_search_path (GnomeIconTheme *theme, const char *path[], int n_elements)
void
gnome_icon_theme_set_search_path (theme, ...)
GnomeIconTheme *theme
PREINIT:
int i;
const char **path = NULL;
CODE:
path = g_new0 (const char*, items - 1);
for (i = 1; i < items; i++)
path[i - 1] = SvPV_nolen (ST (i));
gnome_icon_theme_set_search_path (theme, path, i - 1);
=for apidoc
Returns a list of paths.
=cut
## void gnome_icon_theme_get_search_path (GnomeIconTheme *theme, char **path[], int *n_elements)
void
gnome_icon_theme_get_search_path (theme)
GnomeIconTheme *theme
PREINIT:
char **path;
int n_elements, i;
PPCODE:
gnome_icon_theme_get_search_path (theme, &path, &n_elements);
if (path) {
EXTEND (sp, n_elements);
for (i = 0; i < n_elements; i++)
PUSHs (sv_2mortal (newSVpv (path[i], 0)));
}
else
XSRETURN_EMPTY;
## void gnome_icon_theme_set_allow_svg (GnomeIconTheme *theme, gboolean allow_svg)
void
gnome_icon_theme_set_allow_svg (theme, allow_svg)
GnomeIconTheme *theme
gboolean allow_svg
## gboolean gnome_icon_theme_get_allow_svg (GnomeIconTheme *theme)
gboolean
gnome_icon_theme_get_allow_svg (theme)
GnomeIconTheme *theme
## void gnome_icon_theme_append_search_path (GnomeIconTheme *theme, const char *path)
void
gnome_icon_theme_append_search_path (theme, path)
GnomeIconTheme *theme
const char *path
## void gnome_icon_theme_prepend_search_path (GnomeIconTheme *theme, const char *path)
void
gnome_icon_theme_prepend_search_path (theme, path)
GnomeIconTheme *theme
const char *path
## void gnome_icon_theme_set_custom_theme (GnomeIconTheme *theme, const char *theme_name)
void
gnome_icon_theme_set_custom_theme (theme, theme_name)
GnomeIconTheme *theme
const char *theme_name
=for apidoc
Returns the filename, the icon data and the base size.
=cut
# FIXME: it seems like icon_data never gets filled.
## char * gnome_icon_theme_lookup_icon (GnomeIconTheme *theme, const char *icon_name, int size, const GnomeIconData **icon_data, int *base_size)
void
gnome_icon_theme_lookup_icon (theme, icon_name, size)
GnomeIconTheme *theme
const char *icon_name
int size
PREINIT:
char *filename;
const GnomeIconData *icon_data;
int base_size;
PPCODE:
filename = gnome_icon_theme_lookup_icon (theme, icon_name, size, &icon_data, &base_size);
if (!filename)
XSRETURN_EMPTY;
EXTEND (sp, 3);
PUSHs (sv_2mortal (newSVpv (filename, 0)));
PUSHs (sv_2mortal (newSVGnomeIconData (icon_data)));
PUSHs (sv_2mortal (newSViv (base_size)));
g_free (filename);
## gboolean gnome_icon_theme_has_icon (GnomeIconTheme *theme, const char *icon_name)
gboolean
gnome_icon_theme_has_icon (theme, icon_name)
GnomeIconTheme *theme
const char *icon_name
=for apidoc
Returns a list of icons.
=cut
## GList * gnome_icon_theme_list_icons (GnomeIconTheme *theme, const char *context)
void
gnome_icon_theme_list_icons (theme, context=NULL)
GnomeIconTheme *theme
const char *context
PREINIT:
GList *i, *results = NULL;
PPCODE:
results = gnome_icon_theme_list_icons (theme, context);
for (i = results; i != NULL; i = i->next) {
XPUSHs (sv_2mortal (newSVpv (i->data, 0)));
g_free (i->data);
}
g_list_free (results);
## char * gnome_icon_theme_get_example_icon_name (GnomeIconTheme *theme)
char *
gnome_icon_theme_get_example_icon_name (theme)
GnomeIconTheme *theme
## gboolean gnome_icon_theme_rescan_if_needed (GnomeIconTheme *theme)
gboolean
gnome_icon_theme_rescan_if_needed (theme)
GnomeIconTheme *theme
#endif
( run in 0.553 second using v1.01-cache-2.11-cpan-5511b514fd6 )