setup: make global gitignore warning prettier
This commit is contained in:
parent
8f40304c6d
commit
e1d1a52d9e
|
@ -466,16 +466,23 @@ namespace SparkleShare {
|
||||||
|
|
||||||
|
|
||||||
if (warnings != null) {
|
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]) {
|
Label warning_label = new Label (warnings [0]) {
|
||||||
Xalign = 0
|
Xalign = 0,
|
||||||
|
Wrap = true
|
||||||
};
|
};
|
||||||
|
|
||||||
HBox warning_layout = new HBox (false, 0);
|
HBox warning_layout = new HBox (false, 0);
|
||||||
warning_layout.PackStart (warning_image, false, 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 {
|
} else {
|
||||||
Add (null);
|
Add (null);
|
||||||
|
|
|
@ -42,10 +42,12 @@ namespace SparkleShare {
|
||||||
IconTheme icon_theme = new IconTheme ();
|
IconTheme icon_theme = new IconTheme ();
|
||||||
|
|
||||||
icon_theme.AppendSearchPath (
|
icon_theme.AppendSearchPath (
|
||||||
Path.Combine (SparkleUI.AssetsPath, "icons"));
|
Path.Combine (SparkleUI.AssetsPath, "icons")
|
||||||
|
);
|
||||||
|
|
||||||
icon_theme.AppendSearchPath (
|
icon_theme.AppendSearchPath (
|
||||||
Path.Combine (SparkleConfig.ConfigPath, "icons"));
|
Path.Combine (SparkleConfig.ConfigPath, "icons")
|
||||||
|
);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return icon_theme.LoadIcon (name, size, IconLookupFlags.GenericFallback);
|
return icon_theme.LoadIcon (name, size, IconLookupFlags.GenericFallback);
|
||||||
|
|
Loading…
Reference in a new issue