Exemple #1
0
        // Constructor
        public InfoWindow(string title) : base(IntPtr.Zero)
        {
            Glade.XML gxml = new Glade.XML(null, "InfoWindow.glade", "window", null);
            gxml.Autoconnect(this);

            Raw = window.Handle;

            window.Title = title;

            int width  = (int)Muine.GetGConfValue(GConfKeyWidth, GConfDefaultWidth);
            int height = (int)Muine.GetGConfValue(GConfKeyHeight, GConfDefaultHeight);

            window.SetDefaultSize(width, height);

            window.SizeAllocated += OnSizeAllocated;

            cover_image = new CoverImage();
            ((Container)gxml ["cover_image_container"]).Add(cover_image);

            // Keynav
            box.FocusHadjustment = scrolledwindow.Hadjustment;
            box.FocusVadjustment = scrolledwindow.Vadjustment;

            // White background
//			viewport.EnsureStyle ();
//			viewport.ModifyBg (StateType.Normal, viewport.Style.Base (StateType.Normal));
        }
Exemple #2
0
        // Handlers
        // Handlers :: OnSizeAllocated
        private void OnSizeAllocated(object o, SizeAllocatedArgs args)
        {
            int width, height;

            window.GetSize(out width, out height);

            Muine.SetGConfValue(GConfKeyWidth, width);
            Muine.SetGConfValue(GConfKeyHeight, height);
        }