Ejemplo n.º 1
0
		public void GetCurrentValue (ref GLib.Value value)
		{
			if (rangeValueProvider != null) {
				value = new GLib.Value (rangeValueProvider.Value);
				return;
			}
		}
Ejemplo n.º 2
0
        /* View Methods */
        public void BuildOrder(StockItem s)
        {
            String selected = s.StockCode;

            //Clear & populate list
            combobox2.Clear ();
            CellRendererText cell = new CellRendererText ();
            combobox2.PackStart (cell, false);
            combobox2.AddAttribute (cell, "text", 0);
            ListStore store = new ListStore (typeof(string));
            combobox2.Model = store;

            foreach (KeyValuePair<String, StockItem> kv in stock_list) {
                store.AppendValues (kv.Value.StockCode);
            }

            //Make selected item active
            combobox2.Model = store;
            TreeIter iter;
            combobox2.Model.GetIterFirst (out iter);
            do {
                GLib.Value thisRow = new GLib.Value ();
                combobox2.Model.GetValue (iter, 0, ref thisRow);
                if ((thisRow.Val as string).Equals (selected)) {
                    combobox2.SetActiveIter (iter);
                    break;
                }
            } while (combobox2.Model.IterNext (ref iter));

            //Refresh order information
            OrderData ();
        }
Ejemplo n.º 3
0
		public GLib.Value ChildGetProperty (Gtk.Widget child, string property_name) {
			GLib.Value value = new GLib.Value ();

			IntPtr native = GLib.Marshaller.StringToPtrGStrdup (property_name);
			gtksharp_container_child_get_property (Handle, child.Handle, native, ref value);
			GLib.Marshaller.Free (native);
			return value;
		}
Ejemplo n.º 4
0
 public void AddStringValue (TagMergeMode mode, string tag, string value)
 {
     GLib.Value val = new GLib.Value (GLib.GType.String);
     val.Val = value;
     IntPtr native_tag = GLib.Marshaller.StringToPtrGStrdup (tag);
     gst_tag_list_add_value (raw, mode, native_tag, ref val);
     GLib.Marshaller.Free (native_tag);
 }
 //[DllImport ("libgobject-2.0.so.0")]
 //private static extern void g_object_get_property (IntPtr gobject, IntPtr property_name, ref GLib.Value value);
 public GLib.Value GetProperty(string name)
 {
     GLib.Value val = new GLib.Value ();
     IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
     g_object_set_property (raw, native_name, ref val);
     GLib.Marshaller.Free (native_name);
     return val;
 }
Ejemplo n.º 6
0
 public string GetStringProperty (string name)
 {
     GLib.Value val = new GLib.Value ();
     val.Init (GLib.GType.String);
     IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
     g_object_get_property (raw, native_name, ref val);
     GLib.Marshaller.Free (native_name);
     return val.Val as string;
 }
Ejemplo n.º 7
0
 public IntPtr GetProperty (string name)
 {
     GLib.Value val = new GLib.Value ();
     val.Init (GLib.GType.Object);
     IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
     g_object_get_property (raw, native_name, ref val);
     GLib.Marshaller.Free (native_name);
     return ((GLib.Object)(val.Val)).Handle;
 }
Ejemplo n.º 8
0
		public Gtk3FontChooserDialog (string title, Gtk.Window parent = null) : base (IntPtr.Zero)
		{
			IntPtr ptitle = GLib.Marshaller.StringToPtrGStrdup (title);
			Raw = gtk_font_chooser_dialog_new(ptitle, parent == null ? IntPtr.Zero : parent.Handle);
			GLib.Marshaller.Free (ptitle);

			using (GLib.Value val = new GLib.Value (true)) {
				SetProperty ("show-preview-entry", val);
			}
		}
Ejemplo n.º 9
0
		public override void GetValue (Gtk.TreeIter iter, int column, ref GLib.Value val)
		{
			Node node = (Node) iter;
			if (column == 0)
				val = new GLib.Value (node.Name);
			else if (column == 1) {
				double percent = (double) node.Value / (double) total_hits * 100.0;
				val = new GLib.Value (String.Format ("{0,5:F2}%", percent));
			}
		}		
Ejemplo n.º 10
0
            public BaconResize (Gtk.Window window) : base (IntPtr.Zero)
            {
                this.window = window;

                GLib.Value window_val = new GLib.Value (window);
                CreateNativeObject (
                    new string [] { "video-widget" },
                    new GLib.Value [] { window_val }
                );
                window_val.Dispose ();
            }
Ejemplo n.º 11
0
		private void InternalChanged ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 12
0
		protected virtual void OnChangedChannels ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 13
0
		protected virtual void OnPluginLoaded (Ethos.PluginInfo plugin_info)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (plugin_info);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 14
0
		protected virtual void OnSubworldRemoved (RC.World subworld)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (subworld);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 15
0
		protected virtual void OnPackage (PackageKit.PackageObj obj)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (obj);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 16
0
		protected virtual void OnMessage (PackageKit.MessageEnum message, string details)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (message);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (details);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 17
0
		public HScale (double min, double max, double step) : base (IntPtr.Zero)
		{
			if (GetType() != typeof (HScale)) {
				Adjustment adj = new Adjustment (min, min, max, step, 10 * step, 0);
				string[] names = new string [1];
				GLib.Value[] vals = new GLib.Value [1];
				names [0] = "adjustment";
				vals [0] = new GLib.Value (adj);
				CreateNativeObject (names, vals);
				vals [0].Dispose ();
				return;
			}

			Raw = gtk_hscale_new_with_range (min, max, step);
		}
Ejemplo n.º 18
0
		protected virtual void OnProgress (uint p0, string p1)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (p0);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (p1);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 19
0
 public RadioToolButton(GLib.SList group, string stock_id)
     : base(IntPtr.Zero)
 {
     if (GetType () != typeof (RadioToolButton)) {
         GLib.Value[] vals = new GLib.Value [1];
         string[] names = { "stock_id" };
         vals [0] = new GLib.Value (stock_id);
         CreateNativeObject (names, vals);
         Group = group;
         return;
     }
     IntPtr stock_id_as_native = GLib.Marshaller.StringToPtrGStrdup (stock_id);
     Raw = gtk_radio_tool_button_new_from_stock(group == null ? IntPtr.Zero : group.Handle, stock_id_as_native);
     GLib.Marshaller.Free (stock_id_as_native);
 }
Ejemplo n.º 20
0
		public Button (string stock_id) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (Button)) {
				GLib.Value[] vals = new GLib.Value [2];
				string[] names = new string [2];
				names [0] = "label";
				vals [0] = new GLib.Value (stock_id);
				names [1] = "use_stock";
				vals [1] = new GLib.Value (true);
				CreateNativeObject (names, vals);
				return;
			}
			IntPtr native = GLib.Marshaller.StringToPtrGStrdup (stock_id);
			Raw = gtk_button_new_from_stock (native);
			GLib.Marshaller.Free (native);
		}
Ejemplo n.º 21
0
		public void TestUInt ()
		{
			GLib.Value val = new GLib.Value ((uint)42);
			SetProperty ("my_uint", val);
			val.Dispose ();
			if (MyUInt != 42) {
				Console.Error.WriteLine ("uint Property setter did not run.");
				Environment.Exit (1);
			}
			GLib.Value val2 = GetProperty ("my_uint");
			if ((uint)val2.Val != 42) {
				Console.Error.WriteLine ("uint Property set/get roundtrip failed.");
				Environment.Exit (1);
			}
			Console.WriteLine ("uint succeeded.");
		}
Ejemplo n.º 22
0
		protected virtual void OnErrorCode (PackageKit.Client client, PackageKit.ErrorCodeEnum code, string details)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
			GLib.Value[] vals = new GLib.Value [4];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (client);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (code);
			inst_and_params.Append (vals [2]);
			vals [3] = new GLib.Value (details);
			inst_and_params.Append (vals [3]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 23
0
        public TreeIter InsertValues(int location,
					      Array values)
        {
            TreeIter iter = base.Insert (location);

            int col = 0;
            foreach (object value in values) {
                if (value != null) {
                    GLib.Value val = new GLib.Value (value);
                    base.SetValue (iter, col, val);
                    val.Dispose ();
                }
                col++;
            }

            return iter;
        }
Ejemplo n.º 24
0
		protected virtual void OnChanged (GLib.File file, GLib.File other_file, GLib.FileMonitorEvent event_type)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
			GLib.Value[] vals = new GLib.Value [4];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (file);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (other_file);
			inst_and_params.Append (vals [2]);
			vals [3] = new GLib.Value (event_type);
			inst_and_params.Append (vals [3]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 25
0
        public static void Main(string[] args)
        {
            Midgard.Lib.Init ();

            // Create midgard config connection
            Config cfg = new Config ();
            cfg.DatabaseType = "SQLite";
            cfg.DatabaseName = "midgard_mono_sample";

            Connection mgd = new Connection ();
            if (!mgd.OpenConfig (cfg)) {
                Console.WriteLine ("Connection failed!");
                return;
            }

            GLib.Value val = new GLib.Value("");
            Midgard.Object john = new Midgard.Object (mgd, "midgard_person", val);
            GLib.Value name = new GLib.Value ("John");
            john.SetSchemaProperty ("username", name);

            if (!john.Create()) {
                Console.WriteLine ("Couldn't create person object. %s", mgd.ErrorString);
            }
            else {
                GLib.Value gval = john.GetSchemaProperty ("guid");
                Console.Write ("Created new person object." + (string)gval.Val.ToString() + "\n");
            }

            val = new GLib.Value("");
            Midgard.Object alice = new Midgard.Object (mgd, "midgard_person", val);
            name = new GLib.Value ("Alice");
            alice.SetSchemaProperty ("username", name);

            if (!alice.Create()) {
                Console.WriteLine ("Couldn't create person object. %s", mgd.ErrorString);
            }
            else {
                GLib.Value gval = alice.GetSchemaProperty ("guid");
                Console.Write ("Created new person object." + (string)gval.Val + "\n");
            }

            Console.WriteLine (john);
        }
Ejemplo n.º 26
0
		public static int Main (string[] args)
		{
			GLib.GType.Init ();
			TestObject obj = new TestObject ();
			GLib.Value val = new GLib.Value (42);
			obj.SetProperty ("my_prop", val);
			val.Dispose ();
			if (obj.MyProp != 42) {
				Console.Error.WriteLine ("Property setter did not run.");
				return 1;
			}
			GLib.Value val2 = obj.GetProperty ("my_prop");
			if ((int)val2.Val != 42) {
				Console.Error.WriteLine ("Property set/get roundtrip failed.");
				return 1;
			}
			Console.WriteLine ("Round trip succeeded.");
			return 0;
		}
Ejemplo n.º 27
0
		public void GetCurrentValue (ref GLib.Value value)
		{
			if (rangeValueProvider != null) {
				value = new GLib.Value (rangeValueProvider.Value);
				return;
			}
			
			if (parentScrollProvider == null)
				GetScrollProviderFromParent ();
			
			//TODO: This double validation will be removed in future versions because
			//if your SWF.ScrollBar.Parent doesn't support IScrollProvider then your
			//ScrollBar is not ScrollBar is Pane!!
			if (parentScrollProvider == null) {
				Log.Warn ("ScrollBar: Provider does not implement IValueProvider.");
				value = new GLib.Value ((double)0);
			}
			else
			{
				value = new GLib.Value (orientation == OrientationType.Vertical? parentScrollProvider.VerticalScrollPercent: parentScrollProvider.HorizontalScrollPercent);
			}
		}
Ejemplo n.º 28
0
        private void IconDataFunc(TreeViewColumn column, 
					   CellRenderer renderer,
					   TreeModel model,
					   TreeIter iter)
        {
            GLib.Value value = new GLib.Value ();
            Model.GetValue (iter, IdColumn, ref value);
            uint tag_id = (uint) value;
            Tag tag = TagStore.Get (tag_id) as Tag;

            if (tag.SizedIcon != null) {
                Cms.Profile screen_profile;
                if (FSpot.ColorManagement.Profiles.TryGetValue (Preferences.Get<string> (Preferences.COLOR_MANAGEMENT_DISPLAY_PROFILE), out screen_profile)) {

                    Gdk.Pixbuf temp = tag.SizedIcon.Copy();
                    FSpot.ColorManagement.ApplyProfile (temp, screen_profile);
                    (renderer as CellRendererPixbuf).Pixbuf = temp;
                } else
                    (renderer as CellRendererPixbuf).Pixbuf = tag.SizedIcon;
            } else
                (renderer as CellRendererPixbuf).Pixbuf = empty_pixbuf;
        }
Ejemplo n.º 29
0
		public RadioToolButton (RadioToolButton[] group, string stock_id) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (RadioToolButton)) {
				GLib.Value[] vals = new GLib.Value [1];
				string[] names = { "stock_id" };
				vals [0] = new GLib.Value (stock_id);
				CreateNativeObject (names, vals);
				Group = group;
				return;
			}
			IntPtr stock_id_as_native = GLib.Marshaller.StringToPtrGStrdup (stock_id);
			IntPtr native_group = IntPtr.Zero;
			if (group != null) {
				GLib.List list = new GLib.List(IntPtr.Zero);
				foreach (RadioToolButton item in group) {
					list.Append (item.Handle);
				}
				native_group = list.Handle;
			}
			Raw = gtk_radio_tool_button_new_from_stock(native_group, stock_id_as_native);
			GLib.Marshaller.Free (stock_id_as_native);
		}
Ejemplo n.º 30
0
		public Dialog (string title, Gtk.Window parent, Gtk.DialogFlags flags, params object[] button_data) : base(IntPtr.Zero)
		{
			if (GetType() != typeof (Dialog)) {
				GLib.Value[] vals = new GLib.Value [1];
				string[] names = new string [1];
				names [0] = "title";
				vals [0] = new GLib.Value (title);
				CreateNativeObject (names, vals);
				TransientFor = parent;
				if ((flags & DialogFlags.Modal) > 0)
					Modal = true;
				if ((flags & DialogFlags.DestroyWithParent) > 0)
					DestroyWithParent = true;
			} else {
				IntPtr native = GLib.Marshaller.StringToPtrGStrdup (title);
				Raw = gtk_dialog_new_with_buttons (native, parent == null ? IntPtr.Zero : parent.Handle, (int) flags, IntPtr.Zero);
				GLib.Marshaller.Free (native);
			}

			for (int i = 0; i < button_data.Length - 1; i += 2)
				AddButton ((string) button_data [i], (int) button_data [i + 1]);
		}
Ejemplo n.º 31
0
 public void Append(GLib.Value val)
 {
     g_value_array_append(Handle, ref val);
 }
Ejemplo n.º 32
0
 static extern IntPtr gtk_widget_style_get_property(IntPtr inst, IntPtr property_name, ref GLib.Value value);
Ejemplo n.º 33
0
 static extern void g_value_init(ref GLib.Value val, IntPtr gtype);
Ejemplo n.º 34
0
 static extern void g_value_unset(ref GLib.Value val);
Ejemplo n.º 35
0
 static extern void gtksharp_container_child_get_property(IntPtr container, IntPtr child, IntPtr property, ref GLib.Value value);
Ejemplo n.º 36
0
 static extern void g_object_set_property(IntPtr obj, IntPtr name, ref GLib.Value val);
Ejemplo n.º 37
0
 private void OnTagFound(IntPtr player, string tagName, ref GLib.Value value)
 {
     OnTagFound(ProcessNativeTagResult(tagName, ref value));
 }
Ejemplo n.º 38
0
 public void Prepend(GLib.Value val)
 {
     g_value_array_prepend(Handle, ref val);
 }
Ejemplo n.º 39
0
 static extern void g_value_array_prepend(IntPtr raw, ref GLib.Value val);
Ejemplo n.º 40
0
 static extern IntPtr gtksharp_value_create_from_type_name(ref GLib.Value val, IntPtr type_name);
Ejemplo n.º 41
0
 public void GetCurrentValue(ref GLib.Value value)
 {
     value = new GLib.Value(rangeValueProvider.Value);
 }
Ejemplo n.º 42
0
 public void GetValue(TreeIter iter, int column, ref GLib.Value value)
 {
     value = new GLib.Value(NodeFromIter(iter));
 }
Ejemplo n.º 43
0
 protected virtual void OnNotifyMeta(string key, GLib.Value value)
 {
     InternalNotifyMeta(key, value);
 }
Ejemplo n.º 44
0
 public void GetMinimumIncrement(ref GLib.Value value)
 {
     value = new GLib.Value(rangeValueProvider.SmallChange);
 }
Ejemplo n.º 45
0
 public abstract void GetValue(TreeIter iter, int column, ref GLib.Value val);
Ejemplo n.º 46
0
 static extern void g_signal_emitv(IntPtr instance_and_params, uint signal_id, uint gquark_detail, ref GLib.Value return_value);
Ejemplo n.º 47
0
        private bool OnBusMessage(Bus bus, Message msg)
        {
            switch (msg.Type)
            {
            case MessageType.Tag:
                TagList tag_list = msg.ParseTag();

                foreach (var name in tag_list.Tags)
                {
                    if (name == "beats-per-minute")
                    {
                        if (tag_list.GetTagSize(name) < 1)
                        {
                            continue;
                        }
                        tag_list.Foreach(delegate(TagList list, string tagname) {
                            for (uint i = 0; i < tag_list.GetTagSize(tagname); i++)
                            {
                                GLib.Value val = tag_list.GetValueIndex(tagname, i);
                                if (val.Val is double)
                                {
                                    double bpm  = (double)val;
                                    int rounded = (int)Math.Round(bpm);
                                    if (!bpm_histogram.ContainsKey(rounded))
                                    {
                                        bpm_histogram [rounded] = 1;
                                    }
                                    else
                                    {
                                        bpm_histogram [rounded]++;
                                    }
                                }
                                val.Dispose();
                            }
                        });
                    }
                }
                break;

            case MessageType.Error:
                string          debug;
                GLib.GException error;
                msg.ParseError(out error, out debug);

                IsDetecting = false;
                Log.ErrorFormat("BPM Detection error: {0}", error.Message);
                break;

            case MessageType.Eos:
                IsDetecting = false;
                pipeline.SetState(State.Null);

                SafeUri uri = current_uri;
                int     best_bpm = -1, best_bpm_count = 0;
                foreach (int bpm in bpm_histogram.Keys)
                {
                    int count = bpm_histogram[bpm];
                    if (count > best_bpm_count)
                    {
                        best_bpm_count = count;
                        best_bpm       = bpm;
                    }
                }

                Reset();

                var handler = FileFinished;
                if (handler != null)
                {
                    handler(this, new BpmEventArgs(uri, best_bpm));
                }

                break;
            }

            return(true);
        }
Ejemplo n.º 48
0
 public void GetMaximumValue(ref GLib.Value value)
 {
     value = new GLib.Value(rangeValueProvider.Maximum);
 }
Ejemplo n.º 49
0
 protected static extern void g_signal_chain_from_overridden(IntPtr args, ref GLib.Value retval);
Ejemplo n.º 50
0
 public static void SetCellForegroundSet(this Gtk.CellRendererText cell, bool value)
 {
     GLib.Value val = new GLib.Value(value);
     cell.SetProperty("foreground-set", val);
     val.Dispose();
 }
Ejemplo n.º 51
0
 public static bool DeserializeWithPspec(out GLib.Value dest, string src)
 {
     return(DeserializeWithPspec(out dest, src, IntPtr.Zero));
 }
 static extern IntPtr glibsharp_value_get_boxed(ref GLib.Value val);
Ejemplo n.º 53
0
 public static void SetProperty(this GLib.Object obj, string name, GLib.Value value)
 {
     glibObjectSetProp.Invoke(obj, new object[] { name, value });
 }
Ejemplo n.º 54
0
 protected virtual void OnGetChildProperty(Gtk.Widget child, uint property_id, GLib.Value value, IntPtr pspec)
 {
     InternalGetChildProperty(child, property_id, value, pspec);
 }
 static extern void glibsharp_value_set_boxed(ref GLib.Value val, ref GtkSourceView.SourceTagStyle boxed);
Ejemplo n.º 56
0
        public bool GetStyleProperty(Gtk.WidgetPath path, Gtk.StateFlags state, IntPtr pspec, GLib.Value value)
        {
            IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc(value);
            bool   raw_ret      = gtk_style_provider_get_style_property(Handle, path == null ? IntPtr.Zero : path.Handle, (int)state, pspec, native_value);
            bool   ret          = raw_ret;

            Marshal.FreeHGlobal(native_value);
            return(ret);
        }
Ejemplo n.º 57
0
 static extern void g_value_array_insert(IntPtr raw, uint idx, ref GLib.Value val);
Ejemplo n.º 58
0
 public void SetValue(Gtk.TreeIter iter, int column, object value)
 {
     GLib.Value val = new GLib.Value(value);
     SetValue(iter, column, val);
     val.Dispose();
 }
Ejemplo n.º 59
0
 public void Insert(uint idx, GLib.Value val)
 {
     g_value_array_insert(Handle, idx, ref val);
 }
Ejemplo n.º 60
0
 static extern IntPtr gtksharp_value_create_from_type_and_property(ref GLib.Value val, IntPtr gtype, IntPtr name);