Synopsis

#include <ntd-widgets.h>

GdkPixbuf *         ntd_stock_icon_get                  (const gchar *stock_icon);
GdkPixbuf *         ntd_stock_icon_get_with_state       (const gchar *stock_icon,
                                                         GtkStateType state);

#define             NTD_STOCK_LED_OFF
#define             NTD_STOCK_LED_ON
#define             NTD_STOCK_LED_UNDEF

#define             NTD_STOCK_SWITCH_OFF
#define             NTD_STOCK_SWITCH_ON
#define             NTD_STOCK_SWITCH_UNDEF

Description

Details

ntd_stock_icon_get ()

GdkPixbuf *         ntd_stock_icon_get                  (const gchar *stock_icon);

Retrieves a ntd-widgets stock icon.

stock_icon :

a string with the name of the requested stock icon

Returns :

a GdkPixbuf containing the requested stock icon. This pixbuf must be released with g_object_unref() when no longer used.

ntd_stock_icon_get_with_state ()

GdkPixbuf *         ntd_stock_icon_get_with_state       (const gchar *stock_icon,
                                                         GtkStateType state);

Retrieves a ntd-widgets stock icon in particular state. The ntd_stock_icon_get() function can only get original icons, that is in GTK_STATE_NORMAL state.

stock_icon :

a string with the name of the requested stock icon

state :

the state of the stock icon

Returns :

a GdkPixbuf containing the requested stock icon. This pixbuf must be released with g_object_unref() when no longer used.

NTD_STOCK_LED_OFF

#define NTD_STOCK_LED_OFF      "led-off"

NTD_STOCK_LED_ON

#define NTD_STOCK_LED_ON       "led-on"

NTD_STOCK_LED_UNDEF

#define NTD_STOCK_LED_UNDEF    "led-undef"

NTD_STOCK_SWITCH_OFF

#define NTD_STOCK_SWITCH_OFF   "switch-off"

NTD_STOCK_SWITCH_ON

#define NTD_STOCK_SWITCH_ON    "switch-on"

NTD_STOCK_SWITCH_UNDEF

#define NTD_STOCK_SWITCH_UNDEF "switch-undef"