Get data root dif info from configure
Also fixes the path to the about dialog pixmap.
This commit is contained in:
parent
3bcbd6a6a3
commit
52ef7f8bf1
|
@ -22,6 +22,7 @@ namespace SparkleLib {
|
|||
|
||||
public const string VERSION = "@VERSION@";
|
||||
public const string LOCALE_DIR = "@prefix@/share/locale";
|
||||
public const string DATAROOTDIR = "@expanded_datadir@";
|
||||
public const string GETTEXT_PACKAGE = "@GETTEXT_PACKAGE@";
|
||||
public const string PREFIX = "@prefix@";
|
||||
public const string OPEN_COMMAND = "xdg-open";
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace SparkleLib {
|
|||
|
||||
public static string SparkleLocalIconPath = SparkleHelpers.CombineMore (SparkleConfigPath, "icons", "hicolor");
|
||||
|
||||
public static string SparkleIconPath = SparkleHelpers.CombineMore (Defines.PREFIX, "share", "sparkleshare",
|
||||
public static string SparkleIconPath = SparkleHelpers.CombineMore (Defines.DATAROOTDIR, "sparkleshare",
|
||||
"icons");
|
||||
|
||||
|
||||
|
|
|
@ -194,9 +194,9 @@ GNU Lesser General Public License for more details."; */
|
|||
vbox.PackStart (new HSeparator (), false, false, 0);
|
||||
vbox.PackStart (button_bar, false, false, 0);
|
||||
|
||||
string image_path = SparkleHelpers.CombineMore (Defines.PREFIX, "share", "pixmaps",
|
||||
"sparkleshare-about.png");
|
||||
|
||||
string image_path = SparkleHelpers.CombineMore (Defines.DATAROOTDIR, "sparkleshare",
|
||||
"pixmaps", "sparkleshare-about.png");
|
||||
System.Console.WriteLine(image_path);
|
||||
wrapper.PackStart (new Image (image_path), false, false, 0);
|
||||
wrapper.PackStart (vbox, true, true, 0);
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ namespace SparkleShare {
|
|||
Directory.CreateDirectory (SparklePaths.SparklePath);
|
||||
SparkleHelpers.DebugInfo ("Controller", "Created '" + SparklePaths.SparklePath + "'");
|
||||
|
||||
string icon_file_path = SparkleHelpers.CombineMore (Defines.PREFIX, "share", "icons", "hicolor",
|
||||
string icon_file_path = SparkleHelpers.CombineMore (Defines.DATAROOTDIR, "icons", "hicolor",
|
||||
"48x48", "apps", "folder-sparkleshare.png");
|
||||
|
||||
string gvfs_command_path = SparkleHelpers.CombineMore (Path.VolumeSeparatorChar.ToString (),
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace SparkleShare {
|
|||
|
||||
HBox = new HBox (false, 6);
|
||||
|
||||
string image_path = SparkleHelpers.CombineMore (Defines.PREFIX, "share", "sparkleshare",
|
||||
string image_path = SparkleHelpers.CombineMore (Defines.DATAROOTDIR, "sparkleshare",
|
||||
"pixmaps", "side-splash.png");
|
||||
|
||||
Image side_splash = new Image (image_path);
|
||||
|
|
Loading…
Reference in a new issue