GetWidget() public static method

public static GetWidget ( string name ) : Gtk.Widget
name string
return Gtk.Widget
Ejemplo n.º 1
0
        public void OnVideoPlayPause(object o, EventArgs args)
        {
            ToggleButton button = Base.GetWidget(WidgetNames.VideoPlayPauseButton) as ToggleButton;

            button.Active = !button.Active;     //Toggle() only emits the Toggled event
        }
Ejemplo n.º 2
0
        /* Private members */

        private void SetDropTargets()
        {
            TargetEntry[] targetEntries = new TargetEntry[] { targetUriList };
            Gtk.Drag.DestSet(Base.GetWidget(WidgetNames.SubtitleAreaVBox), DestDefaults.All, targetEntries, DragAction.Copy);
            Gtk.Drag.DestSet(Base.GetWidget(WidgetNames.VideoAreaHBox), DestDefaults.All, targetEntries, DragAction.Copy);
        }