~ubuntu-branches/ubuntu/intrepid/glib2.0/intrepid

« back to all changes in this revision

Viewing changes to docs/reference/glib/html/glib-Miscellaneous-Utility-Functions.html

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2008-09-03 00:51:29 UTC
  • mfrom: (1.2.47 upstream)
  • Revision ID: james.westby@ubuntu.com-20080903005129-cuvzg72uin744gd6
Tags: 2.18.0-1
* New upstream stable release, with API addition.
  - Update symbols file for new g_object_get_type() symbol and drop
    g_slice_debug_tree_statistics() which shouldn't have been exported in
    the first place.
  - Refresh patches 01_gettext-desktopfiles,
    02_usr_share_gnome_applications, and 03_blacklist-directories to apply
    cleanly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
761
761
<p>
762
762
Since applications are in general <span class="emphasis"><em>not</em></span> written 
763
763
to deal with these situations it was considered better to make 
764
 
<code class="function">g_get_homedir()</code> not pay attention to <code class="envar">HOME</code> and to 
 
764
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-home-dir" title="g_get_home_dir ()"><code class="function">g_get_home_dir()</code></a> not pay attention to <code class="envar">HOME</code> and to 
765
765
return the real home directory for the user. If applications
766
766
want to pay attention to <code class="envar">HOME</code>, they can do:
767
767
</p>
768
768
<div class="informalexample"><pre class="programlisting">
769
769
 const char *homedir = g_getenv ("HOME");
770
770
  if (!homedir)
771
 
     homedir = g_get_homedir ();
 
771
     homedir = g_get_home_dir ();
772
772
</pre></div>
773
773
<p>
774
774