Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux: Fixed all bugs in Sync and SyncMenu; these screens are as func…
…tional as on Windows and Mac! Added a Resource folder with embedded images; ResourceHelper extracts these images and turn them into Gdk.PIxbuf to load into buttons, tree views, etc. Added icons from other desktop platforms. Related to issue #382.
- Loading branch information
1 parent
b8b5a9d
commit 0abbdc3
Showing
24 changed files
with
606 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using System; | ||
using System.Reflection; | ||
|
||
namespace MPfm.GTK.Helpers | ||
{ | ||
public static class ResourceHelper | ||
{ | ||
// public static void TestLoadResources() | ||
// { | ||
// var names = Assembly.GetExecutingAssembly().GetManifestResourceNames(); | ||
// foreach(var name in names) | ||
// { | ||
// var info = Assembly.GetExecutingAssembly().GetManifestResourceInfo(name); | ||
// Console.WriteLine("Assembly Resource - name: {0} fileName: {1}", name, info.FileName); | ||
// } | ||
// } | ||
/// <summary> | ||
/// Gets an embedded image resource in the current executing assembly. | ||
/// </summary> | ||
/// <returns> | ||
/// Embedded image | ||
/// </returns> | ||
/// <param name='name'> | ||
/// Image name (example: 'icon_linux.png' will load 'MPfm.GTK.Resources.icon_linux.png') | ||
/// </param> | ||
public static Gdk.Pixbuf GetEmbeddedImageResource(string name) | ||
{ | ||
return new Gdk.Pixbuf(Assembly.GetExecutingAssembly().GetManifestResourceStream("MPfm.GTK.Resources." + name)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.