From ecc2fa29fa9fc8d86f399910c786ef331d47bc41 Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Sun, 31 Jul 2011 15:29:48 +0200 Subject: [PATCH] Gtk.Settings: Add all properties as a fixup In gtksettings.c, properties are installed using a custom function. So a few properties were added as custom code. Move those as a fixup, and add all the other properties too. The only missing properties now are gtk-im-preedit-style and gtk-im-status-style, because their type is hidden. --- gtk/Gtk.metadata | 68 +++++++++++++++++++++ gtk/Settings.custom | 141 -------------------------------------------- 2 files changed, 68 insertions(+), 141 deletions(-) diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index b9932f131..25493197e 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -519,6 +519,74 @@ out GetVScrollbar void + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 GtkWidget* 1 diff --git a/gtk/Settings.custom b/gtk/Settings.custom index 9c8850c97..877b22569 100644 --- a/gtk/Settings.custom +++ b/gtk/Settings.custom @@ -27,144 +27,3 @@ return IntPtr.Zero; } } - - public bool CursorBlink { - get { - GLib.Value val = GetProperty ("gtk-cursor-blink"); - bool ret = (bool) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-cursor-blink", val); - val.Dispose (); - } - } - - public int CursorBlinkTime { - get { - GLib.Value val = GetProperty ("gtk-cursor-blink-time"); - int ret = (int) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-cursor-blink-time", val); - val.Dispose (); - } - } - - public int DndDragThreshold { - get { - GLib.Value val = GetProperty ("gtk-dnd-drag-threshold"); - int ret = (int) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-dnd-drag-threshold", val); - val.Dispose (); - } - } - - public int DoubleClickTime { - get { - GLib.Value val = GetProperty ("gtk-double-click-time"); - int ret = (int) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-double-click-time", val); - val.Dispose (); - } - } - - public string FontName { - get { - GLib.Value val = GetProperty ("gtk-font-name"); - string ret = (string) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-font-name", val); - val.Dispose (); - } - } - - public string IconSizes { - get { - GLib.Value val = GetProperty ("gtk-icon-sizes"); - string ret = (string) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-icon-sizes", val); - val.Dispose (); - } - } - - public string KeyThemeName { - get { - GLib.Value val = GetProperty ("gtk-key-theme-name"); - string ret = (string) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-key-theme-name", val); - val.Dispose (); - } - } - - public string MenuBarAccel { - get { - GLib.Value val = GetProperty ("gtk-menu-bar-accel"); - string ret = (string) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-menu-bar-accel", val); - val.Dispose (); - } - } - - public bool SplitCursor { - get { - GLib.Value val = GetProperty ("gtk-split-cursor"); - bool ret = (bool) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-split-cursor", val); - val.Dispose (); - } - } - - public string ThemeName { - get { - GLib.Value val = GetProperty ("gtk-theme-name"); - string ret = (string) val; - val.Dispose (); - return ret; - } - set { - GLib.Value val = new GLib.Value(value); - SetProperty("gtk-theme-name", val); - val.Dispose (); - } - } -