Ignore:
Timestamp:
Oct 30, 2008, 2:02:29 AM (12 years ago)
Author:
Sam Hocevar
Message:

ThePimp?: add Fullscreen support, including the F11 binding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/ThePimp/gtk-gui/ThePimp.MainWindow.cs

    r2950 r3144  
    6969       
    7070        private Gtk.Action saveAsAction;
     71       
     72        private Gtk.Action FullscreenAction;
    7173       
    7274        private Gtk.VBox vbox1;
     
    182184            this.saveAsAction = new Gtk.Action("saveAsAction", null, Mono.Unix.Catalog.GetString("Save active image "), "gtk-save-as");
    183185            w2.Add(this.saveAsAction, null);
     186            this.FullscreenAction = new Gtk.Action("FullscreenAction", Mono.Unix.Catalog.GetString("Fullscreen"), null, "gtk-fullscreen");
     187            this.FullscreenAction.ShortLabel = Mono.Unix.Catalog.GetString("Fullscreen");
     188            w2.Add(this.FullscreenAction, null);
    184189            w1.InsertActionGroup(w2, 0);
    185190            this.AddAccelGroup(w1.AccelGroup);
     
    192197            this.vbox1.Name = "vbox1";
    193198            // Container child vbox1.Gtk.Box+BoxChild
    194             w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='FileAction'><menuitem action='NewAction'/><menuitem action='OpenAction'/><menuitem action='SaveAction'/><menuitem action='SaveAsAction'/><menuitem action='QuitAction'/></menu><menu action='EditAction'><menuitem action='UndoAction'/><menuitem action='RedoAction'/></menu><menu action='ViewAction'><menuitem action='ZoomInAction'/><menuitem action='ZoomOutAction'/><menuitem action='BestFitAction'/><menuitem action='NormalSizeAction'/></menu><menu action='HelpAction'><menuitem action='HelpAction1'/><menuitem action='AboutAction'/></menu></menubar></ui>");
     199            w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='FileAction'><menuitem action='NewAction'/><menuitem action='OpenAction'/><menuitem action='SaveAction'/><menuitem action='SaveAsAction'/><menuitem action='QuitAction'/></menu><menu action='EditAction'><menuitem action='UndoAction'/><menuitem action='RedoAction'/></menu><menu action='ViewAction'><menuitem action='ZoomInAction'/><menuitem action='ZoomOutAction'/><menuitem action='BestFitAction'/><menuitem action='NormalSizeAction'/><separator/><menuitem action='FullscreenAction'/></menu><menu action='HelpAction'><menuitem action='HelpAction1'/><menuitem action='AboutAction'/></menu></menubar></ui>");
    195200            this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
    196201            this.menubar1.Name = "menubar1";
     
    220225            this.vpaned1.CanFocus = true;
    221226            this.vpaned1.Name = "vpaned1";
    222             this.vpaned1.Position = 42;
     227            this.vpaned1.Position = 41;
    223228            this.hpaned1.Add(this.vpaned1);
    224229            Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vpaned1]));
     
    228233            this.hpaned2.CanFocus = true;
    229234            this.hpaned2.Name = "hpaned2";
    230             this.hpaned2.Position = 883;
     235            this.hpaned2.Position = 886;
    231236            // Container child hpaned2.Gtk.Paned+PanedChild
    232237            this.notebook1 = new Gtk.Notebook();
     
    242247            this.vpaned2.CanFocus = true;
    243248            this.vpaned2.Name = "vpaned2";
    244             this.vpaned2.Position = 42;
     249            this.vpaned2.Position = 41;
    245250            this.hpaned2.Add(this.vpaned2);
    246251            Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vpaned2]));
     
    278283            this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
    279284            this.saveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated);
     285            this.FullscreenAction.Activated += new System.EventHandler(this.OnFullscreenActionActivated);
    280286        }
    281287    }
Note: See TracChangeset for help on using the changeset viewer.