"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Pinta.Gui.Widgets/Widgets/ColorPaletteWidget.cs" between
pinta-1.7.tar.gz and pinta-1.7.1.tar.gz

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

ColorPaletteWidget.cs  (pinta-1.7):ColorPaletteWidget.cs  (pinta-1.7.1)
skipping to change at line 313 skipping to change at line 313
/// <summary> /// <summary>
/// Provide a custom tooltip based on the cursor location. /// Provide a custom tooltip based on the cursor location.
/// </summary> /// </summary>
private void HandleQueryTooltip (object o, Gtk.QueryTooltipArgs a rgs) private void HandleQueryTooltip (object o, Gtk.QueryTooltipArgs a rgs)
{ {
int x = args.X; int x = args.X;
int y = args.Y; int y = args.Y;
string text = null; string text = null;
if (swap_rect.ContainsPoint (x, y)) { if (swap_rect.ContainsPoint (x, y)) {
text = Catalog.GetString ("Click to switch betwee text = string.Format (
n primary and secondary color."); "{0} {1}: {2}",
Catalog.GetString ("Click to switch betwe
en primary and secondary color."),
Catalog.GetString ("Shortcut key"),
"X"
);
} else if (reset_rect.ContainsPoint (x, y)) { } else if (reset_rect.ContainsPoint (x, y)) {
text = Catalog.GetString ("Click to reset primary and secondary color."); text = Catalog.GetString ("Click to reset primary and secondary color.");
} else if (primary_rect.ContainsPoint (x, y)) { } else if (primary_rect.ContainsPoint (x, y)) {
text = Catalog.GetString ("Click to select primar y color."); text = Catalog.GetString ("Click to select primar y color.");
} else if (secondary_rect.ContainsPoint (x, y)) { } else if (secondary_rect.ContainsPoint (x, y)) {
text = Catalog.GetString ("Click to select second ary color."); text = Catalog.GetString ("Click to select second ary color.");
} else if (PointToPalette (x, y) >= 0) { } else if (PointToPalette (x, y) >= 0) {
text = Catalog.GetString ("Left click to set prim ary color. Right click to set secondary color. Middle click to choose palette co lor."); text = Catalog.GetString ("Left click to set prim ary color. Right click to set secondary color. Middle click to choose palette co lor.");
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 7 lines changed or added

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