public WindowMenuItem(Wnck.Window window, string icon) : base(window.Name, icon) { Bold = window.NeedsAttention(); this.window = window; Clicked += HandleClicked; Mnemonic = null; }
public static Gtk.Widget CreateWindowActionMenu(Wnck.Window window) { IntPtr raw_ret = wnck_create_window_action_menu(window == null ? IntPtr.Zero : window.Handle); Gtk.Widget ret = GLib.Object.GetObject(raw_ret) as Gtk.Widget; return(ret); }
public static Wnck.Window Get(ulong xwindow) { IntPtr raw_ret = wnck_window_get(new UIntPtr(xwindow)); Wnck.Window ret = GLib.Object.GetObject(raw_ret) as Wnck.Window; return(ret); }
public WindowMenuItem (Wnck.Window window, string icon) : base(window.Name, icon) { Bold = window.NeedsAttention (); this.window = window; Clicked += HandleClicked; Mnemonic = null; }
protected virtual void OnWindowClosed(Wnck.Window window) { GLib.Value ret = GLib.Value.Empty; GLib.ValueArray inst_and_params = new GLib.ValueArray(2); using (var val0 = new GLib.Value(this)) { inst_and_params.Append(val0); using (var val1 = new GLib.Value(window)) { inst_and_params.Append(val1); g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret); } } }
public ActionMenu(Wnck.Window window) : base(IntPtr.Zero) { if (GetType() != typeof(ActionMenu)) { var vals = new GLib.Value[1]; var names = new IntPtr[1]; var param_count = 0; if (window != null) { names[param_count] = GLib.Marshaller.StringToPtrGStrdup("window"); vals[param_count++] = new GLib.Value(window); } CreateNativeObject(names, vals, param_count); return; } owned = true; Raw = wnck_action_menu_new(window == null ? IntPtr.Zero : window.Handle); }
public WindowMenuItem(Wnck.Window window, Pixbuf icon) : this(window, "") { ForcePixbuf = icon; }