@@ -14,15 +14,7 @@ public class Gala.BackgroundMenu : Menu {
14
14
try {
15
15
AppInfo . launch_default_for_uri (" settings://desktop/appearance/wallpaper" , null );
16
16
} catch (Error e) {
17
- var message_dialog = new Granite .MessageDialog .with_image_from_icon_name (
18
- " Failed to Open Wallpaper Settings" ,
19
- " Unable to open System Settings. A handler for the `settings://` URI scheme must be installed." ,
20
- " dialog-error" ,
21
- Gtk . ButtonsType . CLOSE
22
- );
23
- message_dialog. show_error_details (e. message);
24
- message_dialog. run ();
25
- message_dialog. destroy ();
17
+ warning (" Failed to open Wallpaper Settings: %s " , e. message);
26
18
}
27
19
});
28
20
@@ -31,15 +23,7 @@ public class Gala.BackgroundMenu : Menu {
31
23
try {
32
24
AppInfo . launch_default_for_uri (" settings://display" , null );
33
25
} catch (Error e) {
34
- var message_dialog = new Granite .MessageDialog .with_image_from_icon_name (
35
- " Failed to Open Display Settings" ,
36
- " Unable to open System Settings. A handler for the `settings://` URI scheme must be installed." ,
37
- " dialog-warning" ,
38
- Gtk . ButtonsType . CLOSE
39
- );
40
- message_dialog. show_error_details (e. message);
41
- message_dialog. run ();
42
- message_dialog. destroy ();
26
+ warning (" Failed to open Display Settings: %s " , e. message);
43
27
}
44
28
});
45
29
@@ -48,15 +32,7 @@ public class Gala.BackgroundMenu : Menu {
48
32
try {
49
33
AppInfo . launch_default_for_uri (" settings://" , null );
50
34
} catch (Error e) {
51
- var message_dialog = new Granite .MessageDialog .with_image_from_icon_name (
52
- " Failed to Open System Settings" ,
53
- " Unable to open System Settings. A handler for the `settings://` URI scheme must be installed." ,
54
- " dialog-warning" ,
55
- Gtk . ButtonsType . CLOSE
56
- );
57
- message_dialog. show_error_details (e. message);
58
- message_dialog. run ();
59
- message_dialog. destroy ();
35
+ warning (" Failed to open System Settings: %s " , e. message);
60
36
}
61
37
});
62
38
0 commit comments