public WelcomePageWidget(WelcomePageView parentView) : base() { this.Build(); this.parentView = parentView; linkHoverLeaveEventHandler = new Gtk.LeaveNotifyEventHandler(handleHoverLeave); linkHoverEnterEventHandler = new Gtk.EnterNotifyEventHandler(handleHoverEnter); linkClickedEventHandler = new EventHandler(HandleLink); string logoPath = AddinManager.CurrentAddin.GetFilePath("md-logo.png"); logoPixbuf = new Gdk.Pixbuf(logoPath); string bgPath = AddinManager.CurrentAddin.GetFilePath("md-bg.png"); bgPixbuf = new Gdk.Pixbuf(bgPath); alignment1.SetPadding(logoHeight + spacing, 0, spacing, 0); ModifyBg(StateType.Normal, Style.White); BuildFromXml(); LoadRecent(); IdeApp.Workbench.GuiLocked += OnLock; IdeApp.Workbench.GuiUnlocked += OnUnlock; }
public WelcomePageWidget (WelcomePageView parentView) : base () { this.Build (); this.parentView = parentView; linkHoverLeaveEventHandler = new Gtk.LeaveNotifyEventHandler (handleHoverLeave); linkHoverEnterEventHandler = new Gtk.EnterNotifyEventHandler (handleHoverEnter); linkClickedEventHandler = new EventHandler (HandleLink); using (var stream = BrandingService.OpenStream ("WelcomePage_Logo.png")) logoPixbuf = new Gdk.Pixbuf (stream); using (var stream = BrandingService.OpenStream ("WelcomePage_TopBorderRepeat.png")) bgPixbuf = new Gdk.Pixbuf (stream); alignment1.SetPadding (WelcomePageView.LogoHeight + WelcomePageView.Spacing, 0, WelcomePageView.Spacing, 0); Gdk.Color color; if (!Gdk.Color.Parse (WelcomePageView.BackgroundColor, ref color)) color = Style.White; ModifyBg (StateType.Normal, color); BuildFromXml (); LoadRecent (); IdeApp.Workbench.GuiLocked += OnLock; IdeApp.Workbench.GuiUnlocked += OnUnlock; }
public WelcomePageWidget (WelcomePageView parentView) : base () { this.Build (); this.parentView = parentView; linkHoverLeaveEventHandler = new Gtk.LeaveNotifyEventHandler (handleHoverLeave); linkHoverEnterEventHandler = new Gtk.EnterNotifyEventHandler (handleHoverEnter); linkClickedEventHandler = new EventHandler (HandleLink); string logoPath = AddinManager.CurrentAddin.GetFilePath ("md-logo.png"); logoPixbuf = new Gdk.Pixbuf (logoPath); string bgPath = AddinManager.CurrentAddin.GetFilePath ("md-bg.png"); bgPixbuf = new Gdk.Pixbuf (bgPath); alignment1.SetPadding (logoHeight + spacing, 0, spacing, 0); ModifyBg (StateType.Normal, Style.White); BuildFromXml (); LoadRecent (); IdeApp.Workbench.GuiLocked += OnLock; IdeApp.Workbench.GuiUnlocked += OnUnlock; }