Logo Search packages:      
Sourcecode: d-conf version File versions  Download package

dconf-view.c

/* dconf-view.c generated by valac 0.12.0, the Vala compiler
 * generated from dconf-view.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <gdk/gdk.h>
#include <cairo.h>


#define TYPE_KEY_VALUE_RENDERER (key_value_renderer_get_type ())
#define KEY_VALUE_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEY_VALUE_RENDERER, KeyValueRenderer))
#define KEY_VALUE_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEY_VALUE_RENDERER, KeyValueRendererClass))
#define IS_KEY_VALUE_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEY_VALUE_RENDERER))
#define IS_KEY_VALUE_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEY_VALUE_RENDERER))
#define KEY_VALUE_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEY_VALUE_RENDERER, KeyValueRendererClass))

typedef struct _KeyValueRenderer KeyValueRenderer;
typedef struct _KeyValueRendererClass KeyValueRendererClass;
typedef struct _KeyValueRendererPrivate KeyValueRendererPrivate;

#define TYPE_DCONF_KEY_VIEW (dconf_key_view_get_type ())
#define DCONF_KEY_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DCONF_KEY_VIEW, DConfKeyView))
#define DCONF_KEY_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DCONF_KEY_VIEW, DConfKeyViewClass))
#define IS_DCONF_KEY_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DCONF_KEY_VIEW))
#define IS_DCONF_KEY_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DCONF_KEY_VIEW))
#define DCONF_KEY_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DCONF_KEY_VIEW, DConfKeyViewClass))

typedef struct _DConfKeyView DConfKeyView;
typedef struct _DConfKeyViewClass DConfKeyViewClass;

#define TYPE_KEY (key_get_type ())
#define KEY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEY, Key))
#define KEY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEY, KeyClass))
#define IS_KEY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEY))
#define IS_KEY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEY))
#define KEY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEY, KeyClass))

typedef struct _Key Key;
typedef struct _KeyClass KeyClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_variant_type_free0(var) ((var == NULL) ? NULL : (var = (g_variant_type_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _KeyPrivate KeyPrivate;

#define TYPE_DIRECTORY (directory_get_type ())
#define DIRECTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY, Directory))
#define DIRECTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY, DirectoryClass))
#define IS_DIRECTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY))
#define IS_DIRECTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY))
#define DIRECTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY, DirectoryClass))

typedef struct _Directory Directory;
typedef struct _DirectoryClass DirectoryClass;

#define TYPE_SCHEMA_KEY (schema_key_get_type ())
#define SCHEMA_KEY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCHEMA_KEY, SchemaKey))
#define SCHEMA_KEY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCHEMA_KEY, SchemaKeyClass))
#define IS_SCHEMA_KEY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCHEMA_KEY))
#define IS_SCHEMA_KEY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCHEMA_KEY))
#define SCHEMA_KEY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCHEMA_KEY, SchemaKeyClass))

typedef struct _SchemaKey SchemaKey;
typedef struct _SchemaKeyClass SchemaKeyClass;
typedef struct _SchemaKeyPrivate SchemaKeyPrivate;

#define TYPE_SCHEMA (schema_get_type ())
#define SCHEMA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCHEMA, Schema))
#define SCHEMA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCHEMA, SchemaClass))
#define IS_SCHEMA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCHEMA))
#define IS_SCHEMA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCHEMA))
#define SCHEMA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCHEMA, SchemaClass))

typedef struct _Schema Schema;
typedef struct _SchemaClass SchemaClass;

#define TYPE_SCHEMA_VALUE_RANGE (schema_value_range_get_type ())
#define SCHEMA_VALUE_RANGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCHEMA_VALUE_RANGE, SchemaValueRange))
#define SCHEMA_VALUE_RANGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCHEMA_VALUE_RANGE, SchemaValueRangeClass))
#define IS_SCHEMA_VALUE_RANGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCHEMA_VALUE_RANGE))
#define IS_SCHEMA_VALUE_RANGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCHEMA_VALUE_RANGE))
#define SCHEMA_VALUE_RANGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCHEMA_VALUE_RANGE, SchemaValueRangeClass))

typedef struct _SchemaValueRange SchemaValueRange;
typedef struct _SchemaValueRangeClass SchemaValueRangeClass;

#define TYPE_SCHEMA_CHOICE (schema_choice_get_type ())
#define SCHEMA_CHOICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCHEMA_CHOICE, SchemaChoice))
#define SCHEMA_CHOICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCHEMA_CHOICE, SchemaChoiceClass))
#define IS_SCHEMA_CHOICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCHEMA_CHOICE))
#define IS_SCHEMA_CHOICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCHEMA_CHOICE))
#define SCHEMA_CHOICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCHEMA_CHOICE, SchemaChoiceClass))

typedef struct _SchemaChoice SchemaChoice;
typedef struct _SchemaChoiceClass SchemaChoiceClass;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _SchemaChoicePrivate SchemaChoicePrivate;
#define _schema_choice_unref0(var) ((var == NULL) ? NULL : (var = (schema_choice_unref (var), NULL)))
typedef struct _SchemaPrivate SchemaPrivate;

#define TYPE_SCHEMA_LIST (schema_list_get_type ())
#define SCHEMA_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCHEMA_LIST, SchemaList))
#define SCHEMA_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCHEMA_LIST, SchemaListClass))
#define IS_SCHEMA_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCHEMA_LIST))
#define IS_SCHEMA_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCHEMA_LIST))
#define SCHEMA_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCHEMA_LIST, SchemaListClass))

typedef struct _SchemaList SchemaList;
typedef struct _SchemaListClass SchemaListClass;
typedef struct _SchemaListPrivate SchemaListPrivate;

#define TYPE_SCHEMA_ENUM (schema_enum_get_type ())
#define SCHEMA_ENUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCHEMA_ENUM, SchemaEnum))
#define SCHEMA_ENUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCHEMA_ENUM, SchemaEnumClass))
#define IS_SCHEMA_ENUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCHEMA_ENUM))
#define IS_SCHEMA_ENUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCHEMA_ENUM))
#define SCHEMA_ENUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCHEMA_ENUM, SchemaEnumClass))

typedef struct _SchemaEnum SchemaEnum;
typedef struct _SchemaEnumClass SchemaEnumClass;

#define TYPE_SCHEMA_FLAGS (schema_flags_get_type ())
#define SCHEMA_FLAGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCHEMA_FLAGS, SchemaFlags))
#define SCHEMA_FLAGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCHEMA_FLAGS, SchemaFlagsClass))
#define IS_SCHEMA_FLAGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCHEMA_FLAGS))
#define IS_SCHEMA_FLAGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCHEMA_FLAGS))
#define SCHEMA_FLAGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCHEMA_FLAGS, SchemaFlagsClass))

typedef struct _SchemaFlags SchemaFlags;
typedef struct _SchemaFlagsClass SchemaFlagsClass;

#define TYPE_ENUM_MODEL (enum_model_get_type ())
#define ENUM_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENUM_MODEL, EnumModel))
#define ENUM_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENUM_MODEL, EnumModelClass))
#define IS_ENUM_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENUM_MODEL))
#define IS_ENUM_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENUM_MODEL))
#define ENUM_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENUM_MODEL, EnumModelClass))

typedef struct _EnumModel EnumModel;
typedef struct _EnumModelClass EnumModelClass;
typedef struct _SchemaValueRangePrivate SchemaValueRangePrivate;

#define TYPE_DCONF_DIR_VIEW (dconf_dir_view_get_type ())
#define DCONF_DIR_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DCONF_DIR_VIEW, DConfDirView))
#define DCONF_DIR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DCONF_DIR_VIEW, DConfDirViewClass))
#define IS_DCONF_DIR_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DCONF_DIR_VIEW))
#define IS_DCONF_DIR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DCONF_DIR_VIEW))
#define DCONF_DIR_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DCONF_DIR_VIEW, DConfDirViewClass))

typedef struct _DConfDirView DConfDirView;
typedef struct _DConfDirViewClass DConfDirViewClass;
typedef struct _DConfDirViewPrivate DConfDirViewPrivate;
typedef struct _DConfKeyViewPrivate DConfKeyViewPrivate;

00161 struct _KeyValueRenderer {
      GtkCellRenderer parent_instance;
      KeyValueRendererPrivate * priv;
};

00166 struct _KeyValueRendererClass {
      GtkCellRendererClass parent_class;
};

00170 struct _KeyValueRendererPrivate {
      DConfKeyView* view;
      GtkCellRendererText* text_renderer;
      GtkCellRendererSpin* spin_renderer;
      GtkCellRendererToggle* toggle_renderer;
      GtkCellRendererCombo* combo_renderer;
      Key* _key;
};

struct _Key {
      GObject parent_instance;
      KeyPrivate * priv;
      Directory* parent;
      gchar* name;
      gchar* full_name;
      SchemaKey* schema;
};

struct _KeyClass {
      GObjectClass parent_class;
};

struct _SchemaKey {
      GTypeInstance parent_instance;
      volatile int ref_count;
      SchemaKeyPrivate * priv;
      Schema* schema;
      gchar* name;
      gchar* type;
      GVariant* default_value;
      SchemaValueRange* range;
      SchemaValueRange* type_range;
      GList* choices;
      gchar* enum_name;
      gchar* summary;
      gchar* description;
      gchar* gettext_domain;
};

struct _SchemaKeyClass {
      GTypeClass parent_class;
      void (*finalize) (SchemaKey *self);
};

struct _SchemaChoice {
      GTypeInstance parent_instance;
      volatile int ref_count;
      SchemaChoicePrivate * priv;
      gchar* name;
      GVariant* value;
};

struct _SchemaChoiceClass {
      GTypeClass parent_class;
      void (*finalize) (SchemaChoice *self);
};

struct _Schema {
      GTypeInstance parent_instance;
      volatile int ref_count;
      SchemaPrivate * priv;
      SchemaList* list;
      gchar* id;
      gchar* path;
      GHashTable* keys;
};

struct _SchemaClass {
      GTypeClass parent_class;
      void (*finalize) (Schema *self);
};

struct _SchemaList {
      GTypeInstance parent_instance;
      volatile int ref_count;
      SchemaListPrivate * priv;
      GList* schemas;
      GHashTable* keys;
      GHashTable* enums;
      GHashTable* flags;
};

struct _SchemaListClass {
      GTypeClass parent_class;
      void (*finalize) (SchemaList *self);
};

struct _SchemaValueRange {
      GTypeInstance parent_instance;
      volatile int ref_count;
      SchemaValueRangePrivate * priv;
      GVariant* min;
      GVariant* max;
};

struct _SchemaValueRangeClass {
      GTypeClass parent_class;
      void (*finalize) (SchemaValueRange *self);
};

00270 struct _DConfDirView {
      GtkTreeView parent_instance;
      DConfDirViewPrivate * priv;
};

00275 struct _DConfDirViewClass {
      GtkTreeViewClass parent_class;
};

00279 struct _DConfKeyView {
      GtkTreeView parent_instance;
      DConfKeyViewPrivate * priv;
};

00284 struct _DConfKeyViewClass {
      GtkTreeViewClass parent_class;
};


static gpointer key_value_renderer_parent_class = NULL;
static gpointer dconf_dir_view_parent_class = NULL;
static gpointer dconf_key_view_parent_class = NULL;

GType key_value_renderer_get_type (void) G_GNUC_CONST;
GType dconf_key_view_get_type (void) G_GNUC_CONST;
GType key_get_type (void) G_GNUC_CONST;
#define KEY_VALUE_RENDERER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_KEY_VALUE_RENDERER, KeyValueRendererPrivate))
enum  {
      KEY_VALUE_RENDERER_DUMMY_PROPERTY,
      KEY_VALUE_RENDERER_KEY
};
static gdouble key_value_renderer_get_variant_as_double (GVariant* value);
KeyValueRenderer* key_value_renderer_new (DConfKeyView* view);
KeyValueRenderer* key_value_renderer_construct (GType object_type, DConfKeyView* view);
static void key_value_renderer_text_edited_cb (KeyValueRenderer* self, GtkCellRendererText* renderer, const gchar* path, const gchar* text);
static void _key_value_renderer_text_edited_cb_gtk_cell_renderer_text_edited (GtkCellRendererText* _sender, const gchar* path, const gchar* new_text, gpointer self);
static void key_value_renderer_spin_edited_cb (KeyValueRenderer* self, GtkCellRendererText* renderer, const gchar* path, const gchar* text);
static void _key_value_renderer_spin_edited_cb_gtk_cell_renderer_text_edited (GtkCellRendererText* _sender, const gchar* path, const gchar* new_text, gpointer self);
static void key_value_renderer_toggle_cb (KeyValueRenderer* self, GtkCellRendererToggle* renderer, const gchar* path);
static void _key_value_renderer_toggle_cb_gtk_cell_renderer_toggle_toggled (GtkCellRendererToggle* _sender, const gchar* path, gpointer self);
static void key_value_renderer_real_get_size (GtkCellRenderer* base, GtkWidget* widget, GdkRectangle* cell_area, gint* x_offset, gint* y_offset, gint* width, gint* height);
static GtkCellRenderer* key_value_renderer_get_renderer (KeyValueRenderer* self);
static void key_value_renderer_real_get_preferred_width (GtkCellRenderer* base, GtkWidget* widget, gint* minimum_size, gint* natural_size);
static void key_value_renderer_real_get_preferred_height_for_width (GtkCellRenderer* base, GtkWidget* widget, gint width, gint* minimum_height, gint* natural_height);
static void key_value_renderer_real_get_preferred_height (GtkCellRenderer* base, GtkWidget* widget, gint* minimum_size, gint* natural_size);
static void key_value_renderer_real_get_preferred_width_for_height (GtkCellRenderer* base, GtkWidget* widget, gint height, gint* minimum_width, gint* natural_width);
static void key_value_renderer_real_render (GtkCellRenderer* base, cairo_t* context, GtkWidget* widget, GdkRectangle* background_area, GdkRectangle* cell_area, GtkCellRendererState flags);
static gboolean key_value_renderer_real_activate (GtkCellRenderer* base, GdkEvent* event, GtkWidget* widget, const gchar* path, GdkRectangle* background_area, GdkRectangle* cell_area, GtkCellRendererState flags);
static GtkCellEditable* key_value_renderer_real_start_editing (GtkCellRenderer* base, GdkEvent* event, GtkWidget* widget, const gchar* path, GdkRectangle* background_area, GdkRectangle* cell_area, GtkCellRendererState flags);
static Key* key_value_renderer_get_key_from_path (KeyValueRenderer* self, const gchar* path);
GVariant* key_get_value (Key* self);
void key_set_value (Key* self, GVariant* value);
const gchar* key_get_type_string (Key* self);
Key* key_value_renderer_get_key (KeyValueRenderer* self);
void key_value_renderer_set_key (KeyValueRenderer* self, Key* value);
gboolean key_get_has_schema (Key* self);
GType directory_get_type (void) G_GNUC_CONST;
gpointer schema_key_ref (gpointer instance);
void schema_key_unref (gpointer instance);
GParamSpec* param_spec_schema_key (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_schema_key (GValue* value, gpointer v_object);
void value_take_schema_key (GValue* value, gpointer v_object);
gpointer value_get_schema_key (const GValue* value);
GType schema_key_get_type (void) G_GNUC_CONST;
gpointer schema_ref (gpointer instance);
void schema_unref (gpointer instance);
GParamSpec* param_spec_schema (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_schema (GValue* value, gpointer v_object);
void value_take_schema (GValue* value, gpointer v_object);
gpointer value_get_schema (const GValue* value);
GType schema_get_type (void) G_GNUC_CONST;
gpointer schema_value_range_ref (gpointer instance);
void schema_value_range_unref (gpointer instance);
GParamSpec* param_spec_schema_value_range (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_schema_value_range (GValue* value, gpointer v_object);
void value_take_schema_value_range (GValue* value, gpointer v_object);
gpointer value_get_schema_value_range (const GValue* value);
GType schema_value_range_get_type (void) G_GNUC_CONST;
gpointer schema_choice_ref (gpointer instance);
void schema_choice_unref (gpointer instance);
GParamSpec* param_spec_schema_choice (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_schema_choice (GValue* value, gpointer v_object);
void value_take_schema_choice (GValue* value, gpointer v_object);
gpointer value_get_schema_choice (const GValue* value);
GType schema_choice_get_type (void) G_GNUC_CONST;
gpointer schema_list_ref (gpointer instance);
void schema_list_unref (gpointer instance);
GParamSpec* param_spec_schema_list (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_schema_list (GValue* value, gpointer v_object);
void value_take_schema_list (GValue* value, gpointer v_object);
gpointer value_get_schema_list (const GValue* value);
GType schema_list_get_type (void) G_GNUC_CONST;
gpointer schema_enum_ref (gpointer instance);
void schema_enum_unref (gpointer instance);
GParamSpec* param_spec_schema_enum (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_schema_enum (GValue* value, gpointer v_object);
void value_take_schema_enum (GValue* value, gpointer v_object);
gpointer value_get_schema_enum (const GValue* value);
GType schema_enum_get_type (void) G_GNUC_CONST;
gpointer schema_flags_ref (gpointer instance);
void schema_flags_unref (gpointer instance);
GParamSpec* param_spec_schema_flags (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_schema_flags (GValue* value, gpointer v_object);
void value_take_schema_flags (GValue* value, gpointer v_object);
gpointer value_get_schema_flags (const GValue* value);
GType schema_flags_get_type (void) G_GNUC_CONST;
EnumModel* enum_model_new (SchemaEnum* schema_enum);
EnumModel* enum_model_construct (GType object_type, SchemaEnum* schema_enum);
GType enum_model_get_type (void) G_GNUC_CONST;
GVariant* key_get_min (Key* self);
GVariant* key_get_max (Key* self);
static void key_value_renderer_set_renderer (KeyValueRenderer* self, GtkCellRenderer* value);
static void key_value_renderer_finalize (GObject* obj);
static void _vala_key_value_renderer_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_key_value_renderer_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType dconf_dir_view_get_type (void) G_GNUC_CONST;
enum  {
      DCONF_DIR_VIEW_DUMMY_PROPERTY
};
DConfDirView* dconf_dir_view_new (void);
DConfDirView* dconf_dir_view_construct (GType object_type);
enum  {
      DCONF_KEY_VIEW_DUMMY_PROPERTY
};
DConfKeyView* dconf_key_view_new (void);
DConfKeyView* dconf_key_view_construct (GType object_type);


static gdouble key_value_renderer_get_variant_as_double (GVariant* value) {
      gdouble result = 0.0;
      GVariantClass _tmp0_;
      g_return_val_if_fail (value != NULL, 0.0);
      if (value == NULL) {
            result = 0.0;
            return result;
      }
      _tmp0_ = g_variant_classify (value);
      switch (_tmp0_) {
            case G_VARIANT_CLASS_BYTE:
            {
                  guint8 _tmp1_;
                  _tmp1_ = g_variant_get_byte (value);
                  result = (gdouble) _tmp1_;
                  return result;
            }
            case G_VARIANT_CLASS_INT16:
            {
                  gint16 _tmp2_;
                  _tmp2_ = g_variant_get_int16 (value);
                  result = (gdouble) _tmp2_;
                  return result;
            }
            case G_VARIANT_CLASS_UINT16:
            {
                  guint16 _tmp3_;
                  _tmp3_ = g_variant_get_uint16 (value);
                  result = (gdouble) _tmp3_;
                  return result;
            }
            case G_VARIANT_CLASS_INT32:
            {
                  gint32 _tmp4_;
                  _tmp4_ = g_variant_get_int32 (value);
                  result = (gdouble) _tmp4_;
                  return result;
            }
            case G_VARIANT_CLASS_UINT32:
            {
                  guint32 _tmp5_;
                  _tmp5_ = g_variant_get_uint32 (value);
                  result = (gdouble) _tmp5_;
                  return result;
            }
            case G_VARIANT_CLASS_INT64:
            {
                  gint64 _tmp6_;
                  _tmp6_ = g_variant_get_int64 (value);
                  result = (gdouble) _tmp6_;
                  return result;
            }
            case G_VARIANT_CLASS_UINT64:
            {
                  guint64 _tmp7_;
                  _tmp7_ = g_variant_get_uint64 (value);
                  result = (gdouble) _tmp7_;
                  return result;
            }
            case G_VARIANT_CLASS_DOUBLE:
            {
                  gdouble _tmp8_;
                  _tmp8_ = g_variant_get_double (value);
                  result = _tmp8_;
                  return result;
            }
            default:
            {
                  result = 0.0;
                  return result;
            }
      }
}


static gpointer _g_object_ref0 (gpointer self) {
      return self ? g_object_ref (self) : NULL;
}


static void _key_value_renderer_text_edited_cb_gtk_cell_renderer_text_edited (GtkCellRendererText* _sender, const gchar* path, const gchar* new_text, gpointer self) {
      key_value_renderer_text_edited_cb (self, _sender, path, new_text);
}


static void _key_value_renderer_spin_edited_cb_gtk_cell_renderer_text_edited (GtkCellRendererText* _sender, const gchar* path, const gchar* new_text, gpointer self) {
      key_value_renderer_spin_edited_cb (self, _sender, path, new_text);
}


static void _key_value_renderer_toggle_cb_gtk_cell_renderer_toggle_toggled (GtkCellRendererToggle* _sender, const gchar* path, gpointer self) {
      key_value_renderer_toggle_cb (self, _sender, path);
}


KeyValueRenderer* key_value_renderer_construct (GType object_type, DConfKeyView* view) {
      KeyValueRenderer * self = NULL;
      DConfKeyView* _tmp0_;
      GtkCellRendererText* _tmp1_ = NULL;
      GtkCellRendererSpin* _tmp2_ = NULL;
      GtkCellRendererToggle* _tmp3_ = NULL;
      GtkCellRendererCombo* _tmp4_ = NULL;
      g_return_val_if_fail (view != NULL, NULL);
      self = (KeyValueRenderer*) g_object_new (object_type, NULL);
      _tmp0_ = _g_object_ref0 (view);
      _g_object_unref0 (self->priv->view);
      self->priv->view = _tmp0_;
      _tmp1_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
      _g_object_unref0 (self->priv->text_renderer);
      self->priv->text_renderer = g_object_ref_sink (_tmp1_);
      g_object_set (self->priv->text_renderer, "editable", TRUE, NULL);
      g_signal_connect_object (self->priv->text_renderer, "edited", (GCallback) _key_value_renderer_text_edited_cb_gtk_cell_renderer_text_edited, self, 0);
      _tmp2_ = (GtkCellRendererSpin*) gtk_cell_renderer_spin_new ();
      _g_object_unref0 (self->priv->spin_renderer);
      self->priv->spin_renderer = g_object_ref_sink (_tmp2_);
      g_object_set ((GtkCellRendererText*) self->priv->spin_renderer, "editable", TRUE, NULL);
      g_signal_connect_object ((GtkCellRendererText*) self->priv->spin_renderer, "edited", (GCallback) _key_value_renderer_spin_edited_cb_gtk_cell_renderer_text_edited, self, 0);
      _tmp3_ = (GtkCellRendererToggle*) gtk_cell_renderer_toggle_new ();
      _g_object_unref0 (self->priv->toggle_renderer);
      self->priv->toggle_renderer = g_object_ref_sink (_tmp3_);
      g_object_set ((GtkCellRenderer*) self->priv->toggle_renderer, "xalign", 0.f, NULL);
      gtk_cell_renderer_toggle_set_activatable (self->priv->toggle_renderer, TRUE);
      g_signal_connect_object (self->priv->toggle_renderer, "toggled", (GCallback) _key_value_renderer_toggle_cb_gtk_cell_renderer_toggle_toggled, self, 0);
      _tmp4_ = (GtkCellRendererCombo*) gtk_cell_renderer_combo_new ();
      _g_object_unref0 (self->priv->combo_renderer);
      self->priv->combo_renderer = g_object_ref_sink (_tmp4_);
      g_object_set (self->priv->combo_renderer, "has-entry", FALSE, NULL);
      g_object_set (self->priv->combo_renderer, "text-column", 0, NULL);
      g_object_set ((GtkCellRendererText*) self->priv->combo_renderer, "editable", TRUE, NULL);
      g_signal_connect_object ((GtkCellRendererText*) self->priv->combo_renderer, "edited", (GCallback) _key_value_renderer_text_edited_cb_gtk_cell_renderer_text_edited, self, 0);
      return self;
}


KeyValueRenderer* key_value_renderer_new (DConfKeyView* view) {
      return key_value_renderer_construct (TYPE_KEY_VALUE_RENDERER, view);
}


static void key_value_renderer_real_get_size (GtkCellRenderer* base, GtkWidget* widget, GdkRectangle* cell_area, gint* x_offset, gint* y_offset, gint* width, gint* height) {
      KeyValueRenderer * self;
      gint _x_offset = 0;
      gint _y_offset = 0;
      gint _width = 0;
      gint _height = 0;
      GtkCellRenderer* _tmp0_ = NULL;
      GtkCellRenderer* _tmp1_;
      gint _tmp2_;
      gint _tmp3_;
      gint _tmp4_;
      gint _tmp5_;
      self = (KeyValueRenderer*) base;
      g_return_if_fail (widget != NULL);
      _tmp0_ = key_value_renderer_get_renderer (self);
      GTK_CELL_RENDERER_GET_CLASS (_tmp1_ = _tmp0_)->get_size (_tmp1_, widget, cell_area, &_tmp2_, &_tmp3_, &_tmp4_, &_tmp5_);
      _x_offset = _tmp2_;
      _y_offset = _tmp3_;
      _width = _tmp4_;
      _height = _tmp5_;
      if (x_offset) {
            *x_offset = _x_offset;
      }
      if (y_offset) {
            *y_offset = _y_offset;
      }
      if (width) {
            *width = _width;
      }
      if (height) {
            *height = _height;
      }
}


static void key_value_renderer_real_get_preferred_width (GtkCellRenderer* base, GtkWidget* widget, gint* minimum_size, gint* natural_size) {
      KeyValueRenderer * self;
      gint _minimum_size = 0;
      gint _natural_size = 0;
      GtkCellRenderer* _tmp0_ = NULL;
      gint _tmp1_;
      gint _tmp2_;
      self = (KeyValueRenderer*) base;
      g_return_if_fail (widget != NULL);
      _tmp0_ = key_value_renderer_get_renderer (self);
      gtk_cell_renderer_get_preferred_width (_tmp0_, widget, &_tmp1_, &_tmp2_);
      _minimum_size = _tmp1_;
      _natural_size = _tmp2_;
      if (minimum_size) {
            *minimum_size = _minimum_size;
      }
      if (natural_size) {
            *natural_size = _natural_size;
      }
}


static void key_value_renderer_real_get_preferred_height_for_width (GtkCellRenderer* base, GtkWidget* widget, gint width, gint* minimum_height, gint* natural_height) {
      KeyValueRenderer * self;
      gint _minimum_height = 0;
      gint _natural_height = 0;
      GtkCellRenderer* _tmp0_ = NULL;
      gint _tmp1_;
      gint _tmp2_;
      self = (KeyValueRenderer*) base;
      g_return_if_fail (widget != NULL);
      _tmp0_ = key_value_renderer_get_renderer (self);
      gtk_cell_renderer_get_preferred_height_for_width (_tmp0_, widget, width, &_tmp1_, &_tmp2_);
      _minimum_height = _tmp1_;
      _natural_height = _tmp2_;
      if (minimum_height) {
            *minimum_height = _minimum_height;
      }
      if (natural_height) {
            *natural_height = _natural_height;
      }
}


static void key_value_renderer_real_get_preferred_height (GtkCellRenderer* base, GtkWidget* widget, gint* minimum_size, gint* natural_size) {
      KeyValueRenderer * self;
      gint _minimum_size = 0;
      gint _natural_size = 0;
      GtkCellRenderer* _tmp0_ = NULL;
      gint _tmp1_;
      gint _tmp2_;
      self = (KeyValueRenderer*) base;
      g_return_if_fail (widget != NULL);
      _tmp0_ = key_value_renderer_get_renderer (self);
      gtk_cell_renderer_get_preferred_height (_tmp0_, widget, &_tmp1_, &_tmp2_);
      _minimum_size = _tmp1_;
      _natural_size = _tmp2_;
      if (minimum_size) {
            *minimum_size = _minimum_size;
      }
      if (natural_size) {
            *natural_size = _natural_size;
      }
}


static void key_value_renderer_real_get_preferred_width_for_height (GtkCellRenderer* base, GtkWidget* widget, gint height, gint* minimum_width, gint* natural_width) {
      KeyValueRenderer * self;
      gint _minimum_width = 0;
      gint _natural_width = 0;
      GtkCellRenderer* _tmp0_ = NULL;
      gint _tmp1_;
      gint _tmp2_;
      self = (KeyValueRenderer*) base;
      g_return_if_fail (widget != NULL);
      _tmp0_ = key_value_renderer_get_renderer (self);
      gtk_cell_renderer_get_preferred_width_for_height (_tmp0_, widget, height, &_tmp1_, &_tmp2_);
      _minimum_width = _tmp1_;
      _natural_width = _tmp2_;
      if (minimum_width) {
            *minimum_width = _minimum_width;
      }
      if (natural_width) {
            *natural_width = _natural_width;
      }
}


static void key_value_renderer_real_render (GtkCellRenderer* base, cairo_t* context, GtkWidget* widget, GdkRectangle* background_area, GdkRectangle* cell_area, GtkCellRendererState flags) {
      KeyValueRenderer * self;
      GtkCellRenderer* _tmp0_ = NULL;
      self = (KeyValueRenderer*) base;
      g_return_if_fail (context != NULL);
      g_return_if_fail (widget != NULL);
      _tmp0_ = key_value_renderer_get_renderer (self);
      gtk_cell_renderer_render (_tmp0_, context, widget, background_area, cell_area, flags);
}


static gboolean key_value_renderer_real_activate (GtkCellRenderer* base, GdkEvent* event, GtkWidget* widget, const gchar* path, GdkRectangle* background_area, GdkRectangle* cell_area, GtkCellRendererState flags) {
      KeyValueRenderer * self;
      gboolean result = FALSE;
      GtkCellRenderer* _tmp0_ = NULL;
      gboolean _tmp1_;
      self = (KeyValueRenderer*) base;
      g_return_val_if_fail (event != NULL, FALSE);
      g_return_val_if_fail (widget != NULL, FALSE);
      g_return_val_if_fail (path != NULL, FALSE);
      _tmp0_ = key_value_renderer_get_renderer (self);
      _tmp1_ = gtk_cell_renderer_activate (_tmp0_, event, widget, path, background_area, cell_area, flags);
      result = _tmp1_;
      return result;
}


static GtkCellEditable* key_value_renderer_real_start_editing (GtkCellRenderer* base, GdkEvent* event, GtkWidget* widget, const gchar* path, GdkRectangle* background_area, GdkRectangle* cell_area, GtkCellRendererState flags) {
      KeyValueRenderer * self;
      GtkCellEditable* result = NULL;
      GtkCellRenderer* _tmp0_ = NULL;
      GtkCellEditable* _tmp1_ = NULL;
      self = (KeyValueRenderer*) base;
      g_return_val_if_fail (event != NULL, NULL);
      g_return_val_if_fail (widget != NULL, NULL);
      g_return_val_if_fail (path != NULL, NULL);
      _tmp0_ = key_value_renderer_get_renderer (self);
      _tmp1_ = gtk_cell_renderer_start_editing (_tmp0_, event, widget, path, background_area, cell_area, flags);
      result = _tmp1_;
      return result;
}


static Key* key_value_renderer_get_key_from_path (KeyValueRenderer* self, const gchar* path) {
      Key* result = NULL;
      GtkTreeIter iter = {0};
      GtkTreeModel* _tmp0_ = NULL;
      GtkTreeIter _tmp1_ = {0};
      Key* key = NULL;
      GtkTreeModel* _tmp2_ = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (path != NULL, NULL);
      _tmp0_ = gtk_tree_view_get_model ((GtkTreeView*) self->priv->view);
      gtk_tree_model_get_iter_from_string (_tmp0_, &_tmp1_, path);
      iter = _tmp1_;
      _tmp2_ = gtk_tree_view_get_model ((GtkTreeView*) self->priv->view);
      gtk_tree_model_get (_tmp2_, &iter, 0, &key, -1, -1);
      result = key;
      return result;
}


static void key_value_renderer_toggle_cb (KeyValueRenderer* self, GtkCellRendererToggle* renderer, const gchar* path) {
      Key* _tmp0_ = NULL;
      Key* key;
      GVariant* _tmp1_ = NULL;
      gboolean _tmp2_;
      GVariant* _tmp3_ = NULL;
      GVariant* _tmp4_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (renderer != NULL);
      g_return_if_fail (path != NULL);
      _tmp0_ = key_value_renderer_get_key_from_path (self, path);
      key = _tmp0_;
      _tmp1_ = key_get_value (key);
      _tmp2_ = g_variant_get_boolean (_tmp1_);
      _tmp3_ = g_variant_new_boolean (!_tmp2_);
      _tmp4_ = g_variant_ref_sink (_tmp3_);
      key_set_value (key, _tmp4_);
      _g_variant_unref0 (_tmp4_);
      _g_object_unref0 (key);
}


static void key_value_renderer_text_edited_cb (KeyValueRenderer* self, GtkCellRendererText* renderer, const gchar* path, const gchar* text) {
      Key* _tmp0_ = NULL;
      Key* key;
      gboolean _tmp1_ = FALSE;
      const gchar* _tmp2_ = NULL;
      GError * _inner_error_ = NULL;
      g_return_if_fail (self != NULL);
      g_return_if_fail (renderer != NULL);
      g_return_if_fail (path != NULL);
      g_return_if_fail (text != NULL);
      _tmp0_ = key_value_renderer_get_key_from_path (self, path);
      key = _tmp0_;
      _tmp2_ = key_get_type_string (key);
      if (g_strcmp0 (_tmp2_, "s") == 0) {
            _tmp1_ = TRUE;
      } else {
            const gchar* _tmp3_ = NULL;
            _tmp3_ = key_get_type_string (key);
            _tmp1_ = g_strcmp0 (_tmp3_, "<enum>") == 0;
      }
      if (_tmp1_) {
            GVariant* _tmp4_ = NULL;
            GVariant* _tmp5_;
            _tmp4_ = g_variant_new_string (text);
            _tmp5_ = g_variant_ref_sink (_tmp4_);
            key_set_value (key, _tmp5_);
            _g_variant_unref0 (_tmp5_);
      } else {
            const gchar* _tmp6_ = NULL;
            GVariantType* _tmp7_ = NULL;
            GVariantType* _tmp8_;
            GVariant* _tmp9_ = NULL;
            GVariant* _tmp10_;
            GVariant* value;
            _tmp6_ = key_get_type_string (key);
            _tmp7_ = g_variant_type_new (_tmp6_);
            _tmp8_ = _tmp7_;
            _tmp9_ = g_variant_parse (_tmp8_, text, NULL, NULL, &_inner_error_);
            _tmp10_ = _tmp9_;
            _g_variant_type_free0 (_tmp8_);
            value = _tmp10_;
            if (_inner_error_ != NULL) {
                  if (_inner_error_->domain == G_VARIANT_PARSE_ERROR) {
                        goto __catch9_g_variant_parse_error;
                  }
                  _g_object_unref0 (key);
                  g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                  g_clear_error (&_inner_error_);
                  return;
            }
            key_set_value (key, value);
            _g_variant_unref0 (value);
            goto __finally9;
            __catch9_g_variant_parse_error:
            {
                  GError * e;
                  GtkMessageDialog* _tmp11_ = NULL;
                  GtkMessageDialog* dialog;
                  e = _inner_error_;
                  _inner_error_ = NULL;
                  _tmp11_ = (GtkMessageDialog*) gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, "Error setting value: %s", e->message);
                  dialog = g_object_ref_sink (_tmp11_);
                  gtk_dialog_run ((GtkDialog*) dialog);
                  gtk_widget_destroy ((GtkWidget*) dialog);
                  _g_object_unref0 (dialog);
                  _g_error_free0 (e);
            }
            __finally9:
            if (_inner_error_ != NULL) {
                  _g_object_unref0 (key);
                  g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                  g_clear_error (&_inner_error_);
                  return;
            }
      }
      _g_object_unref0 (key);
}


static gdouble double_parse (const gchar* str) {
      gdouble result = 0.0;
      gdouble _tmp0_;
      g_return_val_if_fail (str != NULL, 0.0);
      _tmp0_ = g_ascii_strtod (str, NULL);
      result = _tmp0_;
      return result;
}


static void key_value_renderer_spin_edited_cb (KeyValueRenderer* self, GtkCellRendererText* renderer, const gchar* path, const gchar* text) {
      Key* _tmp0_ = NULL;
      Key* key;
      const gchar* _tmp1_ = NULL;
      const gchar* _tmp2_;
      GQuark _tmp3_;
      static GQuark _tmp3__label0 = 0;
      static GQuark _tmp3__label1 = 0;
      static GQuark _tmp3__label2 = 0;
      static GQuark _tmp3__label3 = 0;
      static GQuark _tmp3__label4 = 0;
      static GQuark _tmp3__label5 = 0;
      static GQuark _tmp3__label6 = 0;
      static GQuark _tmp3__label7 = 0;
      g_return_if_fail (self != NULL);
      g_return_if_fail (renderer != NULL);
      g_return_if_fail (path != NULL);
      g_return_if_fail (text != NULL);
      _tmp0_ = key_value_renderer_get_key_from_path (self, path);
      key = _tmp0_;
      _tmp1_ = key_get_type_string (key);
      _tmp2_ = _tmp1_;
      _tmp3_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
      if (_tmp3_ == ((0 != _tmp3__label0) ? _tmp3__label0 : (_tmp3__label0 = g_quark_from_static_string ("y")))) {
            switch (0) {
                  default:
                  {
                        gint _tmp4_;
                        GVariant* _tmp5_ = NULL;
                        GVariant* _tmp6_;
                        _tmp4_ = atoi (text);
                        _tmp5_ = g_variant_new_byte ((guchar) _tmp4_);
                        _tmp6_ = g_variant_ref_sink (_tmp5_);
                        key_set_value (key, _tmp6_);
                        _g_variant_unref0 (_tmp6_);
                        break;
                  }
            }
      } else if (_tmp3_ == ((0 != _tmp3__label1) ? _tmp3__label1 : (_tmp3__label1 = g_quark_from_static_string ("n")))) {
            switch (0) {
                  default:
                  {
                        gint _tmp7_;
                        GVariant* _tmp8_ = NULL;
                        GVariant* _tmp9_;
                        _tmp7_ = atoi (text);
                        _tmp8_ = g_variant_new_int16 ((gint16) _tmp7_);
                        _tmp9_ = g_variant_ref_sink (_tmp8_);
                        key_set_value (key, _tmp9_);
                        _g_variant_unref0 (_tmp9_);
                        break;
                  }
            }
      } else if (_tmp3_ == ((0 != _tmp3__label2) ? _tmp3__label2 : (_tmp3__label2 = g_quark_from_static_string ("q")))) {
            switch (0) {
                  default:
                  {
                        gint _tmp10_;
                        GVariant* _tmp11_ = NULL;
                        GVariant* _tmp12_;
                        _tmp10_ = atoi (text);
                        _tmp11_ = g_variant_new_uint16 ((guint16) _tmp10_);
                        _tmp12_ = g_variant_ref_sink (_tmp11_);
                        key_set_value (key, _tmp12_);
                        _g_variant_unref0 (_tmp12_);
                        break;
                  }
            }
      } else if (_tmp3_ == ((0 != _tmp3__label3) ? _tmp3__label3 : (_tmp3__label3 = g_quark_from_static_string ("i")))) {
            switch (0) {
                  default:
                  {
                        gint _tmp13_;
                        GVariant* _tmp14_ = NULL;
                        GVariant* _tmp15_;
                        _tmp13_ = atoi (text);
                        _tmp14_ = g_variant_new_int32 ((gint32) _tmp13_);
                        _tmp15_ = g_variant_ref_sink (_tmp14_);
                        key_set_value (key, _tmp15_);
                        _g_variant_unref0 (_tmp15_);
                        break;
                  }
            }
      } else if (_tmp3_ == ((0 != _tmp3__label4) ? _tmp3__label4 : (_tmp3__label4 = g_quark_from_static_string ("u")))) {
            switch (0) {
                  default:
                  {
                        gint _tmp16_;
                        GVariant* _tmp17_ = NULL;
                        GVariant* _tmp18_;
                        _tmp16_ = atoi (text);
                        _tmp17_ = g_variant_new_uint32 ((guint32) _tmp16_);
                        _tmp18_ = g_variant_ref_sink (_tmp17_);
                        key_set_value (key, _tmp18_);
                        _g_variant_unref0 (_tmp18_);
                        break;
                  }
            }
      } else if (_tmp3_ == ((0 != _tmp3__label5) ? _tmp3__label5 : (_tmp3__label5 = g_quark_from_static_string ("x")))) {
            switch (0) {
                  default:
                  {
                        gint _tmp19_;
                        GVariant* _tmp20_ = NULL;
                        GVariant* _tmp21_;
                        _tmp19_ = atoi (text);
                        _tmp20_ = g_variant_new_int64 ((gint64) _tmp19_);
                        _tmp21_ = g_variant_ref_sink (_tmp20_);
                        key_set_value (key, _tmp21_);
                        _g_variant_unref0 (_tmp21_);
                        break;
                  }
            }
      } else if (_tmp3_ == ((0 != _tmp3__label6) ? _tmp3__label6 : (_tmp3__label6 = g_quark_from_static_string ("t")))) {
            switch (0) {
                  default:
                  {
                        gint _tmp22_;
                        GVariant* _tmp23_ = NULL;
                        GVariant* _tmp24_;
                        _tmp22_ = atoi (text);
                        _tmp23_ = g_variant_new_uint64 ((guint64) _tmp22_);
                        _tmp24_ = g_variant_ref_sink (_tmp23_);
                        key_set_value (key, _tmp24_);
                        _g_variant_unref0 (_tmp24_);
                        break;
                  }
            }
      } else if (_tmp3_ == ((0 != _tmp3__label7) ? _tmp3__label7 : (_tmp3__label7 = g_quark_from_static_string ("d")))) {
            switch (0) {
                  default:
                  {
                        gdouble _tmp25_;
                        GVariant* _tmp26_ = NULL;
                        GVariant* _tmp27_;
                        _tmp25_ = double_parse (text);
                        _tmp26_ = g_variant_new_double (_tmp25_);
                        _tmp27_ = g_variant_ref_sink (_tmp26_);
                        key_set_value (key, _tmp27_);
                        _g_variant_unref0 (_tmp27_);
                        break;
                  }
            }
      }
      _g_object_unref0 (key);
}


Key* key_value_renderer_get_key (KeyValueRenderer* self) {
      Key* result;
      g_return_val_if_fail (self != NULL, NULL);
      result = self->priv->_key;
      return result;
}


static gpointer _schema_choice_ref0 (gpointer self) {
      return self ? schema_choice_ref (self) : NULL;
}


void key_value_renderer_set_key (KeyValueRenderer* self, Key* value) {
      Key* _tmp0_;
      gboolean _tmp1_ = FALSE;
      Key* _tmp2_ = NULL;
      gboolean _tmp3_;
      Key* _tmp15_ = NULL;
      const gchar* _tmp16_ = NULL;
      const gchar* _tmp17_;
      GQuark _tmp18_;
      static GQuark _tmp18__label0 = 0;
      static GQuark _tmp18__label1 = 0;
      static GQuark _tmp18__label2 = 0;
      static GQuark _tmp18__label3 = 0;
      static GQuark _tmp18__label4 = 0;
      static GQuark _tmp18__label5 = 0;
      static GQuark _tmp18__label6 = 0;
      static GQuark _tmp18__label7 = 0;
      static GQuark _tmp18__label8 = 0;
      static GQuark _tmp18__label9 = 0;
      static GQuark _tmp18__label10 = 0;
      g_return_if_fail (self != NULL);
      _tmp0_ = _g_object_ref0 (value);
      _g_object_unref0 (self->priv->_key);
      self->priv->_key = _tmp0_;
      _tmp2_ = key_value_renderer_get_key (self);
      _tmp3_ = key_get_has_schema (_tmp2_);
      if (_tmp3_) {
            Key* _tmp4_ = NULL;
            _tmp4_ = key_value_renderer_get_key (self);
            _tmp1_ = _tmp4_->schema->choices != NULL;
      } else {
            _tmp1_ = FALSE;
      }
      if (_tmp1_) {
            Key* _tmp5_ = NULL;
            GVariant* _tmp6_ = NULL;
            gchar* _tmp7_ = NULL;
            gchar* _tmp8_;
            GtkListStore* _tmp9_ = NULL;
            GtkListStore* model;
            Key* _tmp10_ = NULL;
            _tmp5_ = key_value_renderer_get_key (self);
            _tmp6_ = key_get_value (_tmp5_);
            _tmp7_ = g_variant_print (_tmp6_, FALSE);
            _tmp8_ = _tmp7_;
            g_object_set ((GtkCellRendererText*) self->priv->combo_renderer, "text", _tmp8_, NULL);
            _g_free0 (_tmp8_);
            _tmp9_ = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
            model = _tmp9_;
            _tmp10_ = key_value_renderer_get_key (self);
            {
                  GList* choice_collection;
                  GList* choice_it;
                  choice_collection = _tmp10_->schema->choices;
                  for (choice_it = choice_collection; choice_it != NULL; choice_it = choice_it->next) {
                        SchemaChoice* _tmp11_;
                        SchemaChoice* choice;
                        _tmp11_ = _schema_choice_ref0 ((SchemaChoice*) choice_it->data);
                        choice = _tmp11_;
                        {
                              GtkTreeIter iter = {0};
                              GtkTreeIter _tmp12_ = {0};
                              gchar* _tmp13_ = NULL;
                              gchar* _tmp14_;
                              gtk_list_store_append (model, &_tmp12_);
                              iter = _tmp12_;
                              _tmp13_ = g_variant_print (choice->value, FALSE);
                              _tmp14_ = _tmp13_;
                              gtk_list_store_set (model, &iter, 0, choice->name, 1, _tmp14_, -1, -1);
                              _g_free0 (_tmp14_);
                              _schema_choice_unref0 (choice);
                        }
                  }
            }
            g_object_set (self->priv->combo_renderer, "model", (GtkTreeModel*) model, NULL);
            g_object_set ((GtkCellRenderer*) self, "mode", GTK_CELL_RENDERER_MODE_EDITABLE, NULL);
            _g_object_unref0 (model);
            return;
      }
      _tmp15_ = key_value_renderer_get_key (self);
      _tmp16_ = key_get_type_string (_tmp15_);
      _tmp17_ = _tmp16_;
      _tmp18_ = (NULL == _tmp17_) ? 0 : g_quark_from_string (_tmp17_);
      if (_tmp18_ == ((0 != _tmp18__label0) ? _tmp18__label0 : (_tmp18__label0 = g_quark_from_static_string ("<enum>")))) {
            switch (0) {
                  default:
                  {
                        Key* _tmp19_ = NULL;
                        GVariant* _tmp20_ = NULL;
                        const gchar* _tmp21_ = NULL;
                        Key* _tmp22_ = NULL;
                        Key* _tmp23_ = NULL;
                        gconstpointer _tmp24_ = NULL;
                        EnumModel* _tmp25_ = NULL;
                        EnumModel* _tmp26_;
                        _tmp19_ = key_value_renderer_get_key (self);
                        _tmp20_ = key_get_value (_tmp19_);
                        _tmp21_ = g_variant_get_string (_tmp20_, NULL);
                        g_object_set ((GtkCellRendererText*) self->priv->combo_renderer, "text", _tmp21_, NULL);
                        _tmp22_ = key_value_renderer_get_key (self);
                        _tmp23_ = key_value_renderer_get_key (self);
                        _tmp24_ = g_hash_table_lookup (_tmp22_->schema->schema->list->enums, _tmp23_->schema->enum_name);
                        _tmp25_ = enum_model_new ((SchemaEnum*) _tmp24_);
                        _tmp26_ = _tmp25_;
                        g_object_set (self->priv->combo_renderer, "model", (GtkTreeModel*) _tmp26_, NULL);
                        _g_object_unref0 (_tmp26_);
                        g_object_set ((GtkCellRenderer*) self, "mode", GTK_CELL_RENDERER_MODE_EDITABLE, NULL);
                        break;
                  }
            }
      } else if (_tmp18_ == ((0 != _tmp18__label1) ? _tmp18__label1 : (_tmp18__label1 = g_quark_from_static_string ("b")))) {
            switch (0) {
                  default:
                  {
                        Key* _tmp27_ = NULL;
                        GVariant* _tmp28_ = NULL;
                        gboolean _tmp29_;
                        _tmp27_ = key_value_renderer_get_key (self);
                        _tmp28_ = key_get_value (_tmp27_);
                        _tmp29_ = g_variant_get_boolean (_tmp28_);
                        gtk_cell_renderer_toggle_set_active (self->priv->toggle_renderer, _tmp29_);
                        g_object_set ((GtkCellRenderer*) self, "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL);
                        break;
                  }
            }
      } else if (_tmp18_ == ((0 != _tmp18__label2) ? _tmp18__label2 : (_tmp18__label2 = g_quark_from_static_string ("s")))) {
            switch (0) {
                  default:
                  {
                        Key* _tmp30_ = NULL;
                        GVariant* _tmp31_ = NULL;
                        const gchar* _tmp32_ = NULL;
                        _tmp30_ = key_value_renderer_get_key (self);
                        _tmp31_ = key_get_value (_tmp30_);
                        _tmp32_ = g_variant_get_string (_tmp31_, NULL);
                        g_object_set (self->priv->text_renderer, "text", _tmp32_, NULL);
                        g_object_set ((GtkCellRenderer*) self, "mode", GTK_CELL_RENDERER_MODE_EDITABLE, NULL);
                        break;
                  }
            }
      } else if ((((((((_tmp18_ == ((0 != _tmp18__label3) ? _tmp18__label3 : (_tmp18__label3 = g_quark_from_static_string ("y")))) || (_tmp18_ == ((0 != _tmp18__label4) ? _tmp18__label4 : (_tmp18__label4 = g_quark_from_static_string ("n"))))) || (_tmp18_ == ((0 != _tmp18__label5) ? _tmp18__label5 : (_tmp18__label5 = g_quark_from_static_string ("q"))))) || (_tmp18_ == ((0 != _tmp18__label6) ? _tmp18__label6 : (_tmp18__label6 = g_quark_from_static_string ("i"))))) || (_tmp18_ == ((0 != _tmp18__label7) ? _tmp18__label7 : (_tmp18__label7 = g_quark_from_static_string ("u"))))) || (_tmp18_ == ((0 != _tmp18__label8) ? _tmp18__label8 : (_tmp18__label8 = g_quark_from_static_string ("x"))))) || (_tmp18_ == ((0 != _tmp18__label9) ? _tmp18__label9 : (_tmp18__label9 = g_quark_from_static_string ("t"))))) || (_tmp18_ == ((0 != _tmp18__label10) ? _tmp18__label10 : (_tmp18__label10 = g_quark_from_static_string ("d"))))) {
            switch (0) {
                  default:
                  {
                        Key* _tmp33_ = NULL;
                        GVariant* _tmp34_ = NULL;
                        gchar* _tmp35_ = NULL;
                        gchar* _tmp36_;
                        Key* _tmp37_ = NULL;
                        GVariant* _tmp38_ = NULL;
                        gdouble _tmp39_;
                        gdouble v;
                        gdouble min;
                        gdouble max;
                        gboolean _tmp40_ = FALSE;
                        Key* _tmp41_ = NULL;
                        gboolean _tmp42_;
                        GtkAdjustment* _tmp56_ = NULL;
                        GtkAdjustment* _tmp57_;
                        _tmp33_ = key_value_renderer_get_key (self);
                        _tmp34_ = key_get_value (_tmp33_);
                        _tmp35_ = g_variant_print (_tmp34_, FALSE);
                        _tmp36_ = _tmp35_;
                        g_object_set ((GtkCellRendererText*) self->priv->spin_renderer, "text", _tmp36_, NULL);
                        _g_free0 (_tmp36_);
                        _tmp37_ = key_value_renderer_get_key (self);
                        _tmp38_ = key_get_value (_tmp37_);
                        _tmp39_ = key_value_renderer_get_variant_as_double (_tmp38_);
                        v = _tmp39_;
                        min = 0.0;
                        max = 0.0;
                        _tmp41_ = key_value_renderer_get_key (self);
                        _tmp42_ = key_get_has_schema (_tmp41_);
                        if (_tmp42_) {
                              Key* _tmp43_ = NULL;
                              _tmp43_ = key_value_renderer_get_key (self);
                              _tmp40_ = _tmp43_->schema->range != NULL;
                        } else {
                              _tmp40_ = FALSE;
                        }
                        if (_tmp40_) {
                              Key* _tmp44_ = NULL;
                              gdouble _tmp45_;
                              Key* _tmp46_ = NULL;
                              gdouble _tmp47_;
                              _tmp44_ = key_value_renderer_get_key (self);
                              _tmp45_ = key_value_renderer_get_variant_as_double (_tmp44_->schema->range->min);
                              min = _tmp45_;
                              _tmp46_ = key_value_renderer_get_key (self);
                              _tmp47_ = key_value_renderer_get_variant_as_double (_tmp46_->schema->range->max);
                              max = _tmp47_;
                        } else {
                              Key* _tmp48_ = NULL;
                              GVariant* _tmp49_ = NULL;
                              GVariant* _tmp50_;
                              gdouble _tmp51_;
                              Key* _tmp52_ = NULL;
                              GVariant* _tmp53_ = NULL;
                              GVariant* _tmp54_;
                              gdouble _tmp55_;
                              _tmp48_ = key_value_renderer_get_key (self);
                              _tmp49_ = key_get_min (_tmp48_);
                              _tmp50_ = _tmp49_;
                              _tmp51_ = key_value_renderer_get_variant_as_double (_tmp50_);
                              min = _tmp51_;
                              _g_variant_unref0 (_tmp50_);
                              _tmp52_ = key_value_renderer_get_key (self);
                              _tmp53_ = key_get_max (_tmp52_);
                              _tmp54_ = _tmp53_;
                              _tmp55_ = key_value_renderer_get_variant_as_double (_tmp54_);
                              max = _tmp55_;
                              _g_variant_unref0 (_tmp54_);
                        }
                        _tmp56_ = gtk_adjustment_new (v, min, max, (gdouble) 1, (gdouble) 0, (gdouble) 0);
                        _tmp57_ = g_object_ref_sink (_tmp56_);
                        g_object_set (self->priv->spin_renderer, "adjustment", _tmp57_, NULL);
                        _g_object_unref0 (_tmp57_);
                        g_object_set (self->priv->spin_renderer, "digits", (guint) 0, NULL);
                        g_object_set ((GtkCellRenderer*) self, "mode", GTK_CELL_RENDERER_MODE_EDITABLE, NULL);
                        break;
                  }
            }
      } else {
            switch (0) {
                  default:
                  {
                        Key* _tmp58_ = NULL;
                        GVariant* _tmp59_ = NULL;
                        gchar* _tmp60_ = NULL;
                        gchar* _tmp61_;
                        _tmp58_ = key_value_renderer_get_key (self);
                        _tmp59_ = key_get_value (_tmp58_);
                        _tmp60_ = g_variant_print (_tmp59_, FALSE);
                        _tmp61_ = _tmp60_;
                        g_object_set (self->priv->text_renderer, "text", _tmp61_, NULL);
                        _g_free0 (_tmp61_);
                        g_object_set ((GtkCellRenderer*) self, "mode", GTK_CELL_RENDERER_MODE_EDITABLE, NULL);
                        break;
                  }
            }
      }
      g_object_notify ((GObject *) self, "key");
}


static GtkCellRenderer* key_value_renderer_get_renderer (KeyValueRenderer* self) {
      GtkCellRenderer* result;
      gboolean _tmp0_ = FALSE;
      Key* _tmp1_ = NULL;
      gboolean _tmp2_;
      Key* _tmp4_ = NULL;
      const gchar* _tmp5_ = NULL;
      const gchar* _tmp6_;
      GQuark _tmp7_;
      static GQuark _tmp7__label0 = 0;
      static GQuark _tmp7__label1 = 0;
      static GQuark _tmp7__label2 = 0;
      static GQuark _tmp7__label3 = 0;
      static GQuark _tmp7__label4 = 0;
      static GQuark _tmp7__label5 = 0;
      static GQuark _tmp7__label6 = 0;
      static GQuark _tmp7__label7 = 0;
      static GQuark _tmp7__label8 = 0;
      static GQuark _tmp7__label9 = 0;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp1_ = key_value_renderer_get_key (self);
      _tmp2_ = key_get_has_schema (_tmp1_);
      if (_tmp2_) {
            Key* _tmp3_ = NULL;
            _tmp3_ = key_value_renderer_get_key (self);
            _tmp0_ = _tmp3_->schema->choices != NULL;
      } else {
            _tmp0_ = FALSE;
      }
      if (_tmp0_) {
            result = (GtkCellRenderer*) self->priv->combo_renderer;
            return result;
      }
      _tmp4_ = key_value_renderer_get_key (self);
      _tmp5_ = key_get_type_string (_tmp4_);
      _tmp6_ = _tmp5_;
      _tmp7_ = (NULL == _tmp6_) ? 0 : g_quark_from_string (_tmp6_);
      if (_tmp7_ == ((0 != _tmp7__label0) ? _tmp7__label0 : (_tmp7__label0 = g_quark_from_static_string ("<enum>")))) {
            switch (0) {
                  default:
                  {
                        result = (GtkCellRenderer*) self->priv->combo_renderer;
                        return result;
                  }
            }
      } else if (_tmp7_ == ((0 != _tmp7__label1) ? _tmp7__label1 : (_tmp7__label1 = g_quark_from_static_string ("b")))) {
            switch (0) {
                  default:
                  {
                        result = (GtkCellRenderer*) self->priv->toggle_renderer;
                        return result;
                  }
            }
      } else if ((((((((_tmp7_ == ((0 != _tmp7__label2) ? _tmp7__label2 : (_tmp7__label2 = g_quark_from_static_string ("y")))) || (_tmp7_ == ((0 != _tmp7__label3) ? _tmp7__label3 : (_tmp7__label3 = g_quark_from_static_string ("n"))))) || (_tmp7_ == ((0 != _tmp7__label4) ? _tmp7__label4 : (_tmp7__label4 = g_quark_from_static_string ("q"))))) || (_tmp7_ == ((0 != _tmp7__label5) ? _tmp7__label5 : (_tmp7__label5 = g_quark_from_static_string ("i"))))) || (_tmp7_ == ((0 != _tmp7__label6) ? _tmp7__label6 : (_tmp7__label6 = g_quark_from_static_string ("u"))))) || (_tmp7_ == ((0 != _tmp7__label7) ? _tmp7__label7 : (_tmp7__label7 = g_quark_from_static_string ("x"))))) || (_tmp7_ == ((0 != _tmp7__label8) ? _tmp7__label8 : (_tmp7__label8 = g_quark_from_static_string ("t"))))) || (_tmp7_ == ((0 != _tmp7__label9) ? _tmp7__label9 : (_tmp7__label9 = g_quark_from_static_string ("d"))))) {
            switch (0) {
                  default:
                  {
                        result = (GtkCellRenderer*) self->priv->spin_renderer;
                        return result;
                  }
            }
      } else {
            switch (0) {
                  default:
                  {
                        result = (GtkCellRenderer*) self->priv->text_renderer;
                        return result;
                  }
            }
      }
}


static void key_value_renderer_set_renderer (KeyValueRenderer* self, GtkCellRenderer* value) {
      g_return_if_fail (self != NULL);
}


static void key_value_renderer_class_init (KeyValueRendererClass * klass) {
      key_value_renderer_parent_class = g_type_class_peek_parent (klass);
      g_type_class_add_private (klass, sizeof (KeyValueRendererPrivate));
      GTK_CELL_RENDERER_CLASS (klass)->get_size = key_value_renderer_real_get_size;
      GTK_CELL_RENDERER_CLASS (klass)->get_preferred_width = key_value_renderer_real_get_preferred_width;
      GTK_CELL_RENDERER_CLASS (klass)->get_preferred_height_for_width = key_value_renderer_real_get_preferred_height_for_width;
      GTK_CELL_RENDERER_CLASS (klass)->get_preferred_height = key_value_renderer_real_get_preferred_height;
      GTK_CELL_RENDERER_CLASS (klass)->get_preferred_width_for_height = key_value_renderer_real_get_preferred_width_for_height;
      GTK_CELL_RENDERER_CLASS (klass)->render = key_value_renderer_real_render;
      GTK_CELL_RENDERER_CLASS (klass)->activate = key_value_renderer_real_activate;
      GTK_CELL_RENDERER_CLASS (klass)->start_editing = key_value_renderer_real_start_editing;
      G_OBJECT_CLASS (klass)->get_property = _vala_key_value_renderer_get_property;
      G_OBJECT_CLASS (klass)->set_property = _vala_key_value_renderer_set_property;
      G_OBJECT_CLASS (klass)->finalize = key_value_renderer_finalize;
      g_object_class_install_property (G_OBJECT_CLASS (klass), KEY_VALUE_RENDERER_KEY, g_param_spec_object ("key", "key", "key", TYPE_KEY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void key_value_renderer_instance_init (KeyValueRenderer * self) {
      self->priv = KEY_VALUE_RENDERER_GET_PRIVATE (self);
}


static void key_value_renderer_finalize (GObject* obj) {
      KeyValueRenderer * self;
      self = KEY_VALUE_RENDERER (obj);
      _g_object_unref0 (self->priv->view);
      _g_object_unref0 (self->priv->text_renderer);
      _g_object_unref0 (self->priv->spin_renderer);
      _g_object_unref0 (self->priv->toggle_renderer);
      _g_object_unref0 (self->priv->combo_renderer);
      _g_object_unref0 (self->priv->_key);
      G_OBJECT_CLASS (key_value_renderer_parent_class)->finalize (obj);
}


GType key_value_renderer_get_type (void) {
      static volatile gsize key_value_renderer_type_id__volatile = 0;
      if (g_once_init_enter (&key_value_renderer_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (KeyValueRendererClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) key_value_renderer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (KeyValueRenderer), 0, (GInstanceInitFunc) key_value_renderer_instance_init, NULL };
            GType key_value_renderer_type_id;
            key_value_renderer_type_id = g_type_register_static (GTK_TYPE_CELL_RENDERER, "KeyValueRenderer", &g_define_type_info, 0);
            g_once_init_leave (&key_value_renderer_type_id__volatile, key_value_renderer_type_id);
      }
      return key_value_renderer_type_id__volatile;
}


static void _vala_key_value_renderer_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
      KeyValueRenderer * self;
      self = KEY_VALUE_RENDERER (object);
      switch (property_id) {
            case KEY_VALUE_RENDERER_KEY:
            g_value_set_object (value, key_value_renderer_get_key (self));
            break;
            default:
            G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
            break;
      }
}


static void _vala_key_value_renderer_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
      KeyValueRenderer * self;
      self = KEY_VALUE_RENDERER (object);
      switch (property_id) {
            case KEY_VALUE_RENDERER_KEY:
            key_value_renderer_set_key (self, g_value_get_object (value));
            break;
            default:
            G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
            break;
      }
}


DConfDirView* dconf_dir_view_construct (GType object_type) {
      DConfDirView * self = NULL;
      GtkCellRendererText* _tmp0_ = NULL;
      GtkCellRendererText* _tmp1_;
      self = (DConfDirView*) g_object_new (object_type, NULL);
      gtk_tree_view_set_headers_visible ((GtkTreeView*) self, FALSE);
      _tmp0_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
      _tmp1_ = g_object_ref_sink (_tmp0_);
      gtk_tree_view_insert_column_with_attributes ((GtkTreeView*) self, -1, "Key", (GtkCellRenderer*) _tmp1_, "text", 1, NULL, NULL);
      _g_object_unref0 (_tmp1_);
      return self;
}


DConfDirView* dconf_dir_view_new (void) {
      return dconf_dir_view_construct (TYPE_DCONF_DIR_VIEW);
}


static void dconf_dir_view_class_init (DConfDirViewClass * klass) {
      dconf_dir_view_parent_class = g_type_class_peek_parent (klass);
}


static void dconf_dir_view_instance_init (DConfDirView * self) {
}


GType dconf_dir_view_get_type (void) {
      static volatile gsize dconf_dir_view_type_id__volatile = 0;
      if (g_once_init_enter (&dconf_dir_view_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (DConfDirViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dconf_dir_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DConfDirView), 0, (GInstanceInitFunc) dconf_dir_view_instance_init, NULL };
            GType dconf_dir_view_type_id;
            dconf_dir_view_type_id = g_type_register_static (GTK_TYPE_TREE_VIEW, "DConfDirView", &g_define_type_info, 0);
            g_once_init_leave (&dconf_dir_view_type_id__volatile, dconf_dir_view_type_id);
      }
      return dconf_dir_view_type_id__volatile;
}


DConfKeyView* dconf_key_view_construct (GType object_type) {
      DConfKeyView * self = NULL;
      GtkCellRendererText* _tmp0_ = NULL;
      GtkCellRendererText* _tmp1_;
      GtkTreeViewColumn* _tmp2_ = NULL;
      GtkTreeViewColumn* _tmp3_;
      GtkTreeViewColumn* column;
      KeyValueRenderer* _tmp4_ = NULL;
      KeyValueRenderer* _tmp5_;
      self = (DConfKeyView*) g_object_new (object_type, NULL);
      _tmp0_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
      _tmp1_ = g_object_ref_sink (_tmp0_);
      _tmp2_ = gtk_tree_view_column_new_with_attributes ("Name", (GtkCellRenderer*) _tmp1_, "text", 1, "weight", 4, NULL, NULL);
      _tmp3_ = g_object_ref_sink (_tmp2_);
      _g_object_unref0 (_tmp1_);
      column = _tmp3_;
      gtk_tree_view_append_column ((GtkTreeView*) self, column);
      _tmp4_ = key_value_renderer_new (self);
      _tmp5_ = g_object_ref_sink (_tmp4_);
      gtk_tree_view_insert_column_with_attributes ((GtkTreeView*) self, -1, "Value", (GtkCellRenderer*) _tmp5_, "key", 0, NULL, NULL);
      _g_object_unref0 (_tmp5_);
      _g_object_unref0 (column);
      return self;
}


DConfKeyView* dconf_key_view_new (void) {
      return dconf_key_view_construct (TYPE_DCONF_KEY_VIEW);
}


static void dconf_key_view_class_init (DConfKeyViewClass * klass) {
      dconf_key_view_parent_class = g_type_class_peek_parent (klass);
}


static void dconf_key_view_instance_init (DConfKeyView * self) {
}


GType dconf_key_view_get_type (void) {
      static volatile gsize dconf_key_view_type_id__volatile = 0;
      if (g_once_init_enter (&dconf_key_view_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (DConfKeyViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dconf_key_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DConfKeyView), 0, (GInstanceInitFunc) dconf_key_view_instance_init, NULL };
            GType dconf_key_view_type_id;
            dconf_key_view_type_id = g_type_register_static (GTK_TYPE_TREE_VIEW, "DConfKeyView", &g_define_type_info, 0);
            g_once_init_leave (&dconf_key_view_type_id__volatile, dconf_key_view_type_id);
      }
      return dconf_key_view_type_id__volatile;
}




Generated by  Doxygen 1.6.0   Back to index