Lines Matching defs:key_file
195 * @key_file: an opened #GKeyFile
204 g_desktop_app_info_new_from_keyfile (GKeyFile *key_file)
211 start_group = g_key_file_get_start_group (key_file);
219 type = g_key_file_get_string (key_file,
230 try_exec = g_key_file_get_string (key_file,
249 info->name = g_key_file_get_locale_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_NAME, NULL, NULL);
250 info->comment = g_key_file_get_locale_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_COMMENT, NULL, NULL);
251 info->nodisplay = g_key_file_get_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY, NULL) != FALSE;
252 info->icon_name = g_key_file_get_locale_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_ICON, NULL, NULL);
253 info->only_show_in = g_key_file_get_string_list (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN, NULL, NULL);
254 info->not_show_in = g_key_file_get_string_list (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN, NULL, NULL);
256 info->exec = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_EXEC, NULL);
257 info->path = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_PATH, NULL);
258 info->terminal = g_key_file_get_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_TERMINAL, NULL) != FALSE;
259 info->startup_notify = g_key_file_get_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY, NULL) != FALSE;
260 info->no_fuse = g_key_file_get_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, "X-GIO-NoFuse", NULL) != FALSE;
261 info->hidden = g_key_file_get_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_HIDDEN, NULL) != FALSE;
312 GKeyFile *key_file;
315 key_file = g_key_file_new ();
317 if (g_key_file_load_from_file (key_file,
322 info = g_desktop_app_info_new_from_keyfile (key_file);
327 g_key_file_free (key_file);
1258 GKeyFile *key_file;
1277 key_file = g_key_file_new ();
1278 load_succeeded = g_key_file_load_from_file (key_file, filename, G_KEY_FILE_NONE, NULL);
1279 if (!load_succeeded || !g_key_file_has_group (key_file, ADDED_ASSOCIATIONS_GROUP))
1281 g_key_file_free (key_file);
1282 key_file = g_key_file_new ();
1293 content_types = g_key_file_get_keys (key_file, ADDED_ASSOCIATIONS_GROUP, NULL, NULL);
1301 old_list = g_key_file_get_string_list (key_file, ADDED_ASSOCIATIONS_GROUP,
1354 g_key_file_remove_key (key_file,
1359 g_key_file_set_string_list (key_file,
1374 content_types = g_key_file_get_keys (key_file, REMOVED_ASSOCIATIONS_GROUP, NULL, NULL);
1382 old_list = g_key_file_get_string_list (key_file, REMOVED_ASSOCIATIONS_GROUP,
1403 g_key_file_remove_key (key_file,
1408 g_key_file_set_string_list (key_file,
1418 data = g_key_file_to_data (key_file, &data_size, error);
1419 g_key_file_free (key_file);
1584 GKeyFile *key_file;
1604 key_file = g_key_file_new ();
1606 g_key_file_set_string (key_file, G_KEY_FILE_DESKTOP_GROUP,
1608 g_key_file_set_string (key_file, G_KEY_FILE_DESKTOP_GROUP,
1610 g_key_file_set_string (key_file, G_KEY_FILE_DESKTOP_GROUP,
1614 g_key_file_set_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP,
1617 g_key_file_set_string (key_file, G_KEY_FILE_DESKTOP_GROUP,
1620 g_key_file_set_string (key_file, G_KEY_FILE_DESKTOP_GROUP,
1623 g_key_file_set_string (key_file, G_KEY_FILE_DESKTOP_GROUP,
1626 g_key_file_set_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP,
1629 data = g_key_file_to_data (key_file, &data_size, NULL);
1630 g_key_file_free (key_file);
2168 GKeyFile *key_file;
2188 key_file = g_key_file_new ();
2200 g_key_file_load_from_file (key_file, filename, G_KEY_FILE_NONE, &load_error);
2208 mime_types = g_key_file_get_keys (key_file, MIME_CACHE_GROUP,
2218 desktop_file_ids = g_key_file_get_string_list (key_file,
2237 g_key_file_free (key_file);
2242 g_key_file_free (key_file);
2254 GKeyFile *key_file;
2276 key_file = g_key_file_new ();
2287 g_key_file_load_from_file (key_file, filename, G_KEY_FILE_NONE, &load_error);
2294 mime_types = g_key_file_get_keys (key_file, DEFAULT_APPLICATIONS_GROUP,
2300 desktop_file_ids = g_key_file_get_string_list (key_file,
2317 g_key_file_free (key_file);
2322 g_key_file_free (key_file);
2334 GKeyFile *key_file;
2360 key_file = g_key_file_new ();
2371 g_key_file_load_from_file (key_file, filename, G_KEY_FILE_NONE, &load_error);
2378 mime_types = g_key_file_get_keys (key_file, ADDED_ASSOCIATIONS_GROUP,
2384 desktop_file_ids = g_key_file_get_string_list (key_file,
2401 mime_types = g_key_file_get_keys (key_file, REMOVED_ASSOCIATIONS_GROUP,
2407 desktop_file_ids = g_key_file_get_string_list (key_file,
2424 g_key_file_free (key_file);
2429 g_key_file_free (key_file);