~ubuntu-branches/ubuntu/quantal/libfm/quantal

« back to all changes in this revision

Viewing changes to src/tools/libfm-pref-apps.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2011-02-21 21:55:43 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110221215543-m7gn2snkhpk1kk9u
Tags: 0.1.15+git-3625952cea-0ubuntu1
* New upstream snapshot (2011-02-15)
 - Use x-schemas-handler (LP: #683922)
* debian/patches/
 - 90_add_gobject_link.patch: Remove, merged upstream.
 - 02-libfm-0.1.14-API-changes.patch: Refresh.
 - 03_disable_deprecated_gio_module.patch: Refresh.
 - 04_fix_docs_linker.patch: Fix DSO linking in docs/.
* debian/libfm0.install:
 - Remove usr/lib/libfm/gnome-terminal, dropped upstream.
 - Remove gio module, dropped upstream.
* debian/rules:
 - Add --enable-gtk-doc to configure.
* debian/libfm-gtk0.symbols:
 - Update with new symbols.
* debian/apport/source_libfm.py
 - Fix location of pcmanfm config files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
static GList* browsers = NULL;
38
38
static GList* mail_clients = NULL;
39
39
 
40
 
/* examine desktop files under Internet and Officesubmenus to find out browsers and mail clients */
 
40
/* examine desktop files under Internet and Office submenus to find out browsers and mail clients */
41
41
static init_apps()
42
42
{
43
43
    MenuCache* mc = menu_cache_lookup_sync("applications.menu");
194
194
        if(app)
195
195
        {
196
196
            if(is_changed)
197
 
                g_key_file_set_string(kf, "Preferred Applications", "WebBrowser", g_app_info_get_id(app));
 
197
            {
 
198
//                g_key_file_set_string(kf, "Preferred Applications", "WebBrowser", g_app_info_get_id(app));
 
199
                g_app_info_set_as_default_for_type(app, "x-scheme-handler/http", NULL);
 
200
            }
198
201
            g_object_unref(app);
199
202
        }
200
203
        custom_apps = fm_app_chooser_combo_box_get_custom_apps(GTK_COMBO_BOX(browser));
218
221
        if(app)
219
222
        {
220
223
            if(is_changed)
221
 
                g_key_file_set_string(kf, "Preferred Applications", "MailClient", g_app_info_get_id(app));
 
224
            {
 
225
                // g_key_file_set_string(kf, "Preferred Applications", "MailClient", g_app_info_get_id(app));
 
226
                g_app_info_set_as_default_for_type(app, "x-scheme-handler/mailto", NULL);
 
227
            }
222
228
            g_object_unref(app);
223
229
        }
224
230
        custom_apps = fm_app_chooser_combo_box_get_custom_apps(GTK_COMBO_BOX(mail_client));
259
265
 
260
266
    fm_gtk_finalize();
261
267
 
262
 
        return 0;
 
268
    return 0;
263
269
}