void HandleNotifyHandler(object o, GLib.NotifyArgs args) { if (!settingSize && sizesLoaded) { relativeSplitSizes = GetRelativeSplitSizes().ToList(); } }
void LabelWidgetChanged(object obj, GLib.NotifyArgs args) { if (!IsDisposed && frame.LabelWidget != null && !(frame.LabelWidget is Stetic.Placeholder)) { ObjectWrapper.Create(proj, frame.LabelWidget); } }
void OnColumnWidthChanged(object o, GLib.NotifyArgs args) { if (!columnSizesUpdating && allowStoreColumnSizes) { StoreColumnSizes(); } }
private void ParentActiveNotification(object o, GLib.NotifyArgs args) { if (parent.IsActive) { Hide(); parent.RemoveNotification("is-active", ParentActiveNotification); } }
private void OnLocationChanged(object source, GLib.NotifyArgs args) { int x; int y; WrappedObject.GetLocation(out x, out y); Allocation.X = x; Allocation.Y = y; }
private void HandleIdChanged(object source, GLib.NotifyArgs args) { Wrappers.Wrapper wrapped = Wrappers.Wrapper.Wrap((Cdn.Object)source); Gtk.MenuItem item = d_map[wrapped].Item; item.Remove(item.Child); Gtk.Label lbl = new Gtk.Label(wrapped.Id.Replace("_", "__")); lbl.Show(); item.Add(lbl); }
internal void HandlePopupShownChanged(object o, GLib.NotifyArgs args) { if (Handler.Control.PopupShown) { Handler.Callback.OnDropDownOpening(Handler.Widget, EventArgs.Empty); } else { Handler.Callback.OnDropDownClosed(Handler.Widget, EventArgs.Empty); } }
void PositionChanged(object o, GLib.NotifyArgs args) { if (!Widget.Loaded || suppressSplitterMoved > 0) { return; } // keep track of the desired position (for removing/re-adding/resizing the control) UpdateRelative(); EnsurePosition(); Callback.OnPositionChanged(Widget, EventArgs.Empty); }
private void OnFilterChanged(object o, GLib.NotifyArgs args) { FileChooserDialog fcd = (FileChooserDialog)o; // find the FormatDescriptor FormatDescriptor format_desc = PintaCore.System.ImageFormats.Formats.Single(f => f.Filter == fcd.Filter); // adjust the filename var p = fcd.Filename; p = Path.ChangeExtension(Path.GetFileName(p), format_desc.Extensions[0]); fcd.CurrentName = p; }
private void ParentActiveNotification(object o, GLib.NotifyArgs args) { // If our parent window is ever somehow activated while we are // visible, this will ensure we merge back into the parent if (parent.IsActive) { parent.GdkWindow.SkipPagerHint = false; parent.GdkWindow.SkipTaskbarHint = false; parent.RemoveNotification("is-active", ParentActiveNotification); } else { parent.GdkWindow.SkipPagerHint = true; parent.GdkWindow.SkipTaskbarHint = true; } }
void ExpansionChanged(object obj, GLib.NotifyArgs args) { Gtk.Expander exp = obj as Gtk.Expander; int ind = lines.IndexOf(exp); if (ind == -1) { return; } ind++; while (ind < lines.Count && !(lines[ind] is Gtk.Expander)) { if (lines[ind] is Widget) { Widget w = (Widget)lines[ind]; if (exp.Expanded) { w.Show(); } else { w.Hide(); } } else if (lines[ind] is Pair) { Pair p = (Pair)lines[ind]; if (exp.Expanded) { p.Label.Show(); p.Editor.Show(); } else { p.Label.Hide(); p.Editor.Hide(); } } ind++; } QueueDraw(); }
private void OnCapsSet(object o, GLib.NotifyArgs args) { Structure s = null; int width, height, fps_n, fps_d, par_n, par_d; Caps caps = ((Pad)o).CurrentCaps; width = height = fps_n = fps_d = 0; if (caps == null) { return; } /* Get video decoder caps */ s = caps.GetStructure(0); if (s != null) { /* We need at least width/height and framerate */ if (!(s.HasField("framerate") && s.HasField("width") && s.HasField("height"))) { return; } Fraction f = new Fraction(s.GetValue("framerate")); fps_n = f.Numerator; fps_d = f.Denominator; GLib.Value val; width = (int)s.GetValue("width"); height = (int)s.GetValue("height"); /* Get the PAR if available */ val = s.GetValue("pixel-aspect-ratio"); if (!val.Equals(GLib.Value.Empty)) { Fraction par = new Fraction(val); par_n = par.Numerator; par_d = par.Denominator; } else /* Square pixels */ { par_n = 1; par_d = 1; } /* Notify PlayerEngine if a callback was set */ RaiseVideoGeometry(width, height, fps_n, fps_d, par_n, par_d); } }
private void OnSourceChanged(object o, GLib.NotifyArgs args) { if (Device == null) { return; } var playbin = o as Element; var dvd_src = GetDvdSource(playbin); if (dvd_src == null) { return; } // dvd source elements should always have this property dvd_src ["device"] = Device; Log.DebugFormat("dvd: setting device property on source ({0})", Device); }
private void OnFilterChanged(object o, GLib.NotifyArgs args) { FileChooserDialog fcd = (FileChooserDialog)o; // Ensure that the file filter is never blank. if (fcd.Filter == null) { fcd.Filter = PintaCore.System.ImageFormats.GetDefaultSaveFormat().Filter; return; } // find the FormatDescriptor FormatDescriptor format_desc = PintaCore.System.ImageFormats.Formats.Single(f => f.Filter == fcd.Filter); // adjust the filename var p = fcd.Filename; p = Path.ChangeExtension(Path.GetFileName(p), format_desc.Extensions[0]); fcd.CurrentName = p; }
void NotifyHandler(object obj, GLib.NotifyArgs args) { if (Loading) { return; } // Translate gtk names into descriptor names. foreach (ItemGroup group in ClassDescriptor.ItemGroups) { foreach (ItemDescriptor item in group) { TypedPropertyDescriptor prop = item as TypedPropertyDescriptor; if (prop != null && prop.GladeName == args.Property) { EmitNotify(prop.Name); return; } } } }
private void OnSourceChanged(object o, GLib.NotifyArgs args) { if (Device == null) { return; } var playbin = o as Element; var cdda_src = GetCddaSource(playbin); if (cdda_src == null) { return; } // CddaBaseSrc elements should always have this property Log.DebugFormat("cdda: setting device property on source ({0})", Device); cdda_src ["device"] = Device; // If the GstCddaBaseSrc is cdparanoia, it will have this property, so set it try { cdda_src ["paranoia-mode"] = 0; } catch (Gst.PropertyNotFoundException) { } }
void OnNotifyPosition(object sender, GLib.NotifyArgs a) { positionChanged = true; }
void AdjustmentNotifyHandler (object obj, GLib.NotifyArgs args) { EmitNotify (args.Property); }
private void NotifyAnnotationHandler(object source, GLib.NotifyArgs args) { ExtractAnnotationInfo(); DoRequestRedraw(); }
private void OnPropertyChanged(object source, GLib.NotifyArgs args) { EmitChanged(); }
private void OnVolumeChanged(object o, GLib.NotifyArgs args) { OnEventChanged(PlayerEvent.Volume); }
private void NotifyIdHandler(object source, GLib.NotifyArgs args) { DoRequestRedraw(); }
private void HandleNotifyIntegrator(object source, GLib.NotifyArgs args) { UpdateIntegrator(d_network.Integrator); }
private void OnFromChanged(object source, GLib.NotifyArgs args) { UpdateFrom(); CalculateAnchors(); }
private void OnProxyChanged(object o, GLib.NotifyArgs args) { Variable = d_iface.Lookup(d_name); }
void PositionChangedBefore(object o, GLib.NotifyArgs args) => PositionChanged(o, args);
void HandleMove(object o, GLib.NotifyArgs args) { ApplicationContext.InvokeUserCode(delegate { EventSink.OnPositionChanged(); }); }
private void HandleIdChanged(object source, GLib.NotifyArgs args) { d_entry.Text = d_object.Id; }
void EnsureIconLoaded(object o, GLib.NotifyArgs args) { ImageService.EnsureStockIconIsLoaded(StockId, (IconSize)StockSize); }
/// <summary> /// Internal constructor to create a new group based on an edsContact /// </summary> /* * internal PersonGroup(Evolution.Contact edsContact) * { * //this.edsContact = edsContact; * locker = new System.Object(); * personTreeStore = new Gtk.TreeStore(typeof(Person)); * UpdateModel(); * } */ #endregion #region Interal Methods /// <summary> /// Created to handle property changes on an eds Contact, but it's not working /// </summary> internal void PropertyChangedNotifyHandler(object o, GLib.NotifyArgs args) { Logger.Debug("A Property has changed on Group: {0}", this.DisplayName); }