setup: make global gitignore warning prettier
This commit is contained in:
parent
ebc93403ad
commit
a4194877c5
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue