Changeset 480 for trunk/src/gdk/Gdk.d
- Timestamp:
- 03/25/08 18:16:02 (8 months ago)
- Files:
-
- trunk/src/gdk/Gdk.d (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/gdk/Gdk.d
r411 r480 51 51 * module aliases: 52 52 * local aliases: 53 * overrides: 53 54 */ 54 55 … … 138 139 * Returns: the display name, if specified explicitely, otherwise NULL this string is owned by GTK+ and must not be modified or freed. 139 140 */ 140 public static char[]getDisplayArgName()141 public static string getDisplayArgName() 141 142 { 142 143 // const gchar* gdk_get_display_arg_name (void); 143 return Str.toString(gdk_get_display_arg_name()) .dup;144 return Str.toString(gdk_get_display_arg_name()); 144 145 } 145 146 … … 151 152 * Returns:the resulting locale. 152 153 */ 153 public static char[]setLocale()154 public static string setLocale() 154 155 { 155 156 // gchar* gdk_set_locale (void); 156 return Str.toString(gdk_set_locale()) .dup;157 return Str.toString(gdk_set_locale()); 157 158 } 158 159 … … 169 170 * connection was opened, or NULL to remove the property. 170 171 */ 171 public static void setSmClientId( char[]smClientId)172 public static void setSmClientId(string smClientId) 172 173 { 173 174 // void gdk_set_sm_client_id (const gchar *sm_client_id); … … 220 221 * process should be completed 221 222 */ 222 public static void notifyStartupCompleteWithId( char[]startupId)223 public static void notifyStartupCompleteWithId(string startupId) 223 224 { 224 225 // void gdk_notify_startup_complete_with_id (const gchar *startup_id); … … 233 234 * Returns:the program class. 234 235 */ 235 public static char[]getProgramClass()236 public static string getProgramClass() 236 237 { 237 238 // const char* gdk_get_program_class (void); 238 return Str.toString(gdk_get_program_class()) .dup;239 return Str.toString(gdk_get_program_class()); 239 240 } 240 241 … … 246 247 * programClass = a string. 247 248 */ 248 public static void setProgramClass( char[]programClass)249 public static void setProgramClass(string programClass) 249 250 { 250 251 // void gdk_set_program_class (const char *program_class); … … 257 258 * Returns:the name of the display. 258 259 */ 259 public static char[]getDisplay()260 public static string getDisplay() 260 261 { 261 262 // gchar* gdk_get_display (void); 262 return Str.toString(gdk_get_display()) .dup;263 return Str.toString(gdk_get_display()); 263 264 } 264 265
