├── scripts ├── geshi │ └── geshi │ │ └── css-gen.cfg ├── revcheck.php ├── testclasses.xml.in ├── cleanup.sh ├── testmanual.xml.in ├── mtoc.xml.in ├── manual.xml.in └── gen_manualxml.php ├── images ├── reference │ └── gtk │ │ ├── gtkarrow.png │ │ ├── gtkbutton.png │ │ ├── gtkcurve.png │ │ ├── gtkdialog.png │ │ ├── gtkframe.png │ │ ├── gtkhpaned.png │ │ ├── gtkhruler.png │ │ ├── gtkvpaned.png │ │ ├── gtkvruler.png │ │ ├── gtkcalendar.png │ │ ├── gtkexpander.png │ │ ├── gtknotebook.png │ │ ├── gtksizegroup.png │ │ ├── gtkstatusbar.png │ │ ├── gtktoolbar.png │ │ ├── gtktreeview.png │ │ ├── gtkaboutdialog.png │ │ ├── gtkaccellabel.png │ │ ├── gtkbox.packing.png │ │ ├── gtkcheckbutton.png │ │ ├── gtkcolorbutton.png │ │ ├── gtkdrawingarea.png │ │ ├── gtkfontbutton.png │ │ ├── gtkhscrollbar.png │ │ ├── gtkprogressbar.png │ │ ├── gtkradiobutton.png │ │ ├── gtkshadowtype.png │ │ ├── gtkstatusicon.png │ │ ├── gtkvscrollbar.png │ │ ├── gtkcolorselection.png │ │ ├── gtkcomboboxentry.png │ │ ├── gtkfileselection.png │ │ ├── gtkimagemenuitem.png │ │ ├── gtkmenutoolitem.png │ │ ├── gtkmessagedialog.png │ │ ├── gtkradiomenuitem.png │ │ ├── gtkscrolledwindow.png │ │ ├── gtktogglebutton.png │ │ ├── gtktoolbar_styles.png │ │ ├── gtkentrycompletion.png │ │ ├── gtklabel │ │ ├── set_angle.png │ │ ├── set_markup.png │ │ ├── select_region.png │ │ ├── set_ellipsize.png │ │ ├── set_justify.png │ │ ├── set_line_wrap.png │ │ ├── set_pattern.png │ │ ├── set_max_width_chars.png │ │ ├── set_mnemonic_widget.png │ │ └── set_markup_with_mnemonic.png │ │ ├── gtktearoffmenuitem.png │ │ ├── gtkbox.pack_start_end.png │ │ ├── gtkcellrenderertoggle.png │ │ ├── gtkfilechooserbutton.png │ │ ├── gtkfilechooserdialog.png │ │ ├── gtkfontselectiondialog.png │ │ ├── gtkscale │ │ └── format-value.png │ │ ├── gtkseparatormenuitem.png │ │ ├── gtkcolorselectiondialog.png │ │ ├── gtkiconview.constructor.png │ │ ├── stock_icons │ │ ├── stock_add_24.png │ │ ├── stock_cut_24.png │ │ ├── stock_dnd_32.png │ │ ├── stock_new_24.png │ │ ├── stock_no_20.png │ │ ├── stock_ok_20.png │ │ ├── stock_top_24.png │ │ ├── stock_yes_20.png │ │ ├── stock_about_24.png │ │ ├── stock_apply_20.png │ │ ├── stock_bottom_24.png │ │ ├── stock_cancel_20.png │ │ ├── stock_cdrom_24.png │ │ ├── stock_clear_24.png │ │ ├── stock_close_24.png │ │ ├── stock_copy_24.png │ │ ├── stock_edit_24.png │ │ ├── stock_exec_24.png │ │ ├── stock_exit_24.png │ │ ├── stock_file_24.png │ │ ├── stock_first_24.png │ │ ├── stock_font_24.png │ │ ├── stock_help_24.png │ │ ├── stock_home_24.png │ │ ├── stock_index_24.png │ │ ├── stock_last_24.png │ │ ├── stock_open_24.png │ │ ├── stock_paste_24.png │ │ ├── stock_print_24.png │ │ ├── stock_redo_24.png │ │ ├── stock_remove_24.png │ │ ├── stock_revert_24.png │ │ ├── stock_save_24.png │ │ ├── stock_search_24.png │ │ ├── stock_stop_24.png │ │ ├── stock_trash_24.png │ │ ├── stock_undo_24.png │ │ ├── stock_zoom_1_24.png │ │ ├── stock_connect_24.png │ │ ├── stock_convert_24.png │ │ ├── stock_harddisk_24.png │ │ ├── stock_jump_to_24.png │ │ ├── stock_network_24.png │ │ ├── stock_redo_rtl_24.png │ │ ├── stock_refresh_24.png │ │ ├── stock_save_as_24.png │ │ ├── stock_undelete_24.png │ │ ├── stock_undo_rtl_24.png │ │ ├── stock_up_arrow_24.png │ │ ├── stock_zoom_fit_24.png │ │ ├── stock_zoom_in_24.png │ │ ├── stock_zoom_out_24.png │ │ ├── stock_align_left_24.png │ │ ├── stock_align_right_24.png │ │ ├── stock_dialog_info_48.png │ │ ├── stock_directory_24.png │ │ ├── stock_disconnect_24.png │ │ ├── stock_down_arrow_24.png │ │ ├── stock_jump_to_rtl_24.png │ │ ├── stock_left_arrow_24.png │ │ ├── stock_media_next_24.png │ │ ├── stock_media_pause_24.png │ │ ├── stock_media_play_24.png │ │ ├── stock_media_stop_24.png │ │ ├── stock_preferences_24.png │ │ ├── stock_properties_24.png │ │ ├── stock_revert_rtl_24.png │ │ ├── stock_right_arrow_24.png │ │ ├── stock_spellcheck_24.png │ │ ├── stock_text_bold_24.png │ │ ├── stock_text_indent_24.png │ │ ├── stock_text_italic_24.png │ │ ├── stock_align_center_24.png │ │ ├── stock_align_justify_24.png │ │ ├── stock_broken_image_24.png │ │ ├── stock_color_picker_25.png │ │ ├── stock_colorselector_24.png │ │ ├── stock_dialog_error_48.png │ │ ├── stock_dnd_multiple_32.png │ │ ├── stock_media_forward_24.png │ │ ├── stock_media_record_24.png │ │ ├── stock_media_rewind_24.png │ │ ├── stock_print_preview_24.png │ │ ├── stock_text_unindent_24.png │ │ ├── stock_undelete_rtl_24.png │ │ ├── stock_dialog_question_48.png │ │ ├── stock_dialog_warning_48.png │ │ ├── stock_media_play_rtl_24.png │ │ ├── stock_media_previous_24.png │ │ ├── stock_search_replace_24.png │ │ ├── stock_sort_ascending_24.png │ │ ├── stock_sort_descending_24.png │ │ ├── stock_text_underline_24.png │ │ ├── stock_text_strikethrough_24.png │ │ └── stock_dialog_authentication_48.png │ │ └── gtkscrolledwindow │ │ └── placement.png └── tutorials │ └── helloadvanced.png ├── dbxml ├── dbtblcals.dtd ├── dbtblxchg.dtd ├── tblcals.xml ├── tblxchg.xml ├── xinclude.mod ├── ent │ ├── iso-amsc.ent │ ├── iso-dia.ent │ └── iso-amso.ent ├── test.xml └── dbgenent.ent ├── examples ├── tutorials │ ├── changes │ │ ├── extension_load.phpw │ │ ├── ampersand_php5.phpw │ │ └── extension_check.phpw │ ├── helloglade │ │ ├── loading.phpw │ │ ├── partially.phpw │ │ ├── autoconnect.phpw │ │ ├── autoconnect_instance.phpw │ │ ├── connecting_by_hand.phpw │ │ └── helloglade.glade │ ├── signals │ │ ├── simple.phpw │ │ ├── multiple.phpw │ │ └── custom.phpw │ ├── helloworld │ │ ├── helloworld.phpw │ │ └── helloworld2.phpw │ ├── packing │ │ ├── fixed.phpw │ │ ├── boxes.phpw │ │ └── table.phpw │ └── objectoriented │ │ └── simple.phpw ├── reference │ ├── gtk │ │ ├── gtkbutton │ │ │ ├── images │ │ │ │ └── publica.png │ │ │ └── gtkbutton.php │ │ ├── gtkaboutdialog │ │ │ ├── set_logo.phpw │ │ │ └── constructor.phpw │ │ ├── gtkliststore │ │ │ ├── append.php │ │ │ ├── insert.php │ │ │ ├── swap.php │ │ │ ├── move_before.php │ │ │ └── set.php │ │ ├── gtklabel │ │ │ ├── get_selection_bounds.phpw │ │ │ ├── set_pattern.phpw │ │ │ ├── set_max_width_chars.phpw │ │ │ ├── set_markup.phpw │ │ │ ├── set_markup_with_mnemonic.phpw │ │ │ ├── set_justify.phpw │ │ │ ├── select_region.phpw │ │ │ ├── get_set_angle.phpw │ │ │ ├── set_text_with_mnemonic.phpw │ │ │ ├── set_line_wrap.phpw │ │ │ ├── set_attributes.phpw │ │ │ ├── constructor.phpw │ │ │ ├── set_text.phpw │ │ │ ├── set_mnemonic_widget.phpw │ │ │ ├── set_ellipsize.phpw │ │ │ └── set_label.phpw │ │ ├── gtkhandlebox │ │ │ └── constructor.phpw │ │ ├── gtkhruler │ │ │ └── constructor.phpw │ │ ├── gtkvruler │ │ │ └── constructor.phpw │ │ ├── gtktreestore │ │ │ ├── iter_is_valid.phpw │ │ │ ├── iter_depth.phpw │ │ │ ├── move_after.phpw │ │ │ ├── set.phpw │ │ │ ├── insert_before.phpw │ │ │ ├── insert_after.phpw │ │ │ ├── append.phpw │ │ │ └── insert.phpw │ │ ├── gtkwindow │ │ │ ├── constructor.phpw │ │ │ ├── activate_default.phpw │ │ │ ├── get_focus.phpw │ │ │ ├── add_mnemonic.phpw │ │ │ └── mnemonic_activate.phpw │ │ ├── gtkeditable │ │ │ └── insert-text.phpw │ │ ├── gtkwidget │ │ │ ├── button-press-event.phpw │ │ │ ├── get_allocation.phpw │ │ │ ├── add_events.phpw │ │ │ ├── key-press-event.phpw │ │ │ └── path.php │ │ ├── gtkhpaned │ │ │ └── constructor.phpw │ │ ├── gtkvpaned │ │ │ └── constructor.phpw │ │ ├── gtkmessagedialog │ │ │ └── constructor.phpw │ │ ├── gtktreemodel │ │ │ ├── foreach.php │ │ │ └── filter_new.phpw │ │ ├── gtkcombobox │ │ │ ├── new_text.phpw │ │ │ └── constructor.phpw │ │ ├── gtktooltips │ │ │ └── constructor.phpw │ │ ├── gtkstatusbar │ │ │ └── constructor.phpw │ │ ├── gtkradiobutton │ │ │ └── constructor.phpw │ │ ├── gtktogglebutton │ │ │ └── constructor.phpw │ │ ├── gtktextbuffer │ │ │ ├── buffer_from_view.phpw │ │ │ └── constructor.phpw │ │ ├── gtkscale │ │ │ └── format-value.phpw │ │ ├── gtksizegroup │ │ │ └── constructor.phpw │ │ ├── gtkentrycompletion │ │ │ └── constructor.phpw │ │ ├── gtkfilechooserdialog │ │ │ └── construct.php │ │ ├── gtkcolorselection │ │ │ └── constructor.phpw │ │ ├── gtkmenubar │ │ │ └── constructor.phpw │ │ ├── gtkscrolledwindow │ │ │ └── constructor.phpw │ │ ├── gtkexpander │ │ │ └── constructor.phpw │ │ ├── gtktreeview │ │ │ ├── insert_column_with_data_func.phpw │ │ │ └── selection.phpw │ │ ├── gtktearoffmenuitem │ │ │ └── constructor.phpw │ │ ├── gtkmenutoolbutton │ │ │ └── constructor.phpw │ │ ├── gtkdialog │ │ │ └── constructor.phpw │ │ ├── gtk │ │ │ └── timeout_add.phpw │ │ ├── gtkiconview │ │ │ └── constructor.phpw │ │ ├── gtknotebook │ │ │ ├── constructor.phpw │ │ │ └── switch-page.phpw │ │ ├── gtkframe │ │ │ └── shadows.phpw │ │ ├── gtkseparatormenuitem │ │ │ └── constructor.phpw │ │ ├── gtkaccellabel │ │ │ └── constructor.phpw │ │ ├── gtkfileselection │ │ │ └── constructor.phpw │ │ ├── gtkentry │ │ │ └── constructor.phpw │ │ ├── gtkradiomenuitem │ │ │ └── constructor.phpw │ │ ├── gtkbox │ │ │ └── start_vs_end.phpw │ │ ├── gtktoolbar │ │ │ ├── set_style.phpw │ │ │ └── popup.phpw │ │ ├── gtkscrollbar │ │ │ └── vscrollbar.phpw │ │ ├── gtkfilefilter │ │ │ └── add_custom.phpw │ │ ├── gtkvbox │ │ │ └── constructor.phpw │ │ └── gtkfilechooserbutton │ │ │ └── constructor.phpw │ ├── gdk │ │ └── gdkpixbuf │ │ │ ├── save.phpw │ │ │ ├── new_from_file.phpw │ │ │ ├── save_jpg.phpw │ │ │ ├── new_from_file_at_size.phpw │ │ │ ├── put_pixel.phpw │ │ │ ├── get_pixel.phpw │ │ │ ├── fill.phpw │ │ │ ├── fill_area.phpw │ │ │ └── new_from_gd.phpw │ └── gobject │ │ └── signal_query.php └── test │ ├── gtkmessagedialog.phpw │ ├── gtkaccellabel.phpw │ └── gtkaboutdialog.phpw ├── updater ├── doUpdate.sh ├── classdoc.tpl ├── checkXml.sh ├── tests │ └── DocUpdateTestClass.php ├── remxpath.php ├── createClassDoc.php └── prepxpath.php ├── stylesheets ├── VERSION ├── common │ └── l10n.dtd └── html │ └── chunk.xsl.in ├── manual ├── bg │ └── translation.xml ├── en │ ├── tutorials │ │ └── translation.xml │ ├── reference │ │ ├── extra │ │ │ ├── gtkplot.xml │ │ │ └── gtkiconlist.xml │ │ ├── html │ │ │ └── gtkhtml.xml │ │ ├── gtk │ │ │ ├── gtkctreenode.xml │ │ │ ├── gtktreemodelrowiterator.xml │ │ │ ├── gtktreeiter.xml │ │ │ ├── gtkseparator.xml │ │ │ ├── gtkimcontextsimple.xml │ │ │ ├── gtkborder.xml │ │ │ ├── gtktreemodelrow.xml │ │ │ ├── gtkrequisition.xml │ │ │ ├── gtktextattributes.xml │ │ │ ├── gtkimmulticontext.xml │ │ │ ├── gtktreedragdest.xml │ │ │ └── gtkaccessible.xml │ │ ├── libsexy │ │ │ ├── sexyiconentry.xml │ │ │ ├── sexyurllabel.xml │ │ │ ├── sexytreeview.xml │ │ │ └── sexytooltip.xml │ │ ├── atk │ │ │ ├── atkutil.xml │ │ │ ├── atknoopobject.xml │ │ │ ├── atknoopobjectfactory.xml │ │ │ ├── atkrelation.xml │ │ │ └── atkobjectfactory.xml │ │ ├── pango │ │ │ └── pangocolor.xml │ │ ├── sourceview │ │ │ └── gtksourcetagtable.xml │ │ ├── spell │ │ │ └── gtkspell.xml │ │ └── gdk │ │ │ └── gdkcolor.xml │ └── appendix │ │ └── translicense.xml ├── pt_BR │ ├── tutorials │ │ └── translation.xml │ ├── reference │ │ └── gtk │ │ │ ├── gtktreeiter.xml │ │ │ └── gtkseparator.xml │ ├── appendix │ │ └── translicense.xml │ └── bookinfo.xml ├── zh_cn │ ├── tutorials │ │ └── translation.xml │ ├── translation.xml │ ├── bookinfo.xml │ ├── preface.xml │ └── appendix │ │ └── credits.xml ├── ja │ ├── translation.xml │ └── bookinfo.xml ├── tutorials.xml ├── appendix.xml └── contributors.ent ├── .gitignore └── runfirst.sh /scripts/geshi/geshi/css-gen.cfg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scripts/revcheck.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/scripts/revcheck.php -------------------------------------------------------------------------------- /images/reference/gtk/gtkarrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkarrow.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkbutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkbutton.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkcurve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkcurve.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkdialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkdialog.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkframe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkframe.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkhpaned.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkhpaned.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkhruler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkhruler.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkvpaned.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkvpaned.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkvruler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkvruler.png -------------------------------------------------------------------------------- /images/tutorials/helloadvanced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/tutorials/helloadvanced.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkcalendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkcalendar.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkexpander.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkexpander.png -------------------------------------------------------------------------------- /images/reference/gtk/gtknotebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtknotebook.png -------------------------------------------------------------------------------- /images/reference/gtk/gtksizegroup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtksizegroup.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkstatusbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkstatusbar.png -------------------------------------------------------------------------------- /images/reference/gtk/gtktoolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtktoolbar.png -------------------------------------------------------------------------------- /images/reference/gtk/gtktreeview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtktreeview.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkaboutdialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkaboutdialog.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkaccellabel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkaccellabel.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkbox.packing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkbox.packing.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkcheckbutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkcheckbutton.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkcolorbutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkcolorbutton.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkdrawingarea.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkdrawingarea.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkfontbutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkfontbutton.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkhscrollbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkhscrollbar.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkprogressbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkprogressbar.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkradiobutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkradiobutton.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkshadowtype.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkshadowtype.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkstatusicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkstatusicon.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkvscrollbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkvscrollbar.png -------------------------------------------------------------------------------- /dbxml/dbtblcals.dtd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | %docbook; 5 | 6 | -------------------------------------------------------------------------------- /dbxml/dbtblxchg.dtd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | %docbook; 5 | 6 | -------------------------------------------------------------------------------- /images/reference/gtk/gtkcolorselection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkcolorselection.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkcomboboxentry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkcomboboxentry.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkfileselection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkfileselection.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkimagemenuitem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkimagemenuitem.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkmenutoolitem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkmenutoolitem.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkmessagedialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkmessagedialog.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkradiomenuitem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkradiomenuitem.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkscrolledwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkscrolledwindow.png -------------------------------------------------------------------------------- /images/reference/gtk/gtktogglebutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtktogglebutton.png -------------------------------------------------------------------------------- /images/reference/gtk/gtktoolbar_styles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtktoolbar_styles.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkentrycompletion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkentrycompletion.png -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/set_angle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/set_angle.png -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/set_markup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/set_markup.png -------------------------------------------------------------------------------- /images/reference/gtk/gtktearoffmenuitem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtktearoffmenuitem.png -------------------------------------------------------------------------------- /examples/tutorials/changes/extension_load.phpw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/reference/gtk/gtkbox.pack_start_end.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkbox.pack_start_end.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkcellrenderertoggle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkcellrenderertoggle.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkfilechooserbutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkfilechooserbutton.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkfilechooserdialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkfilechooserdialog.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkfontselectiondialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkfontselectiondialog.png -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/select_region.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/select_region.png -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/set_ellipsize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/set_ellipsize.png -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/set_justify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/set_justify.png -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/set_line_wrap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/set_line_wrap.png -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/set_pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/set_pattern.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkscale/format-value.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkscale/format-value.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkseparatormenuitem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkseparatormenuitem.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkcolorselectiondialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkcolorselectiondialog.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkiconview.constructor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkiconview.constructor.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_add_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_add_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_cut_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_cut_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_dnd_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_dnd_32.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_new_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_new_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_no_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_no_20.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_ok_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_ok_20.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_top_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_top_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_yes_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_yes_20.png -------------------------------------------------------------------------------- /examples/reference/gtk/gtkbutton/images/publica.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/examples/reference/gtk/gtkbutton/images/publica.png -------------------------------------------------------------------------------- /images/reference/gtk/gtkscrolledwindow/placement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtkscrolledwindow/placement.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_about_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_about_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_apply_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_apply_20.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_bottom_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_bottom_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_cancel_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_cancel_20.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_cdrom_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_cdrom_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_clear_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_clear_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_close_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_close_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_copy_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_copy_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_edit_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_edit_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_exec_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_exec_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_exit_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_exit_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_file_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_file_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_first_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_first_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_font_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_font_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_help_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_help_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_home_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_home_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_index_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_index_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_last_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_last_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_open_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_open_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_paste_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_paste_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_print_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_print_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_redo_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_redo_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_remove_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_remove_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_revert_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_revert_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_save_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_save_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_search_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_search_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_stop_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_stop_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_trash_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_trash_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_undo_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_undo_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_zoom_1_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_zoom_1_24.png -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/set_max_width_chars.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/set_max_width_chars.png -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/set_mnemonic_widget.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/set_mnemonic_widget.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_connect_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_connect_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_convert_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_convert_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_harddisk_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_harddisk_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_jump_to_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_jump_to_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_network_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_network_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_redo_rtl_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_redo_rtl_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_refresh_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_refresh_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_save_as_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_save_as_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_undelete_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_undelete_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_undo_rtl_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_undo_rtl_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_up_arrow_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_up_arrow_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_zoom_fit_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_zoom_fit_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_zoom_in_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_zoom_in_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_zoom_out_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_zoom_out_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_align_left_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_align_left_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_align_right_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_align_right_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_dialog_info_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_dialog_info_48.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_directory_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_directory_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_disconnect_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_disconnect_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_down_arrow_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_down_arrow_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_jump_to_rtl_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_jump_to_rtl_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_left_arrow_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_left_arrow_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_media_next_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_media_next_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_media_pause_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_media_pause_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_media_play_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_media_play_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_media_stop_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_media_stop_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_preferences_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_preferences_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_properties_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_properties_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_revert_rtl_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_revert_rtl_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_right_arrow_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_right_arrow_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_spellcheck_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_spellcheck_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_text_bold_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_text_bold_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_text_indent_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_text_indent_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_text_italic_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_text_italic_24.png -------------------------------------------------------------------------------- /updater/doUpdate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | path="`dirname "$0"`" 3 | php "$path/prepxpath.php" $@ 4 | php "$path/updateMethods.php" $@ 5 | php "$path/remxpath.php" $@ 6 | -------------------------------------------------------------------------------- /images/reference/gtk/gtklabel/set_markup_with_mnemonic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/gtklabel/set_markup_with_mnemonic.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_align_center_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_align_center_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_align_justify_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_align_justify_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_broken_image_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_broken_image_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_color_picker_25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_color_picker_25.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_colorselector_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_colorselector_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_dialog_error_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_dialog_error_48.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_dnd_multiple_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_dnd_multiple_32.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_media_forward_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_media_forward_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_media_record_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_media_record_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_media_rewind_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_media_rewind_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_print_preview_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_print_preview_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_text_unindent_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_text_unindent_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_undelete_rtl_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_undelete_rtl_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_dialog_question_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_dialog_question_48.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_dialog_warning_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_dialog_warning_48.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_media_play_rtl_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_media_play_rtl_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_media_previous_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_media_previous_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_search_replace_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_search_replace_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_sort_ascending_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_sort_ascending_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_sort_descending_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_sort_descending_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_text_underline_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_text_underline_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_text_strikethrough_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_text_strikethrough_24.png -------------------------------------------------------------------------------- /images/reference/gtk/stock_icons/stock_dialog_authentication_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/doc-gtk/master/images/reference/gtk/stock_icons/stock_dialog_authentication_48.png -------------------------------------------------------------------------------- /examples/tutorials/changes/ampersand_php5.phpw: -------------------------------------------------------------------------------- 1 | set_text('1'); 5 | $b = $a; 6 | $b->set_text('2'); 7 | echo $a->get_text();//is 2 8 | ?> -------------------------------------------------------------------------------- /examples/tutorials/changes/extension_check.phpw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /stylesheets/VERSION: -------------------------------------------------------------------------------- 1 | 2 | 4 | 1.39 5 | 6 | 7 | -------------------------------------------------------------------------------- /examples/tutorials/helloglade/loading.phpw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkaboutdialog/set_logo.phpw: -------------------------------------------------------------------------------- 1 | set_default_icon( 4 | $dlg->render_icon(Gtk::STOCK_CDROM, Gtk::ICON_SIZE_LARGE_TOOLBAR) 5 | ); 6 | $dlg->set_name('Logo demo'); 7 | $dlg->set_logo(null); 8 | $dlg->run(); 9 | ?> -------------------------------------------------------------------------------- /examples/reference/gdk/gdkpixbuf/save.phpw: -------------------------------------------------------------------------------- 1 | fill(128, 255, 0, 255); 7 | 8 | //save it as a png file 9 | $pixbuf->save('green.png', 'png'); 10 | ?> -------------------------------------------------------------------------------- /examples/reference/gdk/gdkpixbuf/new_from_file.phpw: -------------------------------------------------------------------------------- 1 | getMessage() . "\n"; 9 | } 10 | ?> -------------------------------------------------------------------------------- /examples/reference/gdk/gdkpixbuf/save_jpg.phpw: -------------------------------------------------------------------------------- 1 | fill(128, 255, 0, 255); 7 | 8 | //save it as a png file 9 | $pixbuf->save('green.jpg', 'jpg', array('quality' => 85)); 10 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkliststore/append.php: -------------------------------------------------------------------------------- 1 | append(array('Tokio', 34100000)); 7 | //append another row 8 | $store->append(array('Mexico city', 22650000)); 9 | ?> 10 | -------------------------------------------------------------------------------- /manual/bg/translation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | i18n: Работа с gettext 5 | 6 | 7 | Относно този урок 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /updater/classdoc.tpl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {CLASSNAME} 6 | {CLASSPARENT} 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /manual/en/tutorials/translation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | i18n: Working with gettext 5 | 6 | 7 | About this tutorial 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /manual/en/reference/extra/gtkplot.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkPlot 6 | GtkWidget 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /manual/en/reference/html/gtkhtml.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkHTML 6 | GtkLayout 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /scripts/testclasses.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test classes 4 | 5 | 6 | Classes to test 7 | This is a list of classes which have recently been changed 8 | @TEST_REFERENCES@ 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/tutorials/signals/simple.phpw: -------------------------------------------------------------------------------- 1 | add($but); 7 | $win->show_all(); 8 | 9 | $but->connect_simple('clicked', 'quit'); 10 | 11 | function quit() 12 | { 13 | echo "You have quit!\n"; 14 | Gtk::main_quit(); 15 | } 16 | 17 | Gtk::main(); 18 | 19 | ?> 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | autom4te.cache/ 3 | build/ 4 | config.log 5 | config.status 6 | configure 7 | manual/chapters.ent 8 | scripts/genchapterents.php 9 | scripts/manual.xml 10 | scripts/mtoc.xml 11 | scripts/testmanual.xml 12 | stylesheets/html/chunk.xsl 13 | stylesheets/html/name_to_id.xsl 14 | stylesheets/html/phpweb.xsl 15 | stylesheets/html/updates.xsl 16 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/get_selection_bounds.phpw: -------------------------------------------------------------------------------- 1 | set_selectable(true); 7 | 8 | // Select a region. 9 | $label->select_region(3, 7); 10 | 11 | // Dump out the selection bounds. 12 | print_r($label->get_selection_bounds()); 13 | ?> 14 | -------------------------------------------------------------------------------- /manual/en/reference/extra/gtkiconlist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkIconList 6 | GtkFixed 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /scripts/cleanup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # cleans up a bit 3 | # Note: doesn't clean up the reference (which would be silly) 4 | 5 | cd "`dirname "$0"`" 6 | 7 | if [ ! -d ../manual ]; then 8 | echo "Please go to the scripts directory before running this script" 9 | echo "Usage: cleanup.sh" 10 | exit 1 11 | fi 12 | 13 | rm ../manual/*/chapters.ent 14 | rm manual.xml 15 | -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtkctreenode.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkCTreeNode 6 | GPointer 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /manual/en/reference/libsexy/sexyiconentry.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SexyIconEntry 6 | GtkEntry 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /manual/en/reference/libsexy/sexyurllabel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SexyUrlLabel 6 | GtkLabel 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /runfirst.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | php="php" 4 | language="en" 5 | 6 | cd "`dirname "$0"`" 7 | 8 | $php -q scripts/gen_chapterents.php $language 9 | $php -q scripts/gen_manualxml.php $language 10 | 11 | echo "" 12 | echo "Everything is set up for doccing" 13 | echo "" 14 | echo "Now type:" 15 | echo " scripts/gen_manual.sh $language html" 16 | echo "to compile the manual" 17 | -------------------------------------------------------------------------------- /manual/pt_BR/tutorials/translation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | i18n: Trabalhando com o gettext 5 | 6 | 7 | Sobre este tutorial 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtktreemodelrowiterator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkTreeModelRowIterator 6 | Traversable 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /manual/zh_cn/tutorials/translation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | i18n: 使用 gettext 6 | 7 | 8 | 关于该指南 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /manual/zh_cn/translation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /manual/ja/translation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | このファイルは、日本語訳を作成するための管理用ページです。 5 | 翻訳のリビジョン情報を得るには、php-gtk-doc/scripts/revcheck.php を実行してください。 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /manual/en/reference/atk/atkutil.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AtkUtil 6 | GObject 7 | 8 | A utility class which supports the adding and removal of event listeners. 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkhandlebox/constructor.phpw: -------------------------------------------------------------------------------- 1 | add(new GtkLabel('I can be detached')); 6 | $vbox->pack_start($handlebox, false); 7 | 8 | $vbox->pack_start(new GtkTextView()); 9 | 10 | 11 | $wnd = new GtkWindow(); 12 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 13 | $wnd->add($vbox); 14 | $wnd->show_all(); 15 | Gtk::main(); 16 | ?> -------------------------------------------------------------------------------- /examples/tutorials/helloworld/helloworld.phpw: -------------------------------------------------------------------------------- 1 | set_title('Hello world'); 8 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 9 | 10 | $lblHello = new GtkLabel("Just wanted to say\r\n'Hello world!'"); 11 | $wnd->add($lblHello); 12 | 13 | $wnd->show_all(); 14 | Gtk::main(); 15 | ?> -------------------------------------------------------------------------------- /examples/tutorials/helloglade/partially.phpw: -------------------------------------------------------------------------------- 1 | get_widget('btnClose'); 9 | 10 | //This will fail, as the window isn't loaded: 11 | $window = $glade->get_widget('wndClose'); 12 | //Output is NULL 13 | var_dump($window); 14 | ?> -------------------------------------------------------------------------------- /examples/tutorials/packing/fixed.phpw: -------------------------------------------------------------------------------- 1 | set_title('GtkFixed test'); 4 | $w->connect_simple('destroy', array('gtk', 'main_quit')); 5 | 6 | $btn = new GtkButton('Button'); 7 | $txt = new GtkEntry(); 8 | 9 | $fixed = new GtkFixed(); 10 | $w->add($fixed); 11 | 12 | $fixed->put($btn, 10, 100); 13 | $fixed->put($txt, 50, 10); 14 | $btn->set_size_request(150, -1); 15 | 16 | $w->show_all(); 17 | Gtk::main(); 18 | ?> -------------------------------------------------------------------------------- /examples/reference/gdk/gdkpixbuf/new_from_file_at_size.phpw: -------------------------------------------------------------------------------- 1 | get_width() . 'x' . $pixbuf->get_height() . "\n"; 6 | } catch (Exception $e) { 7 | //Here we catch errors that could occur 8 | echo "An error occured:\n"; 9 | echo $e->getMessage() . "\n"; 10 | } 11 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkhruler/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_range($lower, $upper, $position, $max_size);; 8 | 9 | //standard stuff for window creation 10 | $wnd = new GtkWindow(); 11 | $wnd->set_border_width(5); 12 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 13 | $wnd->add($ruler); 14 | $wnd->show_all(); 15 | Gtk::main(); 16 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkvruler/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_range($lower, $upper, $position, $max_size);; 8 | 9 | //standard stuff for window creation 10 | $wnd = new GtkWindow(); 11 | $wnd->set_border_width(5); 12 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 13 | $wnd->add($ruler); 14 | $wnd->show_all(); 15 | Gtk::main(); 16 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkliststore/insert.php: -------------------------------------------------------------------------------- 1 | insert(1, array('Tokio', 34100000)); 7 | $store->insert(0, array('Mexico city', 22650000)); 8 | 9 | //use the iterator to set the data after insertion 10 | $iter = $store->insert(1); 11 | $store->set($iter, 0, 'Seoul', 1, 22250000); 12 | ?> 13 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreestore/iter_is_valid.phpw: -------------------------------------------------------------------------------- 1 | append(null, array('row')); 7 | //that should return true, as the row exists 8 | var_dump($store->iter_is_valid($row)); 9 | 10 | //remove that row from the store 11 | $store->remove($row); 12 | //shouldn't be valid any more 13 | var_dump($store->iter_is_valid($row)); 14 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwindow/constructor.phpw: -------------------------------------------------------------------------------- 1 | add(new GtkButton('1')); 7 | $window->add(new GtkButton('2')); 8 | 9 | /* 10 | Spits out: 11 | Gtk-WARNING **: Attempting to add a widget with type GtkButton to 12 | a GtkWindow, but as a GtkBin subclass a GtkWindow can only 13 | contain one widget at a time; it already contains a widget 14 | of type GtkButton 15 | */ 16 | ?> -------------------------------------------------------------------------------- /manual/tutorials.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | &PHPGTK2Tutorials; 4 | &tutorials.installation; 5 | &tutorials.hello_world; 6 | &tutorials.helloadvanced; 7 | &tutorials.glade; 8 | &tutorials.changes; 9 | &tutorials.gtk_pango_co; 10 | &tutorials.packing; 11 | &tutorials.objectorientation; 12 | &tutorials.signals; 13 | &tutorials.treeview; 14 | &tutorials.doccing; 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkeditable/insert-text.phpw: -------------------------------------------------------------------------------- 1 | connect('insert-text', 'onInsertText', 'test'); 4 | 5 | function onInsertText($entry, $new_text, $new_text_len, $pos, $userdata) 6 | { 7 | echo $new_text . ':' . $new_text_len . ':' . get_class($pos) . ':' . $userdata . "\n"; 8 | } 9 | 10 | $wnd = new GtkWindow(); 11 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 12 | $wnd->add($entry); 13 | $wnd->show_all(); 14 | Gtk::main(); 15 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkbutton/gtkbutton.php: -------------------------------------------------------------------------------- 1 | set_default_size(120,120); 4 | 5 | $vbox = new GtkVBox; 6 | 7 | // new Button 8 | $button = new GtkButton; 9 | $button->set_label('Icon Test'); 10 | $p = GdkPixbuf::new_from_file('images/publica.png'); 11 | $a = new GtkImage; 12 | $a->set_from_pixbuf($p); 13 | $button->set_image($a); 14 | $vbox->pack_start($button, false, false); 15 | 16 | $window->add($vbox); 17 | $window->show_all(); 18 | Gtk::main(); 19 | ?> 20 | -------------------------------------------------------------------------------- /examples/tutorials/objectoriented/simple.phpw: -------------------------------------------------------------------------------- 1 | set_title('Hello World'); 9 | $this->connect_simple('destroy', array('gtk', 'main_quit')); 10 | 11 | $label = new GtkLabel("Just wanted to say\r\n'Hello World!'"); 12 | 13 | $this->add($label); 14 | $this->show_all(); 15 | } 16 | } 17 | 18 | new Hello(); 19 | Gtk::main(); 20 | 21 | ?> 22 | -------------------------------------------------------------------------------- /examples/reference/gdk/gdkpixbuf/put_pixel.phpw: -------------------------------------------------------------------------------- 1 | put_pixel($x, 50, 255, 255, 255, 255); 8 | } 9 | 10 | 11 | //Display the pixbuf by using a GtkImage widget 12 | $wnd = new GtkWindow(); 13 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 14 | $wnd->add(GtkImage::new_from_pixbuf($pixbuf)); 15 | $wnd->show_all(); 16 | Gtk::main(); 17 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkliststore/swap.php: -------------------------------------------------------------------------------- 1 | insert(0, array('Tokio', 34100000)); 6 | $mexico = $store->insert(1, array('Mexico city', 22650000)); 7 | 8 | //we swap so that mexico is first 9 | $store->swap($tokio, $mexico); 10 | 11 | //show the list 12 | function echoRow($store, $path, $iter) { 13 | echo $store->get_value($iter, 0) . "\r\n"; 14 | } 15 | $store->foreach('echoRow'); 16 | ?> 17 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwidget/button-press-event.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 4 | 5 | //we want to receive mouse button press events 6 | $wnd->set_events(Gdk::BUTTON_PRESS_MASK); 7 | $wnd->connect('button-press-event', 'onButtonPress'); 8 | 9 | //here we handle the mouse button press events 10 | function onButtonPress($widget, $event) { 11 | $widget->set_title($event->button . ' - ' . $event->x . ':' . $event->y); 12 | } 13 | $wnd->show(); 14 | 15 | Gtk::main(); 16 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_pattern.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a label. 9 | $label = new GtkLabel('FooBarBaz'); 10 | 11 | // Set the pattern. 12 | $label->set_pattern('___ ___'); 13 | 14 | // Add the label to the window. 15 | $window->add($label); 16 | 17 | // Show the window and start the main loop. 18 | $window->show_all(); 19 | Gtk::main(); 20 | ?> 21 | -------------------------------------------------------------------------------- /examples/tutorials/packing/boxes.phpw: -------------------------------------------------------------------------------- 1 | set_title('GtkBox test'); 4 | $w->connect_simple('destroy', array('gtk', 'main_quit')); 5 | 6 | $lbl = new GtkLabel('Your name:'); 7 | $scrwnd = new GtkScrolledWindow(); 8 | $txt = new GtkTextView(); 9 | $scrwnd->add($txt); 10 | $btn = new GtkButton('Send'); 11 | 12 | $vbox = new GtkVBox(); 13 | $w->add($vbox); 14 | 15 | $vbox->pack_start($lbl, false); 16 | $vbox->pack_start($scrwnd, true, true); 17 | $vbox->pack_start($btn, false); 18 | 19 | $w->show_all(); 20 | Gtk::main(); 21 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkliststore/move_before.php: -------------------------------------------------------------------------------- 1 | insert(0, array('Tokio', 34100000)); 5 | $mexico = $store->insert(1, array('Mexico city', 22650000)); 6 | $seoul = $store->insert(2, array('Seoul', 22250000)); 7 | 8 | //move Seoul before Mexico 9 | $store->move_before($seoul, $mexico); 10 | 11 | //show the list 12 | function echoRow($store, $path, $iter) { 13 | echo $store->get_value($iter, 0) . "\r\n"; 14 | } 15 | $store->foreach('echoRow'); 16 | ?> 17 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreestore/iter_depth.phpw: -------------------------------------------------------------------------------- 1 | append($last, array('row ' . $nA)); 13 | //display the depth of the created iterator 14 | echo 'Depth at level #' . $nA . ': ' . $store->iter_depth($last) . "\r\n"; 15 | } 16 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_max_width_chars.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a label. 9 | $label = new GtkLabel('Exampel Label'); 10 | 11 | // Set the max width in characters. 12 | $label->set_max_width_chars(10); 13 | 14 | // Add the label to the window. 15 | $window->add($label); 16 | 17 | // Show the window and start the main loop. 18 | $window->show_all(); 19 | Gtk::main(); 20 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_markup.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a label. 9 | $label = new GtkLabel(); 10 | 11 | // Set some text with Pango markup. 12 | $label->set_markup('Example Label'); 13 | 14 | // Add the label to the window. 15 | $window->add($label); 16 | 17 | // Show the window and start the main loop. 18 | $window->show_all(); 19 | Gtk::main(); 20 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwidget/get_allocation.phpw: -------------------------------------------------------------------------------- 1 | add($lbl); 5 | 6 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | function showAllocation($wnd, $lbl) 9 | { 10 | $allocation = $wnd->get_allocation(); 11 | $lbl->set_text( 12 | $allocation->x . 'x' . $allocation->y . ', ' . 13 | $allocation->width . 'x' . $allocation->height 14 | ); 15 | return true; 16 | } 17 | 18 | $wnd->show_all(); 19 | Gtk::timeout_add(100, 'showAllocation', $wnd, $lbl); 20 | Gtk::main(); 21 | ?> -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtktreeiter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkTreeIter 6 | GBoxed 7 | 8 | A reference to a row in a tree/list data model. 9 | 10 | 11 | 12 | A GtkTreeIter is a reference to 13 | a row in a GtkTreeStore or 14 | GtkListStore. 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_markup_with_mnemonic.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a label. 9 | $label = new GtkLabel(); 10 | 11 | // Set some text with Pango markup. 12 | $label->set_markup_with_mnemonic('_Example Label'); 13 | 14 | // Add the label to the window. 15 | $window->add($label); 16 | 17 | // Show the window and start the main loop. 18 | $window->show_all(); 19 | Gtk::main(); 20 | ?> -------------------------------------------------------------------------------- /dbxml/tblcals.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |
Table Test 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | foo 12 | bar 13 | 14 | 15 | 16 | 17 | bar 18 | 19 | 20 | bar 21 | 22 | 23 |
24 | 25 |
26 | 27 | -------------------------------------------------------------------------------- /dbxml/tblxchg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |
Table Test 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | foo 12 | bar 13 | 14 | 15 | 16 | 17 | bar 18 | 19 | 20 | bar 21 | 22 | 23 |
24 | 25 |
26 | 27 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkhpaned/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_border_width(5); 4 | 5 | $left = new GtkFrame(); 6 | $left->add(new GtkLabel('Left')); 7 | $left->set_shadow_type(Gtk::SHADOW_IN); 8 | $vpane->add1($left); 9 | 10 | $right = new GtkFrame(); 11 | $right->add(new GtkLabel('Right')); 12 | $right->set_shadow_type(Gtk::SHADOW_IN); 13 | $vpane->add2($right); 14 | 15 | //standard stuff for window creation 16 | $wnd = new GtkWindow(); 17 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 18 | $wnd->add($vpane); 19 | $wnd->show_all(); 20 | Gtk::main(); 21 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkvpaned/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_border_width(5); 4 | 5 | $top = new GtkFrame(); 6 | $top->add(new GtkLabel('Top')); 7 | $top->set_shadow_type(Gtk::SHADOW_IN); 8 | $vpane->add1($top); 9 | 10 | $bottom = new GtkFrame(); 11 | $bottom->add(new GtkLabel('Bottom')); 12 | $bottom->set_shadow_type(Gtk::SHADOW_IN); 13 | $vpane->add2($bottom); 14 | 15 | //standard stuff for window creation 16 | $wnd = new GtkWindow(); 17 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 18 | $wnd->add($vpane); 19 | $wnd->show_all(); 20 | Gtk::main(); 21 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_justify.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a label with two lines of text. 9 | $label = new GtkLabel("This label has\ntwo lines of text."); 10 | 11 | // Set the justification for the label. 12 | $label->set_justify(Gtk::JUSTIFY_RIGHT); 13 | 14 | // Add the label to the window. 15 | $window->add($label); 16 | 17 | // Show the window and start the main loop. 18 | $window->show_all(); 19 | Gtk::main(); 20 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/select_region.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 6 | 7 | // Create a label 8 | $label = new GtkLabel('Example Label'); 9 | 10 | // Make the label selectable. 11 | $label->set_selectable(true); 12 | 13 | // Select a region ("amp"). 14 | $label->select_region(2, 5); 15 | 16 | // Add the label to the window. 17 | $window->add($label); 18 | 19 | // Show the window and start the main loop. 20 | $window->show_all(); 21 | Gtk::main(); 22 | ?> 23 | -------------------------------------------------------------------------------- /updater/checkXml.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #checks the manual xml files for well-formedness 3 | 4 | #create some temporary directory to play with 5 | tmp=${TMPDIR-/tmp} 6 | tmp=$tmp/checkxml.$RANDOM.$$ 7 | (umask 077 && mkdir $tmp) || { 8 | echo "Could not create temporary directory! Exiting." 1>&2 9 | exit 1 10 | } 11 | 12 | cd "`dirname "$0"`" 13 | 14 | echo "Copying manual files to tmp" 15 | cp ../manual/en/reference/gtk/*.xml "$tmp/" 16 | php "prepxpath.php" $tmp/*.xml 17 | 18 | echo "Checking files for well-formedness" 19 | for i in $tmp/*.xml 20 | do xmllint $i --noout 21 | done 22 | 23 | echo "Cleaning up" 24 | rm -r $tmp -------------------------------------------------------------------------------- /examples/reference/gdk/gdkpixbuf/get_pixel.phpw: -------------------------------------------------------------------------------- 1 | fill(128, 255, 0, 128); 8 | echo "setting: (128,255,0,128)\n"; 9 | 10 | //now get the pixel at a certain position 11 | $pixel = $pixbuf->get_pixel(10, 20); 12 | echo 'pixel: ' . $pixel . "\n"; 13 | 14 | $r = ($pixel & 0xff000000) >> 24; 15 | $g = ($pixel & 0x00ff0000) >> 16; 16 | $b = ($pixel & 0x0000ff00) >> 8; 17 | $a = ($pixel & 0x000000ff); 18 | echo "rgba: ($r,$g,$b,$a)\n"; 19 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwidget/add_events.phpw: -------------------------------------------------------------------------------- 1 | add_events(Gdk::POINTER_MOTION_MASK); 8 | $btn->connect('motion-notify-event', 'onMouseOver'); 9 | 10 | function onMouseOver($btn, $event) { 11 | $btn->set_label($event->x . ', ' . $event->y); 12 | } 13 | 14 | $wnd = new GtkWindow(); 15 | $wnd->set_default_size(200, 100); 16 | $wnd->add($btn); 17 | $wnd->show_all(); 18 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 19 | Gtk::main(); 20 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkmessagedialog/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_markup( 10 | 'Do you like PHP-Gtk ' 11 | . '2?' 12 | ); 13 | $answer = $dialog->run(); 14 | $dialog->destroy(); 15 | 16 | if ($answer == Gtk::RESPONSE_YES) { 17 | echo "You like me! Thanks!\r\n"; 18 | } else if ($answer == Gtk::RESPONSE_NO) { 19 | echo "Why not?\r\n"; 20 | } else { 21 | echo "Why didn't you press a button?\r\n"; 22 | } 23 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreemodel/foreach.php: -------------------------------------------------------------------------------- 1 | append(array('Tokio', 34100000)); 5 | $store->append(array('Mexico city', 22650000)); 6 | $store->append(array('New York', 21850000)); 7 | $store->append(array('São Paulo', 20200000)); 8 | 9 | /* 10 | * And now show what we've got in the store 11 | */ 12 | function echoRow($store, $path, $iter) 13 | { 14 | $city = $store->get_value($iter, 0); 15 | $number = $store->get_value($iter, 1); 16 | echo $city . ' has ' . $number . " inhabitants.\r\n"; 17 | } 18 | $store->foreach('echoRow'); 19 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkcombobox/new_text.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a text combobox. 9 | $combo = GtkComboBox::new_text(); 10 | 11 | // Add some values. 12 | $combo->append_text('New Jersey'); 13 | $combo->append_text('New Mexico'); 14 | $combo->append_text('New York'); 15 | 16 | // Add the combobox to the window. 17 | $window->add($combo); 18 | 19 | // Show the window and its contents. 20 | $window->show_all(); 21 | 22 | // Start the main loop. 23 | Gtk::main(); 24 | ?> -------------------------------------------------------------------------------- /examples/tutorials/helloglade/autoconnect.phpw: -------------------------------------------------------------------------------- 1 | signal_autoconnect(); 10 | 11 | //This method is called when the button is clicked 12 | function onClickButton() { 13 | echo "button clicked!\r\n"; 14 | Gtk::main_quit(); 15 | } 16 | 17 | //Start the main loop 18 | Gtk::main(); 19 | ?> -------------------------------------------------------------------------------- /examples/tutorials/signals/multiple.phpw: -------------------------------------------------------------------------------- 1 | add($but); 7 | $win->show_all(); 8 | 9 | $but->connect_simple('clicked', 'first'); 10 | $but->connect_simple('clicked', 'second'); 11 | $but->connect_simple('clicked', 'third'); 12 | 13 | function first() 14 | { 15 | echo "I am the first function!\n"; 16 | } 17 | 18 | function second() 19 | { 20 | echo "I am the second function!\n"; 21 | } 22 | 23 | function third() 24 | { 25 | echo "And I'm the function that's going to stop this program!\n"; 26 | Gtk::main_quit(); 27 | } 28 | 29 | Gtk::main(); 30 | 31 | ?> 32 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtktooltips/constructor.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('clicked', array('Gtk', 'main_quit')); 6 | 7 | //set the tip 8 | $tt->set_tip( 9 | //widget to set the tip of 10 | $btn, 11 | //normal tooltip 12 | 'Quits the application', 13 | //longer description 14 | 'If you press this button, then' 15 | . ' the application ends its life.' 16 | ); 17 | 18 | 19 | //create the window, add the button 20 | $wnd = new GtkWindow(); 21 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 22 | $wnd->add($btn); 23 | $wnd->show_all(); 24 | Gtk::main(); 25 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/get_set_angle.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 6 | 7 | // Create a label 8 | $label = new GtkLabel('Degree Angle'); 9 | 10 | // Set the angle to 50 degrees. 11 | $label->set_angle(50); 12 | 13 | // Now update the label with the current angle. 14 | $label->set_text($label->get_angle() . ' ' . $label->get_text()); 15 | 16 | // Add the label to the window. 17 | $window->add($label); 18 | 19 | // Show the window and start the main loop. 20 | $window->show_all(); 21 | Gtk::main(); 22 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_text_with_mnemonic.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a label. 9 | $label = new GtkLabel(); 10 | 11 | // Set the mnemonic text. Note this could be done on construction. It is done 12 | // this way for purposes of the example only. 13 | $label->set_text_with_mnemonic('_Example Label'); 14 | 15 | // Add the label to the window. 16 | $window->add($label); 17 | 18 | // Show the window and start the main loop. 19 | $window->show_all(); 20 | Gtk::main(); 21 | ?> 22 | -------------------------------------------------------------------------------- /examples/tutorials/signals/custom.phpw: -------------------------------------------------------------------------------- 1 | add($but); 7 | $win->show_all(); 8 | 9 | $win->connect_simple('destroy', array('gtk', 'main_quit')); 10 | $but->connect_simple('enter-notify-event', 'showMessage', true, 'You moved the mouse'); 11 | $but->connect_simple('leave-notify-event', 'showMessage', false, 'You moved the mouse'); 12 | 13 | function showMessage($enter, $message) 14 | { 15 | if ($enter) { 16 | echo $message." over the button!\n"; 17 | } else { 18 | echo $message." away from the button!\n"; 19 | } 20 | } 21 | 22 | Gtk::main(); 23 | 24 | ?> 25 | -------------------------------------------------------------------------------- /manual/pt_BR/reference/gtk/gtktreeiter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkTreeIter 6 | GBoxed 7 | 8 | Uma referência para uma linha em um modelo de dados de uma árvore/lista. 9 | 10 | 11 | 12 | Uma GtkTreeIter é uma referência para uma linha 13 | em um GtkTreeStore ou 14 | GtkListStore. 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkstatusbar/constructor.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a status bar. 9 | $status = new GtkStatusbar(); 10 | 11 | // Push a message onto the message stack. 12 | // We need a context id. 13 | $context_id = $status->get_context_id('example'); 14 | $status->push($context_id, 'Andrei is dreamy.'); 15 | 16 | // Add the combobox to the window. 17 | $window->add($status); 18 | 19 | // Show the window and its contents. 20 | $window->show_all(); 21 | 22 | // Start the main loop. 23 | Gtk::main(); 24 | ?> -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtkseparator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkSeparator 6 | GtkWidget 7 | 8 | Base class for GtkHSeparator and GtkVSeparator. 9 | 10 | 11 | 12 | GtkSeparator is the base class underlying 13 | GtkHSeparator and GtkVSeparator. 14 | It cannot be used directly. 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_line_wrap.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a label with a long line of text. 9 | $label = new GtkLabel('This long line of text will wrap onto three lines.'); 10 | 11 | // Set the label's size. 12 | $label->set_size_request(100, 100); 13 | 14 | // Allow the label to wrap. 15 | $label->set_line_wrap(true); 16 | 17 | // Add the label to the window. 18 | $window->add($label); 19 | 20 | // Show the window and start the main loop. 21 | $window->show_all(); 22 | Gtk::main(); 23 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkradiobutton/constructor.phpw: -------------------------------------------------------------------------------- 1 | pack_end($label); 6 | 7 | $radio = null; 8 | foreach (array('Red', 'Green', 'Blue') as $strLabel) { 9 | $radio = new GtkRadioButton($radio, $strLabel, true); 10 | $box->pack_start($radio); 11 | $radio->connect('toggled', 'onToggle', $label); 12 | } 13 | 14 | function onToggle($radio, $label) 15 | { 16 | $label->set_text("toggled:\n" . $radio->get_label()); 17 | } 18 | 19 | $wnd = new GtkWindow(); 20 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 21 | $wnd->add($box); 22 | $wnd->show_all(); 23 | Gtk::main(); 24 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktogglebutton/constructor.phpw: -------------------------------------------------------------------------------- 1 | connect('toggled', 'toggled'); 6 | 7 | function toggled($togglebtn) { 8 | if ($togglebtn->get_active()) { 9 | echo "ToggleButton is ACTIVE\r\n"; 10 | } else { 11 | echo "ToggleButton is NOT active\r\n"; 12 | } 13 | } 14 | 15 | $wnd = new GtkWindow(); 16 | $wnd->set_border_width(10); 17 | $wnd->add($togglebtn); 18 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 19 | $wnd->show_all(); 20 | Gtk::main(); 21 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkaboutdialog/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_name('My first program'); 5 | $dlg->set_version('2.5.3'); 6 | 7 | $dlg->set_comments('These are my comments' . "\nWith a newline"); 8 | $dlg->set_copyright('Copyright (C) 1982-2005 myself'); 9 | $dlg->set_license("MyPL v2\nDo whatever you want to do.\n" 10 | . "But don't hurt anyone.");//Button 11 | $dlg->set_logo( 12 | $dlg->render_icon(Gtk::STOCK_CDROM, Gtk::ICON_SIZE_LARGE_TOOLBAR) 13 | ); 14 | $dlg->set_website('http://website.example.org'); 15 | $dlg->set_translator_credits("German version - My Friend\n" 16 | . "French version - Another Friend"); 17 | 18 | $dlg->run(); 19 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreestore/move_after.phpw: -------------------------------------------------------------------------------- 1 | append(null, array('row 1')); 7 | //Create second row 8 | $row2 = $store->append(null, array('row 2')); 9 | 10 | //move $row1 after $row2 11 | $store->move_after($row1, $row2); 12 | 13 | 14 | //Display the store 15 | $wnd = new GtkWindow(); 16 | $view = new GtkTreeView($store); 17 | $view->append_column( 18 | new GtkTreeViewColumn('String column', new GtkCellRendererText(), 'text', 0) 19 | ); 20 | $wnd->add($view); 21 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 22 | $wnd->show_all(); 23 | Gtk::main(); 24 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktextbuffer/buffer_from_view.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('gtk', 'main_quit')); 6 | 7 | // Create a new view. 8 | $textView = new GtkTextView(); 9 | 10 | // Get the buffer from the view. 11 | $textBuffer = $textView->get_buffer(); 12 | 13 | // Add some text to the buffer. 14 | $textBuffer->set_text('Hello World!'); 15 | 16 | // Make sure no one edits the text. 17 | $textView->set_editable(false); 18 | 19 | // Add the view to the window, show everything, and start the main loop. 20 | $window->add($textView); 21 | $window->show_all(); 22 | Gtk::main(); 23 | ?> -------------------------------------------------------------------------------- /examples/test/gtkmessagedialog.phpw: -------------------------------------------------------------------------------- 1 | set_markup('Do you like PHP-Gtk 2?'); 10 | 11 | $dialog->image->hide(); 12 | 13 | //doesn't work as it's read-only 14 | //$dialog->image = new GtkButton("asd"); 15 | 16 | $answer = $dialog->run(); 17 | $dialog->destroy(); 18 | 19 | if ($answer == Gtk::RESPONSE_YES) { 20 | echo "You like me! Thanks!\r\n"; 21 | } else if ($answer == Gtk::RESPONSE_NO) { 22 | echo "Why not?\r\n"; 23 | } else { 24 | echo "Why didn't you press a button?\r\n"; 25 | } 26 | ?> -------------------------------------------------------------------------------- /examples/tutorials/helloworld/helloworld2.phpw: -------------------------------------------------------------------------------- 1 | set_title('Hello world'); 8 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 9 | 10 | $vbox = new GtkVBox(); 11 | $wnd->add($vbox); 12 | 13 | $lblHello = new GtkLabel("Just wanted to say\r\n'Hello world!'"); 14 | $lblHello->set_justify(Gtk::JUSTIFY_CENTER); 15 | $vbox->pack_start($lblHello); 16 | 17 | $btnQuit = GtkButton::new_from_stock(Gtk::STOCK_QUIT); 18 | $btnQuit->connect_simple('clicked', array('gtk', 'main_quit')); 19 | $vbox->pack_start($btnQuit, false); 20 | 21 | $wnd->show_all(); 22 | Gtk::main(); 23 | ?> -------------------------------------------------------------------------------- /manual/pt_BR/reference/gtk/gtkseparator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkSeparator 6 | GtkWidget 7 | 8 | Classe base paraGtkHSeparator e 9 | GtkVSeparator. 10 | 11 | 12 | 13 | GtkSeparator é a classe base abaixo de 14 | GtkHSeparator e GtkVSeparator. 15 | Não pode ser usada diretamente. 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwidget/key-press-event.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 4 | 5 | //we want to receive key press events 6 | $wnd->connect('key-press-event', 'onKeyPress'); 7 | 8 | //here we handle the key press events 9 | function onKeyPress($widget, $event) { 10 | if ($event->state & Gdk::CONTROL_MASK && $event->keyval == Gdk::KEY_q) { 11 | //Press Ctrl+q, and the window will be closed 12 | $widget->destroy(); 13 | } else if ($event->keyval == Gdk::KEY_F1) { 14 | //Press F1 to shwo a help text in the title 15 | $widget->set_title('Press Ctrl+Q to quit'); 16 | } 17 | } 18 | 19 | $wnd->show(); 20 | Gtk::main(); 21 | ?> -------------------------------------------------------------------------------- /examples/reference/gobject/signal_query.php: -------------------------------------------------------------------------------- 1 | 6 | int(31) 7 | [1]=> 8 | string(12) "delete-event" 9 | [2]=> 10 | object(GType)#1 (2) { 11 | ["type"]=> 12 | int(142760632) 13 | ["name"]=> 14 | string(9) "GtkWidget" 15 | } 16 | [3]=> 17 | int(2) 18 | [4]=> 19 | object(GType)#2 (2) { 20 | ["type"]=> 21 | int(20) 22 | ["name"]=> 23 | string(8) "gboolean" 24 | } 25 | [5]=> 26 | array(1) { 27 | [0]=> 28 | object(GType)#3 (2) { 29 | ["type"]=> 30 | int(148319049) 31 | ["name"]=> 32 | string(8) "GdkEvent" 33 | } 34 | } 35 | } 36 | */ 37 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkscale/format-value.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 13 | 14 | // Create a scale. 15 | $scale = new GtkHScale(new GtkAdjustment(5, 0, 10)); 16 | 17 | // Create a signal handler for the format-value signal. 18 | $scale->connect('format-value', 'format_value'); 19 | 20 | // Add the scale to the window. 21 | $window->add($scale); 22 | 23 | // Show the window. 24 | $window->show_all(); 25 | 26 | // Start the main loop. 27 | Gtk::main(); 28 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwidget/path.php: -------------------------------------------------------------------------------- 1 | add($box); 10 | $box ->add($frame); 11 | $frame->add($btn); 12 | 13 | //Give some a custom name 14 | $wnd->set_name('My window'); 15 | $btn->set_name('demo button'); 16 | 17 | //And now echo the class path of the button, 18 | // and the normal path 19 | echo 'class_path: "' . $btn->class_path() . "\"\n"; 20 | echo 'path: "' . $btn->path() . "\"\n"; 21 | 22 | /* Returns: 23 | class_path: "GtkWindow.GtkVBox.GtkFrame.GtkButton" 24 | path: "My window.GtkVBox.GtkFrame.demo button" 25 | */ 26 | ?> -------------------------------------------------------------------------------- /examples/test/gtkaccellabel.phpw: -------------------------------------------------------------------------------- 1 | add_accelerator('activate', $accgrp, Gdk::KEY_S, Gdk::CONTROL_MASK, Gtk::ACCEL_VISIBLE); 7 | $lbl->set_accel_widget($btn); 8 | 9 | $wnd = new GtkWindow(); 10 | $wnd->add_accel_group($accgrp); 11 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 12 | $wnd->set_default_size(300, -1); 13 | 14 | $vbox = new GtkVBox(); 15 | $vbox->pack_start($lbl); 16 | $vbox->pack_start(new GtkEntry(), false, false); 17 | $vbox->pack_start($btn, false, false); 18 | 19 | $wnd->add($vbox); 20 | $wnd->show_all(); 21 | 22 | var_dump('Width', $lbl->get_accel_width()); 23 | 24 | Gtk::main(); 25 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktextbuffer/constructor.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 6 | 7 | // Create a new buffer and a new view to show the buffer. 8 | $textBuffer = new GtkTextBuffer(); 9 | $textView = new GtkTextView(); 10 | 11 | // Add some text to the buffer. 12 | $textBuffer->set_text('Hello World!'); 13 | 14 | // Add the buffer to the view and make sure no one edits the text. 15 | $textView->set_buffer($textBuffer); 16 | $textView->set_editable(false); 17 | 18 | // Add the view to the window, show everything, and start the main loop. 19 | $window->add($textView); 20 | $window->show_all(); 21 | Gtk::main(); 22 | ?> -------------------------------------------------------------------------------- /stylesheets/common/l10n.dtd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 13 | 14 | 15 | 19 | 20 | 21 | 24 | 25 | 26 | 30 | -------------------------------------------------------------------------------- /dbxml/xinclude.mod: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /dbxml/ent/iso-amsc.ent: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtksizegroup/constructor.phpw: -------------------------------------------------------------------------------- 1 | pack_start($oh); 11 | $box->pack_start($longer); 12 | 13 | //but GtkSizeGroup saves the day: 14 | // both buttons get the same height and width! 15 | $group = new GtkSizeGroup(Gtk::SIZE_GROUP_BOTH); 16 | $group->add_widget($oh); 17 | $group->add_widget($longer); 18 | 19 | $wnd = new GtkWindow(); 20 | $wnd->set_border_width(10); 21 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 22 | $wnd->add($box); 23 | $wnd->show_all(); 24 | Gtk::main(); 25 | ?> -------------------------------------------------------------------------------- /examples/reference/gdk/gdkpixbuf/fill.phpw: -------------------------------------------------------------------------------- 1 | fill($pixel); 14 | 15 | 16 | //Alternative: 17 | //green, half-transparent 18 | //overwrites the previously set color 19 | $pixbuf->fill(128, 255, 0, 128); 20 | 21 | 22 | //Display the pixbuf by using a GtkImage widget 23 | $wnd = new GtkWindow(); 24 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 25 | $wnd->add(GtkImage::new_from_pixbuf($pixbuf)); 26 | $wnd->show_all(); 27 | Gtk::main(); 28 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkentrycompletion/constructor.phpw: -------------------------------------------------------------------------------- 1 | append(array('Aland')); 12 | $store->append(array('Albern')); 13 | $store->append(array('Alcott')); 14 | 15 | // creates the EntryCompletion object 16 | $completion = new GtkEntryCompletion; 17 | 18 | // sets the model 19 | $completion->set_model($store); 20 | 21 | // defines teh data column 22 | $completion->set_text_column(0); 23 | 24 | // defines the completion for the GtkEntry 25 | $entry->set_completion($completion); 26 | 27 | // show all 28 | $window->add($entry); 29 | $window->show_all(); 30 | Gtk::Main(); 31 | ?> 32 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkfilechooserdialog/construct.php: -------------------------------------------------------------------------------- 1 | get_filename(); 9 | break; 10 | case Gtk::RESPONSE_CANCEL: 11 | echo "You selected cancel"; 12 | } 13 | $dialog->destroy(); 14 | } 15 | 16 | $dialog = new GtkFileChooserDialog( 17 | 'Pick a file...', # Dialog title 18 | NULL, # Parent 19 | Gtk::FILE_CHOOSER_ACTION_OPEN, # File chooser action (open a file) 20 | array ( # Button title, button response, ... 21 | 'Open', Gtk::RESPONSE_OK, 22 | 'Cancel', Gtk::RESPONSE_CANCEL 23 | ) 24 | ); 25 | $dialog->connect('response', 'responseCallback'); 26 | $response = $dialog->run(); -------------------------------------------------------------------------------- /examples/reference/gtk/gtkliststore/set.php: -------------------------------------------------------------------------------- 1 | append(); 7 | //now use that to set the name at that row (column 0) 8 | $store->set($iterator, 0, 'Tokio'); 9 | //same row: set the inhabitants into column 1 10 | $store->set($iterator, 1, 34100000); 11 | 12 | //You can set a whole row at once: 13 | $iterator = $store->append(); 14 | //we add the data "Mexico city" at column 0 and 15 | // "22 million" at column 1 at the row $iterator 16 | $store->set($iterator, 0, 'Mexico city', 1, 22650000); 17 | 18 | //Even faster: don't even create an iterator variable 19 | $store->set($store->append(), 0, 'Seoul', 1, 22250000); 20 | ?> 21 | -------------------------------------------------------------------------------- /examples/tutorials/packing/table.phpw: -------------------------------------------------------------------------------- 1 | set_title('GtkTable test'); 4 | $w->connect_simple('destroy', array('gtk', 'main_quit')); 5 | 6 | $lbl1 = new GtkLabel('Email address:'); 7 | $lbl2 = new GtkLabel('Id:'); 8 | $lbl3 = new GtkLabel('Name:'); 9 | $align3 = new GtkAlignment(0.0, 0.5, 0, 0); 10 | $align3->add($lbl3); 11 | $txt1 = new GtkEntry(); 12 | $txt2 = new GtkEntry(); 13 | $txt3 = new GtkEntry(); 14 | 15 | $table = new GtkTable(2, 2); 16 | $table->attach($lbl1 , 0, 1, 0, 1, 0); 17 | $table->attach($lbl2 , 0, 1, 1, 2, 0); 18 | $table->attach($align3, 0, 1, 2, 3, Gtk::FILL); 19 | $table->attach($txt1 , 1, 2, 0, 1); 20 | $table->attach($txt2 , 1, 2, 1, 2); 21 | $table->attach($txt3 , 1, 2, 2, 3); 22 | 23 | $w->add($table); 24 | $w->show_all(); 25 | Gtk::main(); 26 | ?> -------------------------------------------------------------------------------- /manual/en/reference/libsexy/sexytreeview.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SexyTreeView 6 | GtkTreeView 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | void set_tooltip_label_column 21 | column 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_attributes.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 6 | 7 | // Create a label 8 | $label = new GtkLabel('Bold Label'); 9 | 10 | // Create a Pango attribute list. 11 | $list = new PangoAttrList(); 12 | 13 | // Create a bold Pango weight attribute. 14 | $attr = new PangoAttrInt(Pango::ATTR_WEIGHT, Pango::WEIGHT_BOLD); 15 | 16 | // Add the attribute to the list. 17 | $list->insert($attr); 18 | 19 | // Set the attributes for the label. 20 | $label->set_attributes($list); 21 | 22 | // Add the label to the window. 23 | $window->add($label); 24 | 25 | // Show the window and start the main loop. 26 | $window->show_all(); 27 | Gtk::main(); 28 | ?> 29 | -------------------------------------------------------------------------------- /examples/tutorials/helloglade/autoconnect_instance.phpw: -------------------------------------------------------------------------------- 1 | onClickButton!\r\n"; 10 | Gtk::main_quit(); 11 | } 12 | 13 | function staticMethod() { 14 | echo "MyClass::staticMethod()\r\n"; 15 | } 16 | } 17 | 18 | $glade = new GladeXML(dirname(__FILE__) . '/helloglade.glade'); 19 | 20 | //Let glade do all the signal connections we specified in the file 21 | // but this time, connect to the object methods 22 | $myClassInstance = new MyClass(); 23 | $glade->signal_autoconnect_instance($myClassInstance); 24 | 25 | //Start the main loop 26 | Gtk::main(); 27 | ?> -------------------------------------------------------------------------------- /scripts/testmanual.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | %language-defs; 7 | 8 | 9 | 10 | 11 | 12 | 13 | %global.entities; 14 | %global.chapters; 15 | %global.contribs; 16 | 17 | 18 | 19 | ]> 20 | 21 | 22 | &testclasses; 23 | 24 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkcolorselection/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_title('GtkColorSelection demo'); 6 | //Quit the gtk loop when the window is being destroyed 7 | $window->connect_simple('destroy', array('gtk', 'main_quit')); 8 | 9 | //our color selection widget 10 | $colorsel = new GtkColorSelection(); 11 | 12 | //An extra button to be placed in the window 13 | $btnClose = new GtkButton('_Quit'); 14 | $btnClose->connect_simple('clicked', array($window, 'destroy')); 15 | 16 | //color selector and button will be placed there 17 | $vbox = new GtkVBox(); 18 | $vbox->pack_start($colorsel); 19 | $vbox->pack_start($btnClose, false); 20 | 21 | $window->add($vbox); 22 | $window->show_all(); 23 | 24 | Gtk::main(); 25 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_label( 4 | $label->get_angle() 5 | . ' label text - this is a' 6 | . 'very long label' 7 | . 'so we can see rotation better' 9 | ); 10 | $label->set_angle($label->get_angle() + 1); 11 | return true; 12 | } 13 | 14 | $wnd = new GtkWindow(); 15 | $wnd->set_default_size(500,500); 16 | $wnd->set_title('GtkLabel::set_angle'); 17 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 18 | 19 | $label = new GtkLabel('t_est', true); 20 | $label->set_use_markup(true); 21 | 22 | $wnd->add($label); 23 | $wnd->show_all(); 24 | 25 | Gtk::timeout_add(50, 'rotate', $label); 26 | Gtk::main(); 27 | ?> -------------------------------------------------------------------------------- /manual/appendix.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | &Appendix; 4 | &appendix.credits; 5 | &appendix.doccredits; 6 | &appendix.license; 7 | &appendix.translicense; 8 | &appendix.keysyms; 9 | &appendix.glossary; 10 | 11 | 12 | 13 | &ClassIndex; 14 | classes 15 | 16 | 17 | &MethodIndex; 18 | methods 19 | 20 | 21 | &PropertyIndex; 22 | fields 23 | 24 | 25 | &SignalIndex; 26 | signals 27 | 28 | 29 | &EnumIndex; 30 | enums 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /manual/en/reference/atk/atknoopobject.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AtkNoOpObject 6 | AtkObject 7 | 8 | An object that implements all ATK interfaces. 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | AtkNoOpObject 21 | GObject obj 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /dbxml/test.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | foo 5 | 6 | bar 7 | 8 | 9 | foo 10 | 11 | 12 | 13 | 14 | 15 | 16 | foo 17 | bar 18 | 19 | 20 | 21 | 22 | bar 23 | 24 | 25 | bar 26 | 27 | 28 |
29 | 30 |
31 | 32 | 33 | foo 34 | foo 35 | 36 | 37 | Some appropriate definition goes here. 38 | 39 | 40 | 41 | 42 | 43 |
44 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkmenubar/constructor.phpw: -------------------------------------------------------------------------------- 1 | append($file); 8 | 9 | //Quit item 10 | $quit = new GtkMenuItem('_Quit'); 11 | 12 | //This menu will popup when the File menu is activated 13 | $mnuFile = new GtkMenu(); 14 | //Add the Quit item to the File popup menu 15 | $mnuFile->append($quit); 16 | 17 | //Set the popupmenu of the File menu item 18 | $file->set_submenu($mnuFile); 19 | 20 | 21 | //another menu item 22 | $edit = new GtkMenuItem('_Edit'); 23 | $menubar->append($edit); 24 | 25 | 26 | //Add the menu bar to the window 27 | $wnd = new GtkWindow(); 28 | $wnd->add($menubar); 29 | 30 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 31 | $wnd->show_all(); 32 | Gtk::main(); 33 | ?> -------------------------------------------------------------------------------- /manual/en/reference/atk/atknoopobjectfactory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AtkNoOpObjectFactory 6 | AtkObjectFactory 7 | 8 | An object factory for creating AtkNoOpObject instances. 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | AtkNoOpObjectFactory 21 | void 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkscrolledwindow/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); 6 | //make it look nicer 7 | $scrwnd->set_border_width(10); 8 | 9 | 10 | //now create a vbox with buttons that shall be scrollable 11 | $vbox = new GtkVBox(); 12 | for ($i = 0; $i < 10; $i++) { 13 | $vbox->pack_start(new GtkButton('Button ' . $i)); 14 | } 15 | 16 | //Add the box to the scrolled window, but use a viewport 17 | // between them - since the vbox doesn't support scrolling natively. 18 | $scrwnd->add_with_viewport($vbox); 19 | 20 | 21 | //standard stuff for window creation 22 | $wnd = new GtkWindow(); 23 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 24 | $wnd->add($scrwnd); 25 | $wnd->show_all(); 26 | Gtk::main(); 27 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkexpander/constructor.phpw: -------------------------------------------------------------------------------- 1 | connect('destroy', 'onDestroy'); 11 | $window->set_title('GtkExpander Demo'); 12 | $window->set_default_size(250, 60); 13 | $window->set_border_width(10); 14 | 15 | //Creating a new expander object 16 | $expander = new GtkExpander('Expander'); 17 | 18 | //Creating a label to store details 19 | $label = new GtkLabel('Details can be shown or hidden'); 20 | 21 | //Adding the details to the expander 22 | $expander->add($label); 23 | 24 | //Adding the expander to the window 25 | $window->add($expander); 26 | 27 | //Displaying the window and starting the main loop 28 | $window->show_all(); 29 | Gtk::main(); 30 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreestore/set.phpw: -------------------------------------------------------------------------------- 1 | insert(); 7 | //set value of the first row 8 | $store->set($row, 0, 'String'); 9 | //set value of the third and second row 10 | $store->set($row, 2, 0.5, 1, 20); 11 | 12 | 13 | //Display the store 14 | $wnd = new GtkWindow(); 15 | $view = new GtkTreeView($store); 16 | $rend = new GtkCellRendererText(); 17 | $view->append_column(new GtkTreeViewColumn('String', $rend, 'text', 0)); 18 | $view->append_column(new GtkTreeViewColumn('Int' , $rend, 'text', 1)); 19 | $view->append_column(new GtkTreeViewColumn('Float' , $rend, 'text', 2)); 20 | $wnd->add($view); 21 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 22 | $wnd->show_all(); 23 | Gtk::main(); 24 | 25 | ?> -------------------------------------------------------------------------------- /dbxml/ent/iso-dia.ent: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreeview/insert_column_with_data_func.phpw: -------------------------------------------------------------------------------- 1 | insert_column_with_data_func( 9 | 0, 10 | "Test suites", 11 | $nameRenderer, 12 | "showTestName" 13 | ); 14 | 15 | /* 16 | * This data function column makes the cell renderer display the text from model 17 | * column 0 in uppercase letters. 18 | */ 19 | function showTestName($column, $cell, $model, $iter) 20 | { 21 | $cell->set_property( 22 | "text", 23 | strtoupper( $model->get_value($iter, 0)) 24 | ); 25 | } 26 | ?> 27 | -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtkimcontextsimple.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkIMContextSimple 6 | GtkIMContext 7 | 8 | An input method context supporting table-based input methods. 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | GtkIMContextSimple 21 | void 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /manual/en/appendix/translicense.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtktearoffmenuitem/constructor.phpw: -------------------------------------------------------------------------------- 1 | add($file); 15 | //Menu to hold the items 16 | $mnuFile = new GtkMenu(); 17 | $file->set_submenu($mnuFile); 18 | 19 | //Add the tearoff menu item to the file menu 20 | $mnuFile->add(new GtkTearOffMenuItem()); 21 | //Add the normal menu items 22 | $mnuFile->add(new GtkImageMenuItem(Gtk::STOCK_NEW)); 23 | $mnuFile->add(new GtkImageMenuItem(Gtk::STOCK_OPEN)); 24 | $mnuFile->add(new GtkImageMenuItem(Gtk::STOCK_SAVE)); 25 | 26 | 27 | //standard stuff for window creation 28 | $wnd = new GtkWindow(); 29 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 30 | $wnd->add($menubar); 31 | $wnd->show_all(); 32 | Gtk::main(); 33 | ?> -------------------------------------------------------------------------------- /manual/pt_BR/appendix/translicense.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreestore/insert_before.phpw: -------------------------------------------------------------------------------- 1 | insert_after(); 7 | $store->set($root, 0, 'root'); 8 | 9 | //insert root2 before $root 10 | $root2 = $store->insert_before($root); 11 | $store->set($root2, 0, 'root2'); 12 | 13 | //insert this child as child of root row 14 | $child1 = $store->insert_before(null, $root, array('child1')); 15 | 16 | //insert this child before $child1 17 | $child2 = $store->insert_before($child1, $root, array('child2')); 18 | 19 | 20 | //Display the store 21 | $wnd = new GtkWindow(); 22 | $view = new GtkTreeView($store); 23 | $view->append_column( 24 | new GtkTreeViewColumn('String column', new GtkCellRendererText(), 'text', 0) 25 | ); 26 | $wnd->add($view); 27 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 28 | $wnd->show_all(); 29 | Gtk::main(); 30 | ?> -------------------------------------------------------------------------------- /scripts/mtoc.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | %language-defs; 7 | 8 | 9 | 10 | 11 | 12 | 13 | %global.entities; 14 | %global.chapters; 15 | %global.contribs; 16 | 17 | 18 | 19 | 20 | ]> 21 | 22 | 23 | &bookinfo; 24 | &preface; 25 | &tutorials; 26 | &reference; 27 | &appendix; 28 | 29 | -------------------------------------------------------------------------------- /examples/reference/gdk/gdkpixbuf/fill_area.phpw: -------------------------------------------------------------------------------- 1 | fill_area(10, 10, 20, 50, 255, 255, 255, 255); 9 | 10 | 11 | //Create a pixel specification: 12 | //First, we define the RGBA values we need 13 | $r = 255; 14 | $g = 128; 15 | $b = 0; 16 | $a = 128; 17 | 18 | //Now create the pixel 19 | $pixel = 0; 20 | $pixel += $r << 24; 21 | $pixel += $g << 16; 22 | $pixel += $b << 8; 23 | $pixel += $a; 24 | 25 | //And fill another area with the pixel color 26 | $pixbuf->fill_area(50, 50, 30, 40, $pixel); 27 | 28 | 29 | //Display the pixbuf by using a GtkImage widget 30 | $wnd = new GtkWindow(); 31 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 32 | $wnd->add(GtkImage::new_from_pixbuf($pixbuf)); 33 | $wnd->show_all(); 34 | Gtk::main(); 35 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkmenutoolbutton/constructor.phpw: -------------------------------------------------------------------------------- 1 | insert($open, -1); 16 | 17 | //create a menu that will be added to the toolbutton later 18 | $menu = new GtkMenu(); 19 | $menu->add(new GtkMenuItem('File 1')); 20 | $menu->add(new GtkMenuItem('File 2')); 21 | $menu->add(new GtkMenuItem('File 3')); 22 | //set the menu and all menuitem visible 23 | $menu->show_all(); 24 | //attach the menu to the menu tool button 25 | $open->set_menu($menu); 26 | 27 | 28 | //Standard window that has the toolbar as only child 29 | $window = new GtkWindow(); 30 | $window->add($tb); 31 | $window->connect_simple('destroy', array('Gtk', 'main_quit')); 32 | $window->show_all(); 33 | Gtk::main(); 34 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkdialog/constructor.phpw: -------------------------------------------------------------------------------- 1 | vbox; 16 | $topArea->add($dialogQues); 17 | 18 | /* Showing all widgets added */ 19 | $dialogBox->show_all(); 20 | 21 | /* Running the dialog box */ 22 | $result = $dialogBox->run(); 23 | 24 | /* Accessing the result and performing 25 | appropriate action */ 26 | switch($result) { 27 | case (Gtk::RESPONSE_YES): 28 | echo "Thanks!\n"; 29 | break; 30 | case (Gtk::RESPONSE_NO): 31 | echo "Why Not?!\n"; 32 | break; 33 | } 34 | 35 | /* Destroying the dialog box */ 36 | $dialogBox->destroy(); 37 | ?> 38 | -------------------------------------------------------------------------------- /examples/tutorials/helloglade/connecting_by_hand.phpw: -------------------------------------------------------------------------------- 1 | get_widget('wndClose'); 12 | $window->connect_simple('destroy', array('Gtk', 'main_quit')); 13 | 14 | //Again, get the widget object and connect the clicked signal 15 | $button = $glade->get_widget('btnClose'); 16 | $button->connect_simple('clicked', 'onClickButton'); 17 | 18 | //This method is called when the button is clicked 19 | function onClickButton() { 20 | echo "button clicked!\r\n"; 21 | Gtk::main_quit(); 22 | } 23 | 24 | //Start the main loop 25 | Gtk::main(); 26 | ?> -------------------------------------------------------------------------------- /dbxml/dbgenent.ent: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreestore/insert_after.phpw: -------------------------------------------------------------------------------- 1 | insert_after(); 7 | $store->set($root, 0, 'root'); 8 | 9 | //insert this child as child of root row 10 | $child1 = $store->insert_after(null, $root, array('child1')); 11 | 12 | //insert this child after $child1 13 | $child2 = $store->insert_after($child1, $root, array('child2')); 14 | 15 | //insert new child after $child1, making $child2 16 | //moving to position 2 17 | $child3 = $store->insert_after($child1, $root); 18 | $store->set($child3, 0, 'child3'); 19 | 20 | //Display the store 21 | $wnd = new GtkWindow(); 22 | $view = new GtkTreeView($store); 23 | $view->append_column( 24 | new GtkTreeViewColumn('String column', new GtkCellRendererText(), 'text', 0) 25 | ); 26 | $wnd->add($view); 27 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 28 | $wnd->show_all(); 29 | Gtk::main(); 30 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtk/timeout_add.phpw: -------------------------------------------------------------------------------- 1 | set_text(date('H:i:s')); 19 | 20 | //at the end, return "true" if the timeout shall 21 | // be executed again. If you don't return anything 22 | // or return false, the timeout is stopped. 23 | return true; 24 | } 25 | 26 | //standard stuff 27 | $wnd = new GtkWindow(); 28 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 29 | $wnd->add($lbl); 30 | $wnd->show_all(); 31 | Gtk::main(); 32 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreestore/append.phpw: -------------------------------------------------------------------------------- 1 | append(null, array('This is the root')); 7 | //Create a child entry below the root one 8 | $child = $store->append($root, array('Child of root')); 9 | //Create a second child of root 10 | $store->append($root, array('Second child')); 11 | 12 | //create another root entry 13 | $root2 = $store->append(null, array('Another root')); 14 | 15 | //create empty root entry 16 | $empty = $store->append(); 17 | //create empty entry below child 18 | $subchild = $store->append($child); 19 | 20 | //Display the store 21 | $wnd = new GtkWindow(); 22 | $view = new GtkTreeView($store); 23 | $view->append_column( 24 | new GtkTreeViewColumn('String column', new GtkCellRendererText(), 'text', 0) 25 | ); 26 | $wnd->add($view); 27 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 28 | $wnd->show_all(); 29 | Gtk::main(); 30 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreestore/insert.phpw: -------------------------------------------------------------------------------- 1 | insert(0); 7 | $store->set($root, 0, 'root'); 8 | 9 | //insert a new row as child of the previously created root row 10 | $child1 = $store->insert(0, $root); 11 | $store->set($child1, 0, 'child'); 12 | 13 | //insert another row, but at position 0 - that means 14 | //before $child1 15 | $child2 = $store->insert(0, $root, array('child2')); 16 | 17 | //insert at position 1: before $child1, 18 | //but after $child2 19 | $child3 = $store->insert(1, $root, array('child3')); 20 | 21 | 22 | //Display the store 23 | $wnd = new GtkWindow(); 24 | $view = new GtkTreeView($store); 25 | $view->append_column( 26 | new GtkTreeViewColumn('String column', new GtkCellRendererText(), 'text', 0) 27 | ); 28 | $wnd->add($view); 29 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 30 | $wnd->show_all(); 31 | Gtk::main(); 32 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwindow/activate_default.phpw: -------------------------------------------------------------------------------- 1 | pack_start($entry); 10 | $vbox->pack_start($btn); 11 | 12 | //add the box to the window 13 | $wnd->add($vbox); 14 | 15 | //little echo method 16 | function echoit($value) { echo $value . "\r\n"; } 17 | 18 | //connect the clicked signal to out echo method 19 | $btn->connect_simple('clicked', 'echoit', $btn->get_label()); 20 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 21 | 22 | //here we let the activate signal of the gtkentry call the 23 | //activate_default method of the window 24 | $entry->connect_simple('activate', array($wnd, 'activate_default')); 25 | 26 | //allow our button to be the default widget 27 | $btn->set_flags(Gtk::CAN_DEFAULT); 28 | 29 | //set the button the default one in the window 30 | $wnd->set_default($btn); 31 | 32 | $wnd->show_all(); 33 | Gtk::main(); 34 | ?> -------------------------------------------------------------------------------- /scripts/manual.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | %language-defs; 7 | 8 | 9 | 10 | 11 | 12 | 13 | %global.entities; 14 | %global.chapters; 15 | %global.contribs; 16 | 17 | 18 | 19 | 20 | ]> 21 | 22 | 23 | &PHPGTK2Docs; 24 | &bookinfo; 25 | &preface; 26 | &tutorials; 27 | &reference; 28 | &appendix; 29 | 30 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_text.phpw: -------------------------------------------------------------------------------- 1 | set_text($label->get_text() + 1); 6 | } 7 | 8 | // Create a window to hold the label. 9 | $window = new GtkWindow(); 10 | 11 | // Set up the window to close cleanly. 12 | $window->connect_simple('destroy', array('Gtk', 'main_quit')); 13 | 14 | // Create a label. 15 | $label = new GtkLabel('0'); 16 | 17 | // Create a button that will be used to increment the counter. 18 | $button = new GtkButton('Click Me!'); 19 | 20 | // When the button is clicked, the counter should be updated. 21 | $button->connect_simple('clicked', 'updateCounter', $label); 22 | 23 | // Create a vbox to hold the label and button. 24 | $vBox = new GtkVBox(); 25 | 26 | // Add the label & button to the box. 27 | $vBox->pack_start($label); 28 | $vBox->pack_start($button); 29 | 30 | // Add the box to the window. 31 | $window->add($vBox); 32 | 33 | // Show the window and start the main loop. 34 | $window->show_all(); 35 | Gtk::main(); 36 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkiconview/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_title('GtkIconView'); 5 | $wnd->set_default_size(400, 400); 6 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | $iv = new GtkIconView(); 9 | 10 | $model = new GtkListStore(GdkPixbuf::gtype, Gtk::TYPE_STRING); 11 | $iv->set_model($model); 12 | 13 | //fill the model with some nice icons 14 | $ids = Gtk::stock_list_ids(); 15 | sort($ids); 16 | foreach ($ids as $id) { 17 | $pixbuf = $iv->render_icon($id, Gtk::ICON_SIZE_DIALOG); 18 | $model->set($model->append(), 0, $pixbuf, 1, $id); 19 | } 20 | 21 | $iv->set_pixbuf_column(0); 22 | $iv->set_text_column(1); 23 | 24 | //number of columns in view, not model 25 | $iv->set_columns(0); 26 | $iv->set_item_width(100); 27 | 28 | //make it scrollable 29 | $scrollwin = new GtkScrolledWindow(); 30 | $scrollwin->set_policy( 31 | Gtk::POLICY_AUTOMATIC, 32 | Gtk::POLICY_AUTOMATIC 33 | ); 34 | $scrollwin->add($iv); 35 | 36 | $wnd->add($scrollwin); 37 | $wnd->show_all(); 38 | Gtk::main(); 39 | ?> -------------------------------------------------------------------------------- /examples/test/gtkaboutdialog.phpw: -------------------------------------------------------------------------------- 1 | set_default_icon($dlgAbout->render_icon(Gtk::STOCK_CDROM, Gtk::ICON_SIZE_DIALOG)); 8 | 9 | $dlgAbout->set_comments('These are my comments' . "\nWith a newline"); 10 | $dlgAbout->set_copyright('Copyright (C) 1982-2005 myself'); 11 | $dlgAbout->set_license("MyPL v2\nDo whatever you want to do.\nBut don't hurt anyone.");//Button 12 | 13 | //$dlgAbout->set_logo(null); 14 | $dlgAbout->set_logo($dlgAbout->render_icon(Gtk::STOCK_YES, Gtk::ICON_SIZE_LARGE_TOOLBAR)); 15 | //$dlgAbout->set_logo_icon_name('gnome-hello-logo'); 16 | 17 | //default is the filename of the starting script 18 | $dlgAbout->set_name('My first program'); 19 | 20 | $dlgAbout->set_version('2.5.3'); 21 | $dlgAbout->set_website('http://website.example.org'); 22 | $dlgAbout->set_website_label('website label'); 23 | 24 | $dlgAbout->set_translator_credits("German version - My Friend\nFrench version - Another Friend"); 25 | 26 | $dlgAbout->run(); 27 | ?> -------------------------------------------------------------------------------- /stylesheets/html/chunk.xsl.in: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtknotebook/constructor.phpw: -------------------------------------------------------------------------------- 1 | append_page(new GtkLabel('This is the first child')); 7 | 8 | //Create the second page, this time with an extra label 9 | $ntbk->append_page( 10 | new GtkLabel('This is the second child'), 11 | new GtkLabel('Second') 12 | ); 13 | 14 | //Create the third page, with an icon as label and 15 | //some nested childs 16 | $vbox = new GtkVBox(); 17 | $vbox->pack_start(new GtkLabel('This is the third child')); 18 | $vbox->pack_start(new GtkEntry(), false, false); 19 | $vbox->pack_start(new GtkButton('Test'), false, false); 20 | $ntbk->append_page( 21 | $vbox, 22 | GtkImage::new_from_stock( 23 | Gtk::STOCK_ADD, 24 | Gtk::ICON_SIZE_MENU 25 | ) 26 | ); 27 | 28 | 29 | //The rest of the setup is standard 30 | $wnd = new GtkWindow(); 31 | $wnd->set_default_size(300, -1); 32 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 33 | $wnd->add($ntbk); 34 | $wnd->show_all(); 35 | Gtk::main(); 36 | ?> -------------------------------------------------------------------------------- /manual/contributors.ent: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | PabloDall Oglio 7 | 8 | 9 | ScottMattocks 10 | 11 | 12 | AnantNarayanan 13 | 14 | 15 | JoãoOrnelas 16 | 17 | 18 | ChristianWeiske 19 | 20 | '> 21 | 22 | 23 | 24 | 25 | StephFox 26 | 27 | 28 | ChristianWeiske 29 | 30 | '> 31 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkframe/shadows.phpw: -------------------------------------------------------------------------------- 1 | set_title('Shadow types'); 7 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 8 | $tbl = new GtkTable(2,2); 9 | $wnd->add($tbl); 10 | 11 | $frmIn = new GtkFrame('Gtk::SHADOW_IN'); 12 | $frmIn->set_shadow_type(Gtk::SHADOW_IN); 13 | $frmIn->add(new GtkLabel('Gtk::SHADOW_IN')); 14 | $tbl->attach($frmIn, 0, 1, 0, 1); 15 | 16 | $frmIn = new GtkFrame('Gtk::SHADOW_OUT'); 17 | $frmIn->set_shadow_type(Gtk::SHADOW_OUT); 18 | $frmIn->add(new GtkLabel('Gtk::SHADOW_OUT')); 19 | $tbl->attach($frmIn, 1, 2, 0, 1); 20 | 21 | $frmIn = new GtkFrame('Gtk::SHADOW_ETCHED_IN'); 22 | $frmIn->set_shadow_type(Gtk::SHADOW_ETCHED_IN); 23 | $frmIn->add(new GtkLabel('Gtk::SHADOW_ETCHED_IN')); 24 | $tbl->attach($frmIn, 0, 1, 1, 2); 25 | 26 | $frmIn = new GtkFrame('Gtk::SHADOW_ETCHED_OUT'); 27 | $frmIn->set_shadow_type(Gtk::SHADOW_ETCHED_OUT); 28 | $frmIn->add(new GtkLabel('Gtk::SHADOW_ETCHED_OUT')); 29 | $tbl->attach($frmIn, 1, 2, 1, 2); 30 | 31 | $wnd->show_all(); 32 | Gtk::main(); 33 | ?> -------------------------------------------------------------------------------- /updater/tests/DocUpdateTestClass.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkcombobox/constructor.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create a text combobox. 9 | $combo = new GtkComboBox(); 10 | 11 | // Create a model. 12 | $listStore = new GtkListStore(Gtk::TYPE_STRING); 13 | 14 | // Add some values. 15 | $listStore->append(array('New Jersey')); 16 | $listStore->append(array('New Mexico')); 17 | $listStore->append(array('New York')); 18 | 19 | // Set the model for the combo. 20 | $combo->set_model($listStore); 21 | 22 | // Create a cell renderer. 23 | $cellRenderer = new GtkCellRendererText(); 24 | 25 | // Pack the cell renderer into the combo. 26 | $combo->pack_start($cellRenderer); 27 | 28 | // Tell the combo where to get the text value of the cell renderer. 29 | $combo->set_attributes($cellRenderer, 'text', 0); 30 | 31 | // Add the combobox to the window. 32 | $window->add($combo); 33 | 34 | // Show the window and its contents. 35 | $window->show_all(); 36 | 37 | // Start the main loop. 38 | Gtk::main(); 39 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkseparatormenuitem/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_submenu($fmenu); 12 | $mbar->add($file); 13 | 14 | //Now, we create a "normal" file menu: 15 | // New, Open, Save, Save As, Quit 16 | //To make it visually appealing, we separate 17 | // the items with GtkSeparatorMenuItems 18 | $fmenu->add(new GtkImageMenuItem(Gtk::STOCK_NEW)); 19 | $fmenu->add(new GtkImageMenuItem(Gtk::STOCK_OPEN)); 20 | 21 | $fmenu->add(new GtkSeparatorMenuItem()); 22 | 23 | $fmenu->add(new GtkImageMenuItem(Gtk::STOCK_SAVE)); 24 | $fmenu->add(new GtkImageMenuItem(Gtk::STOCK_SAVE_AS)); 25 | 26 | $fmenu->add(new GtkSeparatorMenuItem()); 27 | 28 | $fmenu->add(new GtkImageMenuItem(Gtk::STOCK_QUIT)); 29 | 30 | 31 | //standard stuff 32 | $wnd = new GtkWindow(); 33 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 34 | $wnd->add($mbar); 35 | $wnd->show_all(); 36 | Gtk::main(); 37 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_mnemonic_widget.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 13 | 14 | // Create a label. 15 | $label = new GtkLabel('_Exampel Label', true); 16 | 17 | // Create the button. 18 | $button = new GtkButton('Use the label mnemonic.'); 19 | 20 | // Set up a mnemonic-activate callback for the button. 21 | $button->connect_simple('mnemonic-activate', 'buttonActivated'); 22 | 23 | // Set the button as the label's mnemonic widget. 24 | $label->set_mnemonic_widget($button); 25 | 26 | // Create a box for the label and button. 27 | $vBox = new GtkVBox(); 28 | 29 | // Add the label and button to the box. 30 | $vBox->pack_start($label); 31 | $vBox->pack_start($button); 32 | 33 | // Add the label to the window. 34 | $window->add($vBox); 35 | 36 | // Show the window and start the main loop. 37 | $window->show_all(); 38 | Gtk::main(); 39 | ?> -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtkborder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkBorder 6 | GBoxed 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | GtkBorder 21 | void 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | void free 39 | void 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtktreemodelrow.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkTreeModelRow 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | GtkTreeModelRow 20 | void 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | void children 38 | void 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /manual/en/reference/pango/pangocolor.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PangoColor 6 | GBoxed 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | PangoColor 21 | void 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | void free 39 | void 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkaccellabel/constructor.phpw: -------------------------------------------------------------------------------- 1 | add_accelerator('activate', $accgrp, Gdk::KEY_S, 13 | Gdk::CONTROL_MASK, Gtk::ACCEL_VISIBLE 14 | ); 15 | 16 | //Tell the label which widget shall be activated 17 | $lbl->set_accel_widget($btn); 18 | 19 | 20 | $wnd = new GtkWindow(); 21 | //Add the accelerator group to the window, so that it can be used 22 | $wnd->add_accel_group($accgrp); 23 | 24 | 25 | //The rest of the setup is standard 26 | $wnd->set_default_size(300, -1); 27 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 28 | 29 | $vbox = new GtkVBox(); 30 | $vbox->pack_start($lbl); 31 | $vbox->pack_start(new GtkEntry(), false, false); 32 | $vbox->pack_start($btn, false, false); 33 | 34 | $wnd->add($vbox); 35 | $wnd->show_all(); 36 | Gtk::main(); 37 | ?> -------------------------------------------------------------------------------- /manual/zh_cn/bookinfo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | &PHPGTK2Docs; 7 | &frontpage.authors; 8 | &phpgtk2doc.build-date; 9 | &frontpage.editors; 10 | &frontpage.translators; 11 | 12 | ©right.years; 13 | PHP-GTK 文档小组 14 | 15 | 16 | 17 | 版权所有 18 | 19 | 版权所有 © ©right.years; PHP-GTK 文档小组。 20 | 在自由软件基金会(the Free Software Foundation)发布的 21 | 《自由文档许可证(the GNU Free Documentation License)》1.2 22 | 版本以及之后的版本条款许可下复制、分发或者修改本文档。 23 | 同时不可对章节、封面文字、封底文字进行修改。这份许可的副本包含在 24 | “&doclicense;”。 25 | 最新的版本在线发布于&url.doclicense;。 26 | 27 | 28 | 当前 PHP-GTK 文档小组成员和编辑人员目录位于本手册封面。如果你希望同小组联系, 29 | 请联系 &link.phpgtkdoc;。注意,这个地址映射于公开的邮件列表。 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtkrequisition.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkRequisition 6 | GBoxed 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | GtkRequisition 21 | void 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | void free 39 | void 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /updater/remxpath.php: -------------------------------------------------------------------------------- 1 | '); 39 | 40 | file_put_contents($file, $first . implode('', $arLines)); 41 | $modified++; 42 | } 43 | 44 | echo 'Modified ' . $modified . " files\n"; 45 | ?> -------------------------------------------------------------------------------- /scripts/gen_manualxml.php: -------------------------------------------------------------------------------- 1 | \r\n 36 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkfileselection/constructor.phpw: -------------------------------------------------------------------------------- 1 | connect_simple( 5 | 'destroy', 6 | array('Gtk', 'main_quit') 7 | ); 8 | 9 | //Adding a quit button that destroys the prompt 10 | $filePrompt->cancel_button->set_label('Quit'); 11 | $filePrompt->cancel_button->connect_simple( 12 | 'clicked', 13 | array($filePrompt, 'destroy') 14 | ); 15 | 16 | //Add an OK button that displays the file selected on click 17 | $filePrompt->ok_button->set_label('Show the file'); 18 | $filePrompt->ok_button->connect('clicked', 'showFile'); 19 | 20 | //Callback function that displays the file name 21 | function showFile($okbutton) 22 | { 23 | $filePrompt = $okbutton->get_toplevel(); 24 | $fileName = $filePrompt->get_filename(); 25 | $message = new GtkMessageDialog( 26 | null, 27 | 0, 28 | Gtk::MESSAGE_INFO, 29 | Gtk::BUTTONS_OK, 30 | 'You selected: ' . $fileName 31 | ); 32 | $message->run(); 33 | $message->destroy(); 34 | } 35 | 36 | //Show the prompt and start the main loop 37 | $filePrompt->show(); 38 | Gtk::main(); 39 | ?> -------------------------------------------------------------------------------- /manual/en/reference/atk/atkrelation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AtkRelation 6 | GObject 7 | 8 | An object used to describe a relation between an object and one or more 9 | other objects. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | AtkRelationType get_relation_type 22 | void 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | get_target 37 | void 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /manual/en/reference/atk/atkobjectfactory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AtkObjectFactory 6 | GObject 7 | 8 | An object factory for creating AtkObject instances. 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | AtkObject create_accessible 21 | GObject obj 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | void invalidate 36 | void 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkentry/constructor.phpw: -------------------------------------------------------------------------------- 1 | get_text(); 5 | echo "$input\r\n"; 6 | $entry->grab_focus(); 7 | $entry->set_text(""); 8 | } 9 | 10 | //Setting up the Window 11 | // Note the usage of connect_simple() 12 | // instead of deprecated connect_object() 13 | $window = new GtkWindow(); 14 | $window->set_position(Gtk::WIN_POS_CENTER); 15 | $window->connect_simple('destroy', array('Gtk', 'main_quit')); 16 | 17 | //Adding a box to the Window to allow more than one Child 18 | $box = new GtkVBox(); 19 | $window->add($box); 20 | 21 | //Adding the GtkEntry widget and connecting 22 | // it to the callback function: get_text() 23 | $entry = new GtkEntry(); 24 | $entry->connect('activate', 'get_input'); 25 | $box->add($entry); 26 | 27 | //Adding a GtkButton to the box and use connect_simple() 28 | // so that it will pass the GtkEntry to the callback 29 | // function when it is clicked 30 | $button = new GtkButton('Click Me to echo input!'); 31 | $button->connect_simple('clicked', 'get_input', $entry); 32 | $box->add($button); 33 | 34 | //Display everything and start the main loop 35 | $window->show_all(); 36 | Gtk::main(); 37 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_ellipsize.phpw: -------------------------------------------------------------------------------- 1 | connect_simple('destroy', array('Gtk', 'main_quit')); 7 | 8 | // Create three labels with long text. 9 | $label1 = new GtkLabel('This label has lots of text. It should be ellipsized'); 10 | $label2 = new GtkLabel('This label has lots of text. It should be ellipsized'); 11 | $label3 = new GtkLabel('This label has lots of text. It should be ellipsized'); 12 | 13 | // Set the ellipsization mode for all three labels. 14 | $label1->set_ellipsize(Pango::ELLIPSIZE_START); 15 | $label2->set_ellipsize(Pango::ELLIPSIZE_MIDDLE); 16 | $label3->set_ellipsize(Pango::ELLIPSIZE_END); 17 | 18 | // Create a vbox to hold the three labels. 19 | $vBox = new GtkVBox(); 20 | 21 | // Add the labels to the box. 22 | $vBox->pack_start($label1, false, false, 3); 23 | $vBox->pack_start($label2, false, false, 3); 24 | $vBox->pack_start($label3, false, false, 3); 25 | 26 | // Add the box to the window. 27 | $window->add($vBox); 28 | 29 | // Set the window's size. 30 | $window->set_size_request(150, 75); 31 | 32 | // Show the window and start the main loop. 33 | $window->show_all(); 34 | Gtk::main(); 35 | ?> -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtktextattributes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkTextAttributes 6 | GBoxed 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | GtkTextAttributes 21 | void 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | void copy_values 39 | GtkTextAttributes dest 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /updater/createClassDoc.php: -------------------------------------------------------------------------------- 1 | $line2.xml; done 4 | */ 5 | if ($argc != 2) { 6 | die('Please specify the classname to create the doc for.' . "\n"); 7 | } 8 | 9 | $strClass = $argv[1]; 10 | preg_match_all('/^([A-Z][a-z]{2,5})[A-Z]/', $strClass, $matches); 11 | if (isset($matches[1][0])) { 12 | $strPrefix = strtolower($matches[1][0]); 13 | } else { 14 | $strPrefix = strtolower(substr($strClass, 0, 3)); 15 | echo 'Could not determine prefix for class "' . $strClass . '". Using "' . $strPrefix . "\"\n"; 16 | } 17 | 18 | try { 19 | $rClass = new ReflectionClass($strClass); 20 | $rParent = $rClass->getParentClass(); 21 | } catch (Exception $e) { 22 | die('Class "' . $strClass . '" does not exist.' . "\n"); 23 | } 24 | 25 | if ($rParent == null) { 26 | $strParent = ''; 27 | } else { 28 | $strParent = $rParent->getName(); 29 | } 30 | 31 | echo str_replace(array( 32 | '{CLASSID}', 33 | '{CLASSNAME}', 34 | '{CLASSPARENT}' 35 | ),array( 36 | strtolower($strPrefix . '.' . $strClass), 37 | $strClass, 38 | $strParent 39 | ), file_get_contents(dirname(__FILE__) . '/classdoc.tpl')); 40 | 41 | ?> -------------------------------------------------------------------------------- /dbxml/ent/iso-amso.ent: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /manual/en/reference/sourceview/gtksourcetagtable.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkSourceTagTable 6 | GtkTextTagTable 7 | 8 | Collection of GtkSourceTagStyles that can be 9 | used together. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | void remove_source_tags 22 | void 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | void remove_source_tags 36 | void 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /updater/prepxpath.php: -------------------------------------------------------------------------------- 1 | \r\n"; 29 | 30 | $modified = 0; 31 | foreach ($files as $file) { 32 | if (substr($file, -4) != '.xml') { 33 | echo '"' . $file . "\" is no xml file\n"; 34 | continue; 35 | } 36 | if (!file_exists($file)) { 37 | echo 'File "' . $file . "\" does not exist\n"; 38 | continue; 39 | } 40 | $arLines = file($file); 41 | 42 | //xml header 43 | $first = array_shift($arLines); 44 | file_put_contents($file, $first . $dtd . implode('', $arLines)); 45 | $modified++; 46 | } 47 | 48 | echo 'Modified ' . $modified . " files\n"; 49 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkradiomenuitem/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_submenu($cmenu); 9 | $mbar->add($color); 10 | 11 | 12 | //Create a new radio menu item; no group 13 | $red = new GtkRadioMenuItem(null, '_Red', true); 14 | //Here another one, this time using the $red as group 15 | $blue = new GtkRadioMenuItem($red, '_Blue', true); 16 | //Again: Same group as the previous, $red 17 | $green = new GtkRadioMenuItem($red, '_Green', true); 18 | 19 | //Add the items to the menu 20 | $cmenu->add($red); 21 | $cmenu->add($blue); 22 | $cmenu->add($green); 23 | 24 | //Set the red item pre-selected 25 | $red->set_active(true); 26 | 27 | 28 | //set some colors to be able to identify the colors 29 | // without reading the text 30 | $red ->get_child()->modify_fg(Gtk::STATE_NORMAL, GdkColor::parse('#F00')); 31 | $blue ->get_child()->modify_fg(Gtk::STATE_NORMAL, GdkColor::parse('#00F')); 32 | $green->get_child()->modify_fg(Gtk::STATE_NORMAL, GdkColor::parse('#0F0')); 33 | 34 | 35 | //standard window stuff 36 | $wnd = new GtkWindow(); 37 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 38 | $wnd->add($mbar); 39 | $wnd->show_all(); 40 | Gtk::main(); 41 | ?> -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtkimmulticontext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkIMMulticontext 6 | GtkIMContext 7 | 8 | An input method context supporting multiple, loadable input methods. 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | GtkIMMulticontext 21 | void 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | void append_menuitems 40 | GtkMenuShell menushell 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /manual/zh_cn/preface.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 前言 6 | 7 | 欢迎使用 PHP-GTK 2 用户手册!本手册将帮助你开始使用 PHP-GTK 2, 8 | 并就语言的各个方面提供全面的指导。 9 | 10 | 11 | 本手册分为两个部分。第一部分是快速指南。 12 | 这部分将帮助你从头开始使用 PHP-GTK 2 编程,同时将深入讨论使用 PHP-GTK 2 13 | 设计程序的不同方法。另一部分是 指导手册。 14 | 手册的这个部分详细描述了所有 GTK 对象以及相关方法和消息。 15 | 当你对某个方法或者对象的使用有一问时,它将是非常有用的。 16 | 17 | 18 | 虽然我们花费了大量的精力来确保本手册提供的信息是正确的,但是仍然存在出现 19 | 错误的可能。如果你发现这些错误,请通知 PHP-GTK 文档小组:&email.phpgtkdoc;。 20 | 如果你需要的信息没有包含在手册中,不要犹豫,请将问题发送到 PHP-GTK-General 21 | 邮件列表:&email.phpgtk;。 22 | 23 | 24 | 这个手册使用修改过的 Docbook DTD 生成。所作的修改是为了使用更简单的样式来记录 25 | PHP-GTK 2 对象系统。每个类以及其方法的 XML 文档是从 PHP-GTK 2 的源代码中自动生成的, 26 | 同过 PHP5 反射来更新以保证文档和代码同步。 27 | 28 | 29 | XML 生成器由 &link.andrei;(PHP-GTK 最初的作者)编写,由 &link.cweiske; 修改。 30 | 本文档使用其他工具套用 XSL 样式将 XML 源码转化为不同的格式。 31 | 手册的编译系统由 &link.steph; 维护。 32 | 33 | 34 | 希望你阅读这个文档的时候能像我们制作这个文档一样开心。 35 | 36 | 37 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkbox/start_vs_end.phpw: -------------------------------------------------------------------------------- 1 | pack_end(new GtkButton('pack_end #1', false)); 14 | 15 | //Add the first button with pack_start. It will be the first 16 | //on the box, although it's added at second. 17 | $box->pack_start(new GtkButton('pack_start #1', false)); 18 | 19 | //Add the second button with pack_start. It will be number 20 | //2, directly after the first button added with pack_start 21 | $box->pack_start(new GtkButton('pack_start #2', false)); 22 | 23 | //This fourth button will be at position 3 in the box: 24 | //After all buttons which have been added with pack_start, 25 | //but before the previous one added with pack_end. 26 | $box->pack_end(new GtkButton('pack_end #2', false)); 27 | 28 | 29 | //Initialize the window and add the demo box 30 | $wnd = new GtkWindow(); 31 | $wnd->set_title('pack_start vs. pack_end'); 32 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 33 | $wnd->add($box); 34 | $wnd->show_all(); 35 | Gtk::main(); 36 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtklabel/set_label.phpw: -------------------------------------------------------------------------------- 1 | set_label('' . 7 | ($label->get_text() + 1) . 8 | '' 9 | ); 10 | } 11 | 12 | // Create a window to hold the label. 13 | $window = new GtkWindow(); 14 | 15 | // Set up the window to close cleanly. 16 | $window->connect_simple('destroy', array('Gtk', 'main_quit')); 17 | 18 | // Create a label. 19 | $label = new GtkLabel('0'); 20 | 21 | // Set the label to use markup. 22 | $label->set_use_markup(true); 23 | 24 | // Create a button that will be used to increment the counter. 25 | $button = new GtkButton('Click Me!'); 26 | 27 | // When the button is clicked, the counter should be updated. 28 | $button->connect_simple('clicked', 'updateCounter', $label); 29 | 30 | // Create a vbox to hold the label and button. 31 | $vBox = new GtkVBox(); 32 | 33 | // Add the label & button to the box. 34 | $vBox->pack_start($label); 35 | $vBox->pack_start($button); 36 | 37 | // Add the box to the window. 38 | $window->add($vBox); 39 | 40 | // Show the window and start the main loop. 41 | $window->show_all(); 42 | Gtk::main(); 43 | ?> 44 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtktoolbar/set_style.phpw: -------------------------------------------------------------------------------- 1 | set_show_arrow(false); 8 | //We use a vertical toolbar here so that 9 | // Gtk::TOOLBAR_BOTH_HORIZ is visible 10 | $tb->set_orientation(Gtk::ORIENTATION_VERTICAL); 11 | 12 | $styles = array( 13 | 'Gtk::TOOLBAR_ICONS', 14 | 'Gtk::TOOLBAR_TEXT', 15 | 'Gtk::TOOLBAR_BOTH', 16 | 'Gtk::TOOLBAR_BOTH_HORIZ' 17 | ); 18 | 19 | foreach ($styles as $style) { 20 | $btn = new GtkToolButton( 21 | GtkImage::new_from_stock( 22 | Gtk::STOCK_SELECT_COLOR, 23 | Gtk::ICON_SIZE_SMALL_TOOLBAR 24 | ), 25 | $style 26 | ); 27 | $btn->connect_simple('clicked', 'onClickedStyle', $tb, $style); 28 | $tb->insert($btn, -1); 29 | } 30 | 31 | function onClickedStyle($tb, $strStyle) 32 | { 33 | //we have a string in $strStyle and need to 34 | // convert it to the number 35 | eval('$style = ' . $strStyle . ';'); 36 | $tb->set_style($style); 37 | } 38 | 39 | //Standard window that has the toolbar as only child 40 | $window = new GtkWindow(); 41 | $window->add($tb); 42 | $window->connect_simple('destroy', array('Gtk', 'main_quit')); 43 | $window->show_all(); 44 | Gtk::main(); 45 | ?> -------------------------------------------------------------------------------- /manual/en/reference/libsexy/sexytooltip.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SexyTooltip 6 | GtkWindow 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | void position_to_rect 21 | GdkRectangle rect 22 | GdkScreen screen 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | void position_to_widget 36 | GtkWidget widget 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkscrollbar/vscrollbar.phpw: -------------------------------------------------------------------------------- 1 | set_name('my-scrollbar'); 21 | //Re-set the value, since passing the adjustment to the scrollbar 22 | // resets the value to zero 23 | $adj->set_value(50); 24 | 25 | //Here we apply some style properties to our scrollbar 26 | Gtk::rc_parse_string(' 27 | style "mysbstyle" { 28 | GtkVScrollbar::has-forward-stepper = 0 29 | GtkVScrollbar::has-secondary-forward-stepper = 1 30 | GtkVScrollbar::fixed-slider-length = 1 31 | GtkVScrollbar::min-slider-length = 10 32 | } widget "*.my-scrollbar" style "mysbstyle"'); 33 | 34 | 35 | //Normal stuff, you know it 36 | $wnd = new GtkWindow(); 37 | $wnd->set_default_size(-1, 300); 38 | $wnd->add($sb); 39 | $wnd->show_all(); 40 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 41 | 42 | Gtk::main(); 43 | ?> -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtktreedragdest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkTreeDragDest 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | void drag_data_received 20 | dest 21 | GtkSelectionData selection_data 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | void row_drop_possible 35 | dest_path 36 | GtkSelectionData selection_data 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /manual/en/reference/gtk/gtkaccessible.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkAccessible 6 | AtkObject 7 | 8 | Accessibility support for other widgets. 9 | 10 | 11 | A class to provide accessibility support for other widgets when used with 12 | an assistive technology such as a screen reader. 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | void connect_widget_destroyed 22 | void 23 | 24 | 25 | 26 | Specified the callback to be called when the corresponding widget is 27 | destroyed. 28 | 29 | 30 | 31 | This method specifies the callback to be called when the widget 32 | corresponding to a GtkAccessible is destroyed. 33 | 34 | 35 | &seealso; 36 | get_accessible, 37 | AtkObject 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtknotebook/switch-page.phpw: -------------------------------------------------------------------------------- 1 | append_page(new GtkLabel('Page one'), new GtkLabel('1.')); 7 | 8 | $ntbk->append_page( 9 | new GtkLabel('This is the second child'), 10 | new GtkLabel('Second') 11 | ); 12 | 13 | $ntbk->append_page( 14 | new GtkLabel('Third page'), 15 | new GtkLabel('3rd') 16 | ); 17 | 18 | //the fourth tab has no user-defined label 19 | // get_tab_label_text() will return NULL in this case 20 | $ntbk->append_page(new GtkLabel('IV')); 21 | 22 | 23 | function onSwitchPage($ntbk, $pointer, $pageNum, $wnd) 24 | { 25 | //the number of the newly selected tab is $pageNum 26 | //use it to get the page child widget 27 | $pageWidget = $ntbk->get_nth_page($pageNum); 28 | //now we can use the page child to retrieve the tab label 29 | $text = $ntbk->get_tab_label_text($pageWidget); 30 | //show the selected tab's title in the window title 31 | $wnd->set_title($text); 32 | } 33 | 34 | $wnd = new GtkWindow(); 35 | //everytime the user switches the tab, call the onSwitchPage function 36 | $ntbk->connect('switch-page', 'onSwitchPage', $wnd); 37 | 38 | 39 | //The rest of the setup is standard 40 | $wnd->set_default_size(300, -1); 41 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 42 | $wnd->add($ntbk); 43 | $wnd->show_all(); 44 | Gtk::main(); 45 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwindow/get_focus.phpw: -------------------------------------------------------------------------------- 1 | key to cycle the focus 4 | * through the buttons. You will see the label of the focused 5 | * button be echoed to the console every second. 6 | * Also try to activate another window while the script is 7 | * running. 8 | */ 9 | 10 | $wnd = new GtkWindow(); 11 | $vbox = new GtkVBox(); 12 | 13 | //Create ten buttons we can focus with 14 | for ($nA = 1; $nA <= 10; $nA++) { 15 | $button = new GtkButton('Button ' . $nA); 16 | $vbox->add($button); 17 | } 18 | 19 | /** 20 | * This method will write the label of the current 21 | * focused widget to the console 22 | * It returns true, so that the interval doesn't stop 23 | */ 24 | function echoFocusedLabel($wnd) 25 | { 26 | //get_focus() returns the widget 27 | if ($wnd->get_focus()->flags() & Gtk::HAS_FOCUS) { 28 | $focus = 'focus is set'; 29 | } else { 30 | $focus = 'focus is NOT set (window not focused?)'; 31 | } 32 | echo $wnd->get_focus()->get_label() . ' - ' . $focus . "\r\n"; 33 | return true; 34 | } 35 | 36 | //add a timeout of one second, so that the echoFocusedLabel 37 | //method will echo the label of the focused widget every second 38 | Gtk::timeout_add(1000, 'echoFocusedLabel', $wnd); 39 | 40 | $wnd->add($vbox); 41 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 42 | $wnd->show_all(); 43 | Gtk::main(); 44 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkfilefilter/add_custom.phpw: -------------------------------------------------------------------------------- 1 | set_name('My first custom filter "a"'); 15 | /** 16 | * Add our filter: 17 | * - first the information we need about the files 18 | * - second the callback function's name 19 | * - the third parameter is normally not needed; 20 | * here it's a user-defined parameter that lets us 21 | * customize the filter function a bit. 22 | */ 23 | $filterA->add_custom( 24 | Gtk::FILE_FILTER_DISPLAY_NAME | Gtk::FILE_FILTER_MIME_TYPE, 25 | 'fileCheck', 26 | 'a' 27 | ); 28 | 29 | //Add a second one with different filter parameter 30 | $filterB = new GtkFileFilter(); 31 | $filterB->set_name('My first custom filter "b"'); 32 | $filterB->add_custom( 33 | Gtk::FILE_FILTER_DISPLAY_NAME | Gtk::FILE_FILTER_MIME_TYPE, 34 | 'fileCheck', 'b' 35 | ); 36 | 37 | //Now add those filters to the file dialog 38 | $filedlg = new GtkFileChooserDialog('custom filter demo'); 39 | $filedlg->add_filter($filterA); 40 | $filedlg->add_filter($filterB); 41 | 42 | $filedlg->run(); 43 | 44 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwindow/add_mnemonic.phpw: -------------------------------------------------------------------------------- 1 | pack_start($button1); 17 | $vbox->pack_start($button2); 18 | $wnd->add($vbox); 19 | 20 | //little echo method 21 | function echoit($value) { echo $value . "\r\n"; } 22 | 23 | //if one of the button is clicked, it's label will be printed 24 | //on the console 25 | $button1->connect_simple('clicked', 'echoit', $button1->get_label()); 26 | $button2->connect_simple('clicked', 'echoit', $button2->get_label()); 27 | 28 | //Here we add the mnemonic for button2 by hand. So 29 | //pressing Alt+2 will cause button2 to be activated. 30 | $wnd->add_mnemonic(ord('2'), $button2); 31 | 32 | //We have to remove the mnemonic from the window before it gets destroyed 33 | //If we don't do this, a warning will be spit out 34 | $wnd->connect_simple('destroy', array($wnd, 'remove_mnemonic'), ord('2'), $button2); 35 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 36 | 37 | $wnd->show_all(); 38 | Gtk::main(); 39 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtkwindow/mnemonic_activate.phpw: -------------------------------------------------------------------------------- 1 | add($button); 11 | 12 | //little echo method 13 | function echoit($value) { echo $value . "\r\n"; } 14 | 15 | // When the button's mnemonic is activated, its label will be printed. 16 | $button->connect_simple('mnemonic_activate', 'echoit', $button->get_label()); 17 | 18 | // We must tell the window which modifiers to use with the mnemonics. 19 | $wnd->set_mnemonic_modifier(Gdk::MOD1_MASK); // Alt 20 | 21 | // Here we add the mnemonic for the button by hand. So 22 | // pressing Alt+2 will cause the button to be activated. 23 | $wnd->add_mnemonic(ord('2'), $button); 24 | 25 | // We have to remove the mnemonic from the window before it gets destroyed 26 | // If we don't do this, a warning will be spit out 27 | $wnd->connect_simple('destroy', array($wnd, 'remove_mnemonic'), ord('2'), $button); 28 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 29 | 30 | // Show the window and all of its contents. Mnemonics cannot be activated 31 | // until after the window is shown. 32 | $wnd->show_all(); 33 | 34 | // Activate all widgets associated with Alt+2. 35 | $wnd->mnemonic_activate(ord('2'), Gdk::MOD1_MASK); 36 | Gtk::main(); 37 | ?> 38 | -------------------------------------------------------------------------------- /manual/en/reference/spell/gtkspell.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GtkSpell 6 | GObject 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | void detach 21 | void 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | void recheck_all 35 | void 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | void set_language 49 | void 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkvbox/constructor.phpw: -------------------------------------------------------------------------------- 1 | set_title("GtkHBox and GtkVBox packing demonstration"); 5 | $window->set_position(Gtk::WIN_POS_CENTER); 6 | $window->connect_simple("destroy", array("gtk", "main_quit")); 7 | $window->show(); 8 | 9 | //Adding a GtkVBox to our $window 10 | $vbox = new GtkVBox(false, 5); 11 | $window->add($vbox); 12 | 13 | //Let's add a GtkLabel as the first (topmost) widget in our $vbox 14 | $label = new GtkLabel(); 15 | $label->set_text("This GtkLabel is packed at the start of a GtkVBox. 16 | The GtkCalendar and the empty GtkTextView below are packed, respectively, 17 | at the start and the end of a GtkHBox, which is in turn packed at the end 18 | of the GtkVBox."); 19 | $label->set_justify(Gtk::JUSTIFY_LEFT); 20 | $vbox->pack_start($label, true, true, 5); 21 | $label->show(); 22 | 23 | //Adding a GtkHBox to the end (bottom) of the $vbox 24 | $hbox = new GtkHBox(true, 0); 25 | $vbox->pack_end($hbox); 26 | 27 | //Here we'll add GtkCalendar to the start (ie. the left) of the $hbox 28 | $calendar = new GtkCalendar(); 29 | $hbox->pack_start($calendar, true, true, 2); 30 | $calendar->show(); 31 | 32 | //Adding a GtkTextView to the end (ie. the right) fo the $hbox 33 | $text = new GtkTextView(); 34 | $text->set_editable(true); 35 | $hbox->pack_end($text, true, true, 2); 36 | $text->show(); 37 | 38 | $window->show_all(); 39 | Gtk::main(); 40 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreemodel/filter_new.phpw: -------------------------------------------------------------------------------- 1 | append(null, array('Northern europe', 0)); 5 | $western = $store->append(null, array('Western europe', 0)); 6 | $central = $store->append(null, array('Central europe', 0)); 7 | 8 | $ger = $store->append($central, array('Germany', 83251851)); 9 | $fr = $store->append($western, array('France', 59765983)); 10 | $nl = $store->append($western, array('Netherlands', 16318199)); 11 | $no = $store->append($nothern, array('Norway', 4525116)); 12 | 13 | //display it 14 | $wnd = new GtkWindow(); 15 | $wnd->set_title('GtkTreeStore example'); 16 | $wnd->connect_simple('destroy', array('gtk', 'main_quit')); 17 | 18 | 19 | //get the path to western europe 20 | $westpath = $store->get_path($western); 21 | //create view which shows western europe only 22 | $view = new GtkTreeView($store->filter_new($westpath)); 23 | 24 | 25 | //cell renderer, which actually displays the text 26 | $cell_renderer = new GtkCellRendererText(); 27 | //append one column to the view which displays the tree store column 0 28 | $view->append_column(new GtkTreeViewColumn('Country', $cell_renderer, 'text', 0)); 29 | //display column 1 from the tree store 30 | $view->append_column(new GtkTreeViewColumn('Population', $cell_renderer, 'text', 1)); 31 | //show all children at once 32 | $view->expand_all(); 33 | 34 | $wnd->add($view); 35 | $wnd->show_all(); 36 | Gtk::main(); 37 | ?> -------------------------------------------------------------------------------- /examples/reference/gtk/gtktreeview/selection.phpw: -------------------------------------------------------------------------------- 1 | get_selection(); 8 | //capture the "changed" signal 9 | $selection->connect('changed', 'selection_changed'); 10 | 11 | /** 12 | * This is the callback function for the changed 13 | * signal and display the value of the first column 14 | * of the selected row. 15 | */ 16 | function selection_changed($selection) 17 | { 18 | //get_selected returns the store and the iterator for that row 19 | list($model, $iter) = $selection->get_selected(); 20 | //get one single value of the model via get_value 21 | echo 'Value of column 0: ' . $model->get_value($iter, 0) . "\r\n"; 22 | }//function selection_changed($selection) 23 | 24 | 25 | //add a column to display the data 26 | $col = new GtkTreeViewColumn('Number', new GtkCellRendererText(), 'text', 0); 27 | $view->append_column($col); 28 | 29 | //add some data to the model/store 30 | $model->append(array('Zero')); 31 | $model->append(array('One')); 32 | $model->append(array('Two')); 33 | 34 | //add the view to the window 35 | $wnd = new GtkWindow(); 36 | $wnd->set_title('GtkTreeView selection example'); 37 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 38 | $wnd->add($view); 39 | $wnd->show_all(); 40 | Gtk::main(); 41 | ?> 42 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtkfilechooserbutton/constructor.phpw: -------------------------------------------------------------------------------- 1 | connect_simple( 8 | 'destroy', 9 | array('Gtk', 'main_quit') 10 | ); 11 | 12 | //Setting parameters of the window 13 | $window->set_title('GtkFileChooser Demo'); 14 | $window->set_default_size(250,60); 15 | $window->set_border_width(10); 16 | 17 | /* 18 | * Creating a new file chooser button 19 | * Note that the second parameter dictates what action 20 | * will be performed when the open button of the 21 | * GtkFileChooserDialog widget is clicked 22 | */ 23 | $thebutton = new GtkFileChooserButton( 24 | 'Select the File', 25 | Gtk::FILE_CHOOSER_ACTION_OPEN 26 | ); 27 | 28 | //Creating a label and a quit button 29 | $thelabel = new GtkLabel('Click to select a file: '); 30 | $toquit = new GtkButton('_Quit'); 31 | $toquit->connect_simple( 32 | 'clicked', 33 | array($window, 'destroy') 34 | ); 35 | 36 | //Creating a layout to add the elements 37 | $thehbox = new GtkHBox(); 38 | $thevbox = new GtkVBox(); 39 | 40 | //Adding the elements to the layout 41 | $thehbox->pack_start($thelabel); 42 | $thehbox->pack_start($thebutton); 43 | $thevbox->pack_start($thehbox); 44 | $thevbox->pack_start($toquit); 45 | 46 | //Displaying the window and starting the main loop 47 | $window->add($thevbox); 48 | $window->show_all(); 49 | Gtk::main(); 50 | ?> 51 | -------------------------------------------------------------------------------- /manual/en/reference/gdk/gdkcolor.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GdkColor 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | GdkColor 20 | red 21 | blue 22 | green 23 | allocated 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | void parse 40 | color 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | &static; 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /examples/reference/gtk/gtktoolbar/popup.phpw: -------------------------------------------------------------------------------- 1 | set_show_arrow(false); 10 | 11 | //Add some dummy symbols 12 | foreach (array(Gtk::STOCK_NEW, Gtk::STOCK_OPEN, Gtk::STOCK_SAVE) as $id) { 13 | $item = GtkToolButton::new_from_stock($id); 14 | $tb->insert($item, -1); 15 | } 16 | 17 | 18 | //Create the menu 19 | $menu = new GtkMenu(); 20 | $styles = array( 21 | array('_Icons only', Gtk::TOOLBAR_ICONS), 22 | array('_Text only', Gtk::TOOLBAR_TEXT), 23 | array('Icons _and text', Gtk::TOOLBAR_BOTH) 24 | ); 25 | foreach ($styles as &$style) { 26 | $item = new GtkMenuItem($style[0], true); 27 | $item->connect_simple('activate', array($tb, 'set_style'), $style[1]); 28 | $menu->append($item); 29 | } 30 | 31 | //Connect the callback and pass $menu as optional parameter 32 | $tb->connect('popup-context-menu', 'onPopup', $menu); 33 | 34 | function onPopup($tb, $x, $y, $button, $menu) { 35 | //set all items to visible 36 | $menu->show_all(); 37 | $menu->popup(); 38 | } 39 | 40 | //Standard window that has the toolbar as only child 41 | $window = new GtkWindow(); 42 | $window->add($tb); 43 | $window->connect_simple('destroy', array('Gtk', 'main_quit')); 44 | $window->show_all(); 45 | Gtk::main(); 46 | ?> -------------------------------------------------------------------------------- /manual/pt_BR/bookinfo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | &PHPGTK2Docs; 6 | &frontpage.authors; 7 | &phpgtk2doc.build-date; 8 | &frontpage.editors; 9 | &frontpage.translators; 10 | 11 | 12 | ©right.years; 13 | Grupo de Documentação do PHP-GTK 14 | 15 | 16 | 17 | Copyright 18 | 19 | Copyright © ©right.years; by the PHP-GTK Documentation Group. 20 | Permissão para cópia, distribuição e/ou modificação sob os termos da 21 | GNU Free Documentation License, Versão 1.2 ou qualquer outra versão 22 | posterior publicada pela Free Software Foundation; Uma cópia da licença 23 | está incluída na seção entitulada 24 | "&doclicense;". A última versão da 25 | licença está disponível online no endereço 26 | &url.doclicense;. 27 | 28 | 29 | Os atuais membros e editores do Grupo de Documentação do PHP-GTK estão 30 | listados na página principal deste manual. Se você quiser entrar em 31 | contato com o grupo, por favor, escreva para &link.phpgtkdoc;. Note que 32 | este endereço aponta para uma lista arquivada publicamente. 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /manual/ja/bookinfo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | &PHPGTK2Docs; 7 | &frontpage.authors; 8 | &phpgtk2doc.build-date; 9 | &frontpage.editors; 10 | &frontpage.translators; 11 | 12 | 13 | ©right.years; 14 | the PHP-GTK Documentation Group 15 | 16 | 17 | 18 | 著作権 19 | 20 | Copyright © ©right.years; by the PHP-GTK Documentation Group. 21 | Permission is granted to copy, distribute and/or modify this document 22 | under the terms of the GNU Free Documentation License, Version 1.2 23 | or any later version published by the Free Software Foundation; 24 | with no Invariant Sections, no Front-Cover Texts, and no Back-Cover 25 | Texts. A copy of the license is included in the section entitled 26 | "&doclicense;". The latest 27 | version is presently available online at 28 | &url.doclicense;. 29 | 30 | 31 | PHP-GTK Documentation Group の現在のメンバーおよび編集者の一覧は、 32 | このマニュアルの最初のページにあります。メンバーと連絡を取りたい場合は、 33 | &link.phpgtkdoc; をご利用ください。 34 | このアドレスは一般に公開されているメーリングリストであり、 35 | 投稿した内容はアーカイブとして公開されることに注意しましょう。 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /manual/zh_cn/appendix/credits.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | &Credits; 6 | 7 | 8 | AndreiZmievski 9 | 主体工作 10 | 11 | 12 | 13 | 14 | 15 | 16 | StephFox 17 | Win32 编译和二进制分发包,Glade 支持,各部分代码 18 | 19 | 20 | AnantNarayanan 21 | Sourceview,scintilla 和 mozembed 扩展,补丁 22 | 23 | 24 | ChristianWeiske 25 | 反射支持,补丁 26 | 27 | 28 | 29 | 30 | 31 | 32 | MarkusFischer 33 | 各部分代码,大量扩展 34 | 35 | 36 | AlanKnowles 37 | GtkHTML 扩展,各部分代码 38 | 39 | 40 | FrankKromann 41 | Win32 编译和二进制分发包,部分代码生成工具。 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /examples/reference/gdk/gdkpixbuf/new_from_gd.phpw: -------------------------------------------------------------------------------- 1 | 400, 'height' => 300, 'canvas' => 'gd'))); 18 | 19 | //prepare the chart 20 | $Plotarea = $Graph->addNew('plotarea'); 21 | $Dataset = Image_Graph::factory('dataset'); 22 | $Dataset->addPoint('Denmark', 10); 23 | $Dataset->addPoint('Norway', 3); 24 | $Dataset->addPoint('Sweden', 8); 25 | $Dataset->addPoint('Finland', 5); 26 | $Plot = $Plotarea->addNew('bar', $Dataset); 27 | $Plot->setLineColor('blue@0.2'); 28 | 29 | //This is the key: Don't output anything, just finish it 30 | $Graph->done(array('output' => 'none')); 31 | 32 | //get the gd object 33 | $canvas = $Graph->_getCanvas(); 34 | $gd = $canvas->_canvas; 35 | 36 | //Create GdkPixbuf from the GD object 37 | $pixbuf = GdkPixbuf::new_from_gd($gd); 38 | 39 | //Display the pixbuf by using a GtkImage widget 40 | $wnd = new GtkWindow(); 41 | $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); 42 | $wnd->add(GtkImage::new_from_pixbuf($pixbuf)); 43 | $wnd->show_all(); 44 | Gtk::main(); 45 | ?> -------------------------------------------------------------------------------- /examples/tutorials/helloglade/helloglade.glade: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | True 8 | Close me 9 | GTK_WINDOW_TOPLEVEL 10 | GTK_WIN_POS_NONE 11 | False 12 | True 13 | False 14 | True 15 | False 16 | False 17 | GDK_WINDOW_TYPE_HINT_NORMAL 18 | GDK_GRAVITY_NORTH_WEST 19 | 20 | 21 | 22 | 23 | True 24 | True 25 | gtk-close 26 | True 27 | GTK_RELIEF_NORMAL 28 | True 29 | 30 | 31 | 32 | 33 | 34 | 35 | --------------------------------------------------------------------------------