~elementary-pantheon/switchboard-plug-applications/freya

« back to all changes in this revision

Viewing changes to src/Defaults/DefaultPlug.vala

Code style clean up

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
    }
189
189
 
190
190
    private void run_in_thread (owned ThreadFunc<void*> func) {
191
 
                try {
 
191
        try {
192
192
            new Thread<void*>.try (null, func);
193
 
                } catch (Error e) {
194
 
                        warning ("Could not create a new thread: %s", e.message);
195
 
                }
 
193
        } catch (Error e) {
 
194
            warning ("Could not create a new thread: %s", e.message);
 
195
        }
196
196
    }
197
197
    public void change_default (GLib.AppInfo old_app, GLib.AppInfo new_app, string item_type) {
198
198
        map_types_to_app (get_types_for_app (item_type), new_app);