"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Pinta.Core/Actions/ViewActions.cs" between
pinta-2.0.tar.gz and pinta-2.0.1.tar.gz

About: Pinta is a powerful image drawing and editing program (modeled after Paint.NET).

ViewActions.cs  (pinta-2.0):ViewActions.cs  (pinta-2.0.1)
skipping to change at line 117 skipping to change at line 117
// The toolbar is shown by default. // The toolbar is shown by default.
ToolBar.Value = true; ToolBar.Value = true;
ImageTabs.Value = true; ImageTabs.Value = true;
StatusBar.Value = true; StatusBar.Value = true;
ToolBox.Value = true; ToolBox.Value = true;
} }
#region Initialization #region Initialization
public void RegisterActions (Gtk.Application app, GLib.Menu menu) public void RegisterActions (Gtk.Application app, GLib.Menu menu)
{ {
app.AddAction (ToolBar);
menu.AppendItem (ToolBar.CreateMenuItem ());
app.AddAction (StatusBar);
menu.AppendItem (StatusBar.CreateMenuItem ());
app.AddAction (ToolBox);
menu.AppendItem (ToolBox.CreateMenuItem ());
app.AddAction (PixelGrid);
menu.AppendItem (PixelGrid.CreateMenuItem ());
app.AddAction (Rulers);
menu.AppendItem (Rulers.CreateMenuItem ());
app.AddAction (ImageTabs);
menu.AppendItem (ImageTabs.CreateMenuItem ());
var zoom_section = new GLib.Menu (); var zoom_section = new GLib.Menu ();
menu.AppendSection (null, zoom_section); menu.AppendSection (null, zoom_section);
app.AddAccelAction (ZoomIn, new[] { "<Primary>plus", "<Pr imary>equal", "equal", "<Primary>KP_Add", "KP_Add" }); app.AddAccelAction (ZoomIn, new[] { "<Primary>plus", "<Pr imary>equal", "equal", "<Primary>KP_Add", "KP_Add" });
zoom_section.AppendItem (ZoomIn.CreateMenuItem ()); zoom_section.AppendItem (ZoomIn.CreateMenuItem ());
app.AddAccelAction (ZoomOut, new[] { "<Primary>minus", "< Primary>underscore", "minus", "<Primary>KP_Subtract", "KP_Subtract" }); app.AddAccelAction (ZoomOut, new[] { "<Primary>minus", "< Primary>underscore", "minus", "<Primary>KP_Subtract", "KP_Subtract" });
zoom_section.AppendItem (ZoomOut.CreateMenuItem ()); zoom_section.AppendItem (ZoomOut.CreateMenuItem ());
app.AddAccelAction (ActualSize, new[] { "<Primary>0", "<P rimary><Shift>A" }); app.AddAccelAction (ActualSize, new[] { "<Primary>0", "<P rimary><Shift>A" });
skipping to change at line 163 skipping to change at line 145
var metric_section = new GLib.Menu (); var metric_section = new GLib.Menu ();
menu.AppendSection (null, metric_section); menu.AppendSection (null, metric_section);
var metric_menu = new GLib.Menu (); var metric_menu = new GLib.Menu ();
metric_section.AppendSubmenu (Translations.GetString ("Ru ler Units"), metric_menu); metric_section.AppendSubmenu (Translations.GetString ("Ru ler Units"), metric_menu);
app.AddAction (RulerMetric); app.AddAction (RulerMetric);
metric_menu.Append (Translations.GetString ("Pixels"), $" app.{RulerMetric.Name}(0)"); metric_menu.Append (Translations.GetString ("Pixels"), $" app.{RulerMetric.Name}(0)");
metric_menu.Append (Translations.GetString ("Inches"), $" app.{RulerMetric.Name}(1)"); metric_menu.Append (Translations.GetString ("Inches"), $" app.{RulerMetric.Name}(1)");
metric_menu.Append (Translations.GetString ("Centimeters" ), $"app.{RulerMetric.Name}(2)"); metric_menu.Append (Translations.GetString ("Centimeters" ), $"app.{RulerMetric.Name}(2)");
var show_hide_section = new GLib.Menu ();
menu.AppendSection (null, show_hide_section);
var show_hide_menu = new GLib.Menu ();
show_hide_section.AppendSubmenu (Translations.GetString (
"Show/Hide"), show_hide_menu);
app.AddAction (PixelGrid);
show_hide_menu.AppendItem (PixelGrid.CreateMenuItem ());
app.AddAction (Rulers);
show_hide_menu.AppendItem (Rulers.CreateMenuItem ());
app.AddAction (ToolBar);
show_hide_menu.AppendItem (ToolBar.CreateMenuItem ());
app.AddAction (StatusBar);
show_hide_menu.AppendItem (StatusBar.CreateMenuItem ());
app.AddAction (ToolBox);
show_hide_menu.AppendItem (ToolBox.CreateMenuItem ());
app.AddAction (ImageTabs);
show_hide_menu.AppendItem (ImageTabs.CreateMenuItem ());
} }
public void CreateStatusBar (Statusbar statusbar) public void CreateStatusBar (Statusbar statusbar)
{ {
statusbar.AppendItem (ZoomIn.CreateToolBarItem ()); statusbar.AppendItem (ZoomIn.CreateToolBarItem ());
statusbar.AppendItem (ZoomComboBox); statusbar.AppendItem (ZoomComboBox);
statusbar.AppendItem (ZoomOut.CreateToolBarItem ()); statusbar.AppendItem (ZoomOut.CreateToolBarItem ());
statusbar.AppendItem (new SeparatorToolItem { Margin = 6 }, 6); statusbar.AppendItem (new SeparatorToolItem { Margin = 6 }, 6);
} }
 End of changes. 2 change blocks. 
18 lines changed or deleted 25 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)