?? cha-checklist.html
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html> <head> <title> Gnome Application Checklist </title> <meta name="GENERATOR" content= "Modular DocBook HTML Stylesheet Version 1.45"> <link rel="HOME" title="GTK+ / Gnome Application Development" href="ggad.html"> <link rel="UP" title="Building a Gnome Application" href= "build-app.html"> <link rel="PREVIOUS" title="Convenience Routines" href= "sec-dialogs-convenience.html"> <link rel="NEXT" title="Advanced GTK+/Gnome Techniques" href= "advanced.html"> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink= "#840084" alink="#0000FF"> <div class="NAVHEADER"> <table width="100%" border="0" bgcolor="#ffffff" cellpadding= "1" cellspacing="0"> <tr> <th colspan="4" align="center"> <font color="#000000" size="2">GTK+ / Gnome Application Development</font> </th> </tr> <tr> <td width="25%" bgcolor="#ffffff" align="left"> <a href="sec-dialogs-convenience.html"><font color= "#0000ff" size="2"><b><<< Previous</b></font></a> </td> <td width="25%" colspan="2" bgcolor="#ffffff" align= "center"> <font color="#0000ff" size="2"><b><a href="ggad.html"> <font color="#0000ff" size="2"><b> Home</b></font></a></b></font> </td> <td width="25%" bgcolor="#ffffff" align="right"> <a href="advanced.html"><font color="#0000ff" size="2"> <b>Next >>></b></font></a> </td> </tr> </table> </div> <div class="CHAPTER"> <h1> <a name="CHA-CHECKLIST">Gnome Application Checklist</a> </h1> <p> Almost all Gnome applications should support a common set of features. This checklist summarizes the most important ones. Always remember: Gnome is a direct response to the problem of application heterogeneity in the X environment, and one of the most important goals of any Gnome application should be look-and-feel consistent with other Gnome applications, starting with the source code seen by programmers and ending with the spiffy GUI you present to users. </p> <ul> <li> <p> Create a standards-compliant source tree. Use the Gnome <tt class="APPLICATION">autoconf</tt> macros, or the <tt class="FILENAME">gnome-config</tt> script, to reliably locate the Gnome libraries and header files. </p> </li> <li> <p> Include a <tt class="FILENAME">README</tt> describing the package. </p> </li> <li> <p> Include the standard <tt class="FILENAME">INSTALL</tt> file describing how to compile and install the package; change the standard file to reflect anything specific to your application. </p> </li> <li> <p> Include a copyright, in a file called <tt class= "FILENAME">COPYING</tt>. </p> </li> <li> <p> Internationalize your application with GNU <tt class= "APPLICATION">gettext</tt> and the standard C library functions. </p> </li> <li> <p> Include the <tt class="FILENAME">intl</tt> directory with your application, so users can build the application without having <tt class="APPLICATION"> gettext</tt>. Include <tt class="FILENAME">intl</tt> in your header file search path. </p> </li> <li> <p> Define the <tt class="APPLICATION">G_LOG_DOMAIN</tt> preprocessor symbol to identify the origin of glib error messages. </p> </li> <li> <p> Define the <tt class="APPLICATION">GNOMELOCALEDIR</tt> preprocessor symbol so Gnome can find translation files. </p> </li> <li> <p> Install a <tt class="APPLICATION">.desktop</tt> file so your application will appear on the Gnome desktop's menus. </p> </li> <li> <p> Install help files along with <tt class="FILENAME"> topic.dat</tt> files so the Gnome help browser can locate them. </p> </li> <li> <p> Be sure the <tt class="APPLICATION">make distcheck</tt> target works; this is will catch many common makefile errors. </p> </li> <li> <p> Set up a <tt class="APPLICATION">popt</tt> argument parser; at a minimum, you will probably want to support a <tt class="APPLICATION">--geometry</tt> option. </p> </li> <li> <p> All configuration should be possible via the GUI; the easiest way to achieve this is with the Gnome configuration library. </p> </li> <li> <p> Your application should support session management; at a minimum, it should save and restore the currently open documents. </p> </li> <li> <p> If appropriate, use the <tt class="CLASSNAME"> GnomeApp</tt> for your main document windows; this widget gives Gnome applications a consistent look-and-feel. </p> </li> <li> <p> Call <tt class="FUNCTION">gtk_window_set_wmclass()</tt> to set the class hint on your windows, so users can customize how window managers treat them. </p> </li> <li> <p> Use <span class="STRUCTNAME">GnomeUIInfo</span> to create menus and toolbars; when appropriate, use the Gnome macros for standard menu items. </p> </li> <li> <p> Add a status bar to display hints for the menu items, and any other status your application has to report. </p> </li> <li> <p> Use <tt class="CLASSNAME">GnomeDialog</tt> and its subclasses for your dialogs. </p> </li> <li> <p> Add online help, including tooltips and documentation for display in the help browser. </p> </li> <li> <p> Keep a <tt class="FILENAME">ChangeLog</tt> detailing changes to your source code. This will help other people understand the evolution of the application, and help you understand why you made certain changes years later. </p> </li> </ul> </div> <div class="NAVFOOTER"> <br> <br> <table width="100%" border="0" bgcolor="#ffffff" cellpadding= "1" cellspacing="0"> <tr> <td width="25%" bgcolor="#ffffff" align="left"> <a href="sec-dialogs-convenience.html"><font color= "#0000ff" size="2"><b><<< Previous</b></font></a> </td> <td width="25%" colspan="2" bgcolor="#ffffff" align= "center"> <font color="#0000ff" size="2"><b><a href="ggad.html"> <font color="#0000ff" size="2"><b> Home</b></font></a></b></font> </td> <td width="25%" bgcolor="#ffffff" align="right"> <a href="advanced.html"><font color="#0000ff" size="2"> <b>Next >>></b></font></a> </td> </tr> <tr> <td colspan="2" align="left"> <font color="#000000" size="2"><b>Convenience Routines</b></font> </td> <td colspan="2" align="right"> <font color="#000000" size="2"><b>Advanced GTK+/Gnome Techniques</b></font> </td> </tr> </table> </div> </body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -