setup: make global gitignore warning prettier

This commit is contained in:
Hylke Bons 2011-12-25 21:15:00 +01:00
parent 8f40304c6d
commit e1d1a52d9e
2 changed files with 15 additions and 6 deletions

View file

@ -466,16 +466,23 @@ namespace SparkleShare {
if (warnings != null) {
Image warning_image = new Image (SparkleUIHelpers.GetIcon ("dialog-warning", 24));
Image warning_image = new Image (
SparkleUIHelpers.GetIcon ("dialog-warning", 24)
);
Label warning_label = new Label (warnings [0]) {
Xalign = 0
Xalign = 0,
Wrap = true
};
HBox warning_layout = new HBox (false, 0);
warning_layout.PackStart (warning_image, false, false, 0);
warning_layout.PackStart (warning_label, true, true, 0);
warning_layout.PackStart (warning_label, true, true, 15);
VBox warning_wrapper = new VBox (false, 0);
warning_wrapper.PackStart (warning_layout, false, false, 0);
Add (warning_layout);
Add (warning_wrapper);
} else {
Add (null);

View file

@ -42,10 +42,12 @@ namespace SparkleShare {
IconTheme icon_theme = new IconTheme ();
icon_theme.AppendSearchPath (
Path.Combine (SparkleUI.AssetsPath, "icons"));
Path.Combine (SparkleUI.AssetsPath, "icons")
);
icon_theme.AppendSearchPath (
Path.Combine (SparkleConfig.ConfigPath, "icons"));
Path.Combine (SparkleConfig.ConfigPath, "icons")
);
try {
return icon_theme.LoadIcon (name, size, IconLookupFlags.GenericFallback);