KatzePreferences

KatzePreferences

Synopsis

#include <katze/katze.h>

struct              KatzePreferences;
struct              KatzePreferencesClass;
GtkWidget *         katze_preferences_new               (GtkWindow *parent);
GtkWidget *         katze_preferences_add_category      (KatzePreferences *preferences,
                                                         const gchar *label,
                                                         const gchar *icon);
void                katze_preferences_add_group         (KatzePreferences *preferences,
                                                         const gchar *label);
void                katze_preferences_add_widget        (KatzePreferences *preferences,
                                                         GtkWidget *widget,
                                                         const gchar *type);

Description

Details

struct KatzePreferences

struct KatzePreferences {
    GtkDialog parent_instance;

    KatzePreferencesPrivate* priv;
};

struct KatzePreferencesClass

struct KatzePreferencesClass {
    GtkDialogClass parent_class;
};

katze_preferences_new ()

GtkWidget *         katze_preferences_new               (GtkWindow *parent);

Creates a new preferences dialog.

parent :

the parent window, or NULL

Returns :

a new KatzePreferences

Since 0.2.1


katze_preferences_add_category ()

GtkWidget *         katze_preferences_add_category      (KatzePreferences *preferences,
                                                         const gchar *label,
                                                         const gchar *icon);

Adds a new category with the specified label to the dialog.

preferences :

a KatzePreferences instance

label :

a category label

icon :

an icon name

Since 0.2.1


katze_preferences_add_group ()

void                katze_preferences_add_group         (KatzePreferences *preferences,
                                                         const gchar *label);

Adds a new group with the specified label to the dialog.

preferences :

a KatzePreferences instance

label :

a group label, or NULL

Since 0.2.1


katze_preferences_add_widget ()

void                katze_preferences_add_widget        (KatzePreferences *preferences,
                                                         GtkWidget *widget,
                                                         const gchar *type);

Adds a widget to the dialog.

preferences :

a KatzePreferences instance

widget :

a widget representing an option

type :

"filled", "indented", or "spanned"

Since 0.2.1