Esempio n. 1
0
        public static bool LookupProperty(string property_name, Gtk.StylePropertyParser parse_func, IntPtr pspec)
        {
            IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup(property_name);

            GtkSharp.StylePropertyParserWrapper parse_func_wrapper = new GtkSharp.StylePropertyParserWrapper(parse_func);
            bool raw_ret = gtk_style_properties_lookup_property(native_property_name, parse_func_wrapper.NativeDelegate, pspec);
            bool ret     = raw_ret;

            GLib.Marshaller.Free(native_property_name);
            return(ret);
        }
Esempio n. 2
0
 public static void RegisterProperty(Gtk.StylePropertyParser parse_func, IntPtr pspec)
 {
     GtkSharp.StylePropertyParserWrapper parse_func_wrapper = new GtkSharp.StylePropertyParserWrapper(parse_func);
     gtk_style_properties_register_property(parse_func_wrapper.NativeDelegate, pspec);
 }
Esempio n. 3
0
		public static void RegisterProperty(Gtk.StylePropertyParser parse_func, IntPtr pspec) {
			GtkSharp.StylePropertyParserWrapper parse_func_wrapper = new GtkSharp.StylePropertyParserWrapper (parse_func);
			gtk_style_properties_register_property(parse_func_wrapper.NativeDelegate, pspec);
		}
Esempio n. 4
0
		public static bool LookupProperty(string property_name, Gtk.StylePropertyParser parse_func, IntPtr pspec) {
			IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
			GtkSharp.StylePropertyParserWrapper parse_func_wrapper = new GtkSharp.StylePropertyParserWrapper (parse_func);
			bool raw_ret = gtk_style_properties_lookup_property(native_property_name, parse_func_wrapper.NativeDelegate, pspec);
			bool ret = raw_ret;
			GLib.Marshaller.Free (native_property_name);
			return ret;
		}