Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 0c00422fba9a46710101d04f3f3175e7 > files > 118

geany-devel-1.24.1-3.mga5.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>Geany: main.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Geany
   &#160;<span id="projectnumber">1.24.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">main.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Main program-related commands.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a52bdae8ff08e529485b8a10df1a6572a"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a52bdae8ff08e529485b8a10df1a6572a">main_is_realized</a> (void)</td></tr>
<tr class="memdesc:a52bdae8ff08e529485b8a10df1a6572a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the main window has been realized.  <a href="#a52bdae8ff08e529485b8a10df1a6572a">More...</a><br /></td></tr>
<tr class="separator:a52bdae8ff08e529485b8a10df1a6572a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b772d8f4006401807e76d4f57e6a5fc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a8b772d8f4006401807e76d4f57e6a5fc">main_locale_init</a> (const gchar *locale_dir, const gchar *gettext_package)</td></tr>
<tr class="memdesc:a8b772d8f4006401807e76d4f57e6a5fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialises the gettext translation system.  <a href="#a8b772d8f4006401807e76d4f57e6a5fc">More...</a><br /></td></tr>
<tr class="separator:a8b772d8f4006401807e76d4f57e6a5fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a270ce40acf35d5fa396f3b4f9f2b694e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a270ce40acf35d5fa396f3b4f9f2b694e">main_reload_configuration</a> (void)</td></tr>
<tr class="memdesc:a270ce40acf35d5fa396f3b4f9f2b694e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reloads most of Geany's configuration files without restarting.  <a href="#a270ce40acf35d5fa396f3b4f9f2b694e">More...</a><br /></td></tr>
<tr class="separator:a270ce40acf35d5fa396f3b4f9f2b694e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Main program-related commands. </p>
<p>Handles program initialization and cleanup. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a52bdae8ff08e529485b8a10df1a6572a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean main_is_realized </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the main window has been realized. </p>
<p>This is an easy indicator whether Geany is right now starting up (main window is not yet realized) or whether it has finished the startup process (main window is realized). This is because the main window is realized (i.e. actually drawn on the screen) at the end of the startup process.</p>
<dl class="section note"><dt>Note</dt><dd>Maybe you want to use the <a class="el" href="pluginsignals_8c.html"><code>"geany-startup-complete"</code> signal </a> to get notified about the completed startup process.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd><code>TRUE</code> if the Geany main window has been realized or <code>FALSE</code> otherwise.</dd></dl>
<dl class="section since"><dt>Since</dt><dd>0.19 </dd></dl>

</div>
</div>
<a class="anchor" id="a8b772d8f4006401807e76d4f57e6a5fc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void main_locale_init </td>
          <td>(</td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>locale_dir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>package</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialises the gettext translation system. </p>
<p>This is a convenience function to set up gettext for internationalisation support in external plugins. You should call this function early in <a class="el" href="pluginsymbols_8c.html#aa962b949eadd24aeaf003b1b290c6612">plugin_init()</a>. If the macro HAVE_LOCALE_H is defined, <code>setlocale</code>(LC_ALL, "") is called. The codeset for the message translations is set to UTF-8.</p>
<p>Note that this function only setups the gettext textdomain for you. You still have to adjust the build system of your plugin to get internationalisation support working properly.</p>
<p>If you have already used <a class="el" href="plugindata_8h.html#a743dd012631a99ec7dad6945fd6d66a7">PLUGIN_SET_TRANSLATABLE_INFO()</a> you don't need to call <a class="el" href="main_8h.html#a8b772d8f4006401807e76d4f57e6a5fc" title="Initialises the gettext translation system. ">main_locale_init()</a> again as it has already been done.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale_dir</td><td>The location where the translation files should be searched. This is usually the <code>LOCALEDIR</code> macro, defined by the build system. E.g. <code>$prefix/share/locale</code>. Only used on non-Windows systems. On Windows, the directory is determined by <code>g_win32_get_package_installation_directory()</code>. </td></tr>
    <tr><td class="paramname">package</td><td>The package name, usually this is the <code>GETTEXT_PACKAGE</code> macro, defined by the build system.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>0.16 </dd></dl>

</div>
</div>
<a class="anchor" id="a270ce40acf35d5fa396f3b4f9f2b694e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void main_reload_configuration </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reloads most of Geany's configuration files without restarting. </p>
<p>Currently the following files are reloaded: all template files, also new file templates and the 'New (with template)' menus will be updated, Snippets (snippets.conf), filetype extensions (filetype_extensions.conf), and 'settings' and 'build_settings' sections of the filetype definition files.</p>
<p>Plugins may call this function if they changed any of these files (e.g. a configuration file editor plugin).</p>
<dl class="section since"><dt>Since</dt><dd>0.15 </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Oct 17 2014 05:13:17 for Geany by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>