vala r1180 - in trunk: . vapi
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1180 - in trunk: . vapi
- Date: Mon, 7 Apr 2008 21:06:14 +0100 (BST)
Author: juergbi
Date: Mon Apr 7 21:06:14 2008
New Revision: 1180
URL: http://svn.gnome.org/viewvc/vala?rev=1180&view=rev
Log:
2008-04-07 Juerg Billeter <j bitron ch>
* vapi/glib-2.0.vapi: add missing g_get_user_*_dir bindings,
based on patch by Marc-Andre Lureau, fixes bug 517748
Modified:
trunk/ChangeLog
trunk/vapi/glib-2.0.vapi
Modified: trunk/vapi/glib-2.0.vapi
==============================================================================
--- trunk/vapi/glib-2.0.vapi (original)
+++ trunk/vapi/glib-2.0.vapi Mon Apr 7 21:06:14 2008
@@ -1703,8 +1703,14 @@
public static string[] list_variables ();
[CCode (cname = "g_get_user_name")]
public static weak string get_user_name ();
+ [CCode (cname = "g_get_user_cache_dir")]
+ public static weak string get_user_cache_dir ();
[CCode (cname = "g_get_user_data_dir")]
public static weak string get_user_data_dir ();
+ [CCode (cname = "g_get_user_config_dir")]
+ public static weak string get_user_config_dir ();
+ [CCode (cname = "g_get_user_special_dir")]
+ public static weak string get_user_special_dir (UserDirectory directory);
[CCode (cname = "g_get_system_data_dirs"), NoArrayLength]
public static weak string[] get_system_data_dirs ();
[CCode (cname = "g_get_system_config_dirs"), NoArrayLength]
@@ -1718,7 +1724,18 @@
[CCode (cname = "g_find_program_in_path")]
public static string find_program_in_path (string program);
}
-
+
+ public enum UserDirectory {
+ DESKTOP,
+ DOCUMENTS,
+ DOWNLOAD,
+ MUSIC,
+ PICTURES,
+ PUBLIC_SHARE,
+ TEMPLATES,
+ VIDEOS
+ }
+
public static class Path {
public static bool is_absolute (string! file_name);
public static weak string skip_root (string! file_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]