Skip to content

Commit d0abc27

Browse files
authored
DefaultPlug: add settings for geo uri handler (#255)
1 parent b0d4754 commit d0abc27

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Defaults/DefaultPlug.vala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ public class Defaults.Plug : Switchboard.SettingsPage {
5555
"inode/directory"
5656
);
5757

58+
var maps_setting = new SettingsChild (
59+
_("Maps"),
60+
"x-scheme-handler/geo"
61+
);
62+
5863
var flowbox = new Gtk.FlowBox () {
5964
column_spacing = 24,
6065
row_spacing = 12,
@@ -71,6 +76,7 @@ public class Defaults.Plug : Switchboard.SettingsPage {
7176
flowbox.append (text_setting);
7277
flowbox.append (videos_setting);
7378
flowbox.append (files_setting);
79+
flowbox.append (maps_setting);
7480

7581
child = flowbox;
7682
show_end_title_buttons = true;
@@ -146,6 +152,9 @@ public class Defaults.Plug : Switchboard.SettingsPage {
146152

147153
private string[] get_types_for_app (string app) {
148154
switch (app) {
155+
case "x-scheme-handler/geo":
156+
return { "x-scheme-handler/geo" };
157+
149158
case "x-scheme-handler/https":
150159
return {
151160
"x-scheme-handler/http",

0 commit comments

Comments
 (0)