/usr/share/gtk-doc/html/pygtk/gtk-stock-items.html is in python-gtk2-doc 2.24.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Stock Items</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="gtk-functions.html" title="gtk Functions"><link rel="next" href="gtk-constants.html" title="gtk Constants"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Stock Items</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="gtk-functions.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="gtk-constants.html">Next</a></td></tr></table><hr></div><div class="refentry" title="Stock Items"><a name="gtk-stock-items"></a><div class="titlepage"></div><div class="refnamediv"><h2>Stock Items</h2><p>Stock Items — prebuilt common menu/toolbar items and corresponding
icons</p></div><div class="refsect1" title="Synopsis"><a name="id4147886"></a><h2>Synopsis</h2><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="gtk-stock-items.html#function-gtk--stock-add" title="gtk.stock_add">gtk.stock_add</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>items</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="gtk-stock-items.html#function-gtk--stock-lookup" title="gtk.stock_lookup">gtk.stock_lookup</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>stock_id</code></em></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="gtk-stock-items.html#function-gtk--stock-list-ids" title="gtk.stock_list_ids">gtk.stock_list_ids</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code></pre></div><div class="refsect1" title="Description"><a name="id4147980"></a><h2>Description</h2><p>Stock items represent commonly-used menu or toolbar items such as
"Open" or "Exit". Each stock item is identified by a stock ID; stock IDs are
just strings, but macros such as <code class="literal">gtk.STOCK_OPEN</code> are
provided to avoid typing mistakes in the strings. Applications can register
their own stock items in addition to those built-in to
<code class="literal">PyGTK</code>.</p><p>The stock items are:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.STOCK_ABOUT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_about_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_ADD</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_add_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_APPLY</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_apply_20.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_BOLD</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_text_bold_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_CANCEL</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_cancel_20.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_CDROM</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_cdrom_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_CLEAR</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_clear_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_CLOSE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_close_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_COLOR_PICKER</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_color_picker_25.png"></span> Available in GTK+ 2.2 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_CONVERT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_convert_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_CONNECT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_connect_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_COPY</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_copy_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_CUT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_cut_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DELETE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_trash_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DIALOG_AUTHENTICATION</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_dialog_authentication_48.png"></span> Available in GTK+ 2.4 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DIALOG_ERROR</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_dialog_error_48.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DIALOG_INFO</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_dialog_info_48.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DIALOG_QUESTION</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_dialog_question_48.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DIALOG_WARNING</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_dialog_warning_48.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DIRECTORY</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_directory_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DISCONNECT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_disconnect_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DND</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_dnd_32.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_DND_MULTIPLE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_dnd_multiple_32.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_EDIT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_edit_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_EXECUTE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_exec_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_FILE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_file_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_FIND</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_search_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_FIND_AND_REPLACE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_search_replace_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_FLOPPY</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_save_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_FULLSCREEN</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_fullscreen_24.png"></span> Available in GTK+ 2.8 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_GOTO_BOTTOM</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_bottom_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_GOTO_FIRST</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_first_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_GOTO_LAST</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_last_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_GOTO_TOP</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_top_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_GO_BACK</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_left_arrow_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_GO_DOWN</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_down_arrow_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_GO_FORWARD</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_right_arrow_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_GO_UP</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_up_arrow_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_HARDDISK</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_harddisk_24.png"></span> Available in GTK+ 2.4 and above</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_HELP</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_help_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_HOME</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_home_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_INDENT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_text_indent_24.png"></span> Available in GTK+ 2.4 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_INDEX</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_index_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_INFO</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_info_24.png"></span> Available in GTK+ 2.8 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_ITALIC</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_text_italic_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_JUMP_TO</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_jump_to_24.png"></span> RTL version is <span class="inlinemediaobject"><img src="icons/stock_jump_to_rtl_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_JUSTIFY_CENTER</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_align_center_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_JUSTIFY_FILL</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_align_justify_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_JUSTIFY_LEFT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_align_left_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_JUSTIFY_RIGHT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_align_right_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_LEAVE_FULLSCREEN</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_leave_fullscreen_24.png"></span> Available in GTK+ 2.8 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_MEDIA_FORWARD</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_media_forward_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_MEDIA_NEXT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_media_next_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_MEDIA_PAUSE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_media_pause_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_MEDIA_PLAY</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_media_play_24.png"></span> RTL version is <span class="inlinemediaobject"><img src="icons/stock_media_play_rtl_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_MEDIA_PREVIOUS</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_media_previous_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_MEDIA_RECORD</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_media_record_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_MEDIA_REWIND</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_media_rewind_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_MEDIA_STOP</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_media_stop_24.png"></span> Available in GTK+ 2.6 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_MISSING_IMAGE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_broken_image_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_NETWORK</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_network_24.png"></span>
Available in GTK+ 2.4 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_NEW</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_new_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_NO</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_no_20.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_OK</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_ok_20.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_OPEN</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_open_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PAGE_SETUP</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_page_setup_24.png"></span>Available in GTK+ 2.14 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PASTE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_paste_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PREFERENCES</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_preferences_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PRINT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_print_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PRINT_ERROR</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_print_error_24.png"></span>Available in GTK+ 2.14 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PRINT_PAUSED</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_print_paused_24.png"></span>Available in GTK+ 2.14 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PRINT_PREVIEW</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_print_preview_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PRINT_REPORT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_print_report_24.png"></span>Available in GTK+ 2.14 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PRINT_WARNING</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_print_warning_24.png"></span>Available in GTK+ 2.14 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_PROPERTIES</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_properties_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_QUIT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_exit_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_REDO</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_redo_24.png"></span> RTL version is <span class="inlinemediaobject"><img src="icons/stock_redo_rtl_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_REFRESH</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_refresh_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_REMOVE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_remove_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_REVERT_TO_SAVED</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_revert_24.png"></span> RTL version is <span class="inlinemediaobject"><img src="icons/stock_revert_rtl_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_SAVE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_save_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_SAVE_AS</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_save_as_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_SELECT_COLOR</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_colorselector_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_SELECT_FONT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_font_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_SORT_ASCENDING</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_sort_ascending_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_SORT_DESCENDING</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_sort_descending_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_SPELL_CHECK</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_spellcheck_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_STOP</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_stop_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_STRIKETHROUGH</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_text_strikethrough_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_UNDELETE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_undelete_24.png"></span> RTL version is <span class="inlinemediaobject"><img src="icons/stock_undelete_rtl_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_UNDERLINE</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_text_underline_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_UNDO</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_undo_24.png"></span> RTL version is <span class="inlinemediaobject"><img src="icons/stock_undo_rtl_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_UNINDENT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_text_unindent_24.png"></span> Available in GTK+ 2.4 and above.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_YES</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_yes_20.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_ZOOM_100</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_zoom_1_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_ZOOM_FIT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_zoom_fit_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_ZOOM_IN</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_zoom_in_24.png"></span></td></tr><tr><td><p><span class="term"><code class="literal">gtk.STOCK_ZOOM_OUT</code></span></p></td><td><span class="inlinemediaobject"><img src="icons/stock_zoom_out_24.png"></span></td></tr></tbody></table><p></p></div><div class="refsect1" title="Functions"><a name="id4151203"></a><h2>Functions</h2><div class="refsect2" title="gtk.stock_add"><a name="function-gtk--stock-add"></a><h3>gtk.stock_add</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.stock_add</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>items</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>items</code></strong> :</span></p></td><td>a list or tuple containing 5-tuples of stock
items</td></tr></tbody></table><p>The <code class="function">gtk.stock_add</code>() function registers each
of the stock items in the list or tuple specified by
<em class="parameter"><code>items</code></em>. The stock items are specified by a 5-tuple
containing:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">stock_id - a string identifier</li><li class="listitem">label - a string to use for a label</li><li class="listitem">modifier - a modifier mask (see the <a class="xref" href="gdk-constants.html#gdk-modifier-constants" title="GDK Modifier Constants">GDK Modifier Constants</a> section for more detail on
modifiers)</li><li class="listitem">keyval - an integer key value (see <a class="link" href="class-gdkkeymap.html" title="gtk.gdk.Keymap"><code class="classname">gtk.gdk.Keymap</code></a>)
Together with the modifiers specifies an accelerator.</li><li class="listitem">translation_domain - a string identifier of a translation
domain</li></ul></div><p>If an item already exists with the same stock ID as one of the
items, the old item gets replaced.</p></div><div class="refsect2" title="gtk.stock_lookup"><a name="function-gtk--stock-lookup"></a><h3>gtk.stock_lookup</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.stock_lookup</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>stock_id</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>stock_id</code></em> :</span></p></td><td>a stock item name</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a 5-tuple containing the stock item info or
<code class="literal">None</code> if <em class="parameter"><code>stock_id</code></em> is
unknown</td></tr></tbody></table><p>The <code class="function">gtk.stock_lookup</code>() function looks up
the stock item identified by <em class="parameter"><code>stock_id</code></em> and returns a
5-tuple containing its information. If <em class="parameter"><code>stock_id</code></em> is
not known this function returns <code class="literal">None</code>. See the <a class="link" href="gtk-stock-items.html#function-gtk--stock-add" title="gtk.stock_add"><code class="function">gtk.stock_add</code>()</a>
function for more detail.</p></div><div class="refsect2" title="gtk.stock_list_ids"><a name="function-gtk--stock-list-ids"></a><h3>gtk.stock_list_ids</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.stock_list_ids</span>()</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a list of known stock IDs</td></tr></tbody></table><p>The <code class="function">gtk.stock_list_ids</code>() function returns a
list containing all of the known stock IDs added to a <a class="link" href="class-gtkiconfactory.html" title="gtk.IconFactory"><code class="classname">gtk.IconFactory</code></a>
or registered with the <a class="link" href="gtk-stock-items.html#function-gtk--stock-add" title="gtk.stock_add"><code class="function">gtk.stock_add</code>()</a>
function.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="gtk-functions.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="gtk-constants.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk Functions </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk Constants</td></tr></table></div></body></html>
|