gdk3 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +6 -2
- data/ext/gdk3/extconf.rb +4 -1
- data/ext/gdk3/gdk3.def +2 -2
- data/ext/gdk3/rbgdk.c +5 -51
- data/ext/gdk3/rbgdk3.h +6 -4
- data/ext/gdk3/rbgdk3conversions.h +5 -2
- data/ext/gdk3/rbgdk3private.h +1 -6
- data/ext/gdk3/rbgdkcairo.c +0 -4
- data/ext/gdk3/rbgdkdevice.c +60 -4
- data/ext/gdk3/rbgdkdevicemanager.c +39 -0
- data/ext/gdk3/rbgdkdisplay.c +8 -63
- data/ext/gdk3/rbgdkevent.c +644 -396
- data/ext/gdk3/rbgdkwindow.c +29 -32
- data/lib/1.9/gdk3.so +0 -0
- data/lib/2.0/gdk3.so +0 -0
- data/lib/gdk3/deprecated.rb +13 -1
- data/test/test-gdk-event.rb +598 -0
- data/test/test-gdk-rgba.rb +2 -2
- data/vendor/local/bin/gtk-launch.exe +0 -0
- data/vendor/local/bin/gtk-query-immodules-3.0.exe +0 -0
- data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
- data/vendor/local/bin/gtk3-demo-application.exe +0 -0
- data/vendor/local/bin/gtk3-demo.exe +0 -0
- data/vendor/local/bin/gtk3-widget-factory.exe +0 -0
- data/vendor/local/bin/libgailutil-3-0.dll +0 -0
- data/vendor/local/bin/libgdk-3-0.dll +0 -0
- data/vendor/local/bin/libgtk-3-0.dll +0 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkapplaunchcontext.h +6 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkcairo.h +13 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkcolor.h +8 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkcursor.h +17 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkdevice.h +40 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkdevicemanager.h +4 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkdisplay.h +35 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkdisplaymanager.h +6 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkdnd.h +22 -1
- data/vendor/local/include/gtk-3.0/gdk/gdkenumtypes.h +38 -37
- data/vendor/local/include/gtk-3.0/gdk/gdkevents.h +50 -9
- data/vendor/local/include/gtk-3.0/gdk/gdkframeclock.h +1 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkkeys.h +22 -1
- data/vendor/local/include/gtk-3.0/gdk/gdkkeysyms-compat.h +1 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkkeysyms.h +1 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkmain.h +25 -9
- data/vendor/local/include/gtk-3.0/gdk/gdkpango.h +5 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkpixbuf.h +4 -1
- data/vendor/local/include/gtk-3.0/gdk/gdkprivate.h +4 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkproperty.h +9 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkrectangle.h +4 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkrgba.h +8 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkscreen.h +33 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkselection.h +9 -0
- data/vendor/local/include/gtk-3.0/gdk/gdktestutils.h +3 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkthreads.h +8 -1
- data/vendor/local/include/gtk-3.0/gdk/gdktypes.h +2 -2
- data/vendor/local/include/gtk-3.0/gdk/gdkversionmacros.h +53 -23
- data/vendor/local/include/gtk-3.0/gdk/gdkvisual.h +21 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkwin32.h +1 -65
- data/vendor/local/include/gtk-3.0/gdk/gdkwindow.h +182 -0
- data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32cursor.h +1 -0
- data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32display.h +1 -0
- data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32displaymanager.h +1 -0
- data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32dnd.h +1 -0
- data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32keys.h +1 -0
- data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32misc.h +113 -0
- data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32screen.h +1 -0
- data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32window.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkarrowaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkbooleancellaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkbuttonaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcellaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcellaccessibleparent.h +9 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcheckmenuitemaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcomboboxaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcontaineraccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcontainercellaccessible.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkentryaccessible.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkexpanderaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkframeaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkiconviewaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkimageaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkimagecellaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtklabelaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtklevelbaraccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtklinkbuttonaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtklistboxaccessible.h +58 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtklistboxrowaccessible.h +55 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtklockbuttonaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkmenuaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkmenuitemaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkmenushellaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtknotebookaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtknotebookpageaccessible.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkpanedaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkprogressbaraccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkradiobuttonaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkradiomenuitemaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkrangeaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkrenderercellaccessible.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkscaleaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkscalebuttonaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkscrolledwindowaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkspinbuttonaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkspinneraccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkstatusbaraccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkswitchaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtktextcellaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtktextviewaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtktogglebuttonaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtktoplevelaccessible.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtktreeviewaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkwidgetaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/a11y/gtkwindowaccessible.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/{gtkaction.h → deprecated/gtkaction.h} +43 -1
- data/vendor/local/include/gtk-3.0/gtk/{gtkactiongroup.h → deprecated/gtkactiongroup.h} +31 -4
- data/vendor/local/include/gtk-3.0/gtk/{gtkactivatable.h → deprecated/gtkactivatable.h} +10 -1
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkcolorsel.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkcolorseldialog.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkfontsel.h +2 -1
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkgradient.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhbbox.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhbox.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhpaned.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhscale.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhscrollbar.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhseparator.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhsv.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/{gtkiconfactory.h → deprecated/gtkiconfactory.h} +43 -0
- data/vendor/local/include/gtk-3.0/gtk/{gtkimagemenuitem.h → deprecated/gtkimagemenuitem.h} +12 -1
- data/vendor/local/include/gtk-3.0/gtk/{gtkradioaction.h → deprecated/gtkradioaction.h} +8 -1
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkrc.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/{gtkrecentaction.h → deprecated/gtkrecentaction.h} +6 -1
- data/vendor/local/include/gtk-3.0/gtk/{gtkstock.h → deprecated/gtkstock.h} +333 -106
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkstyle.h +20 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtksymboliccolor.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtktable.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtktearoffmenuitem.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/{gtktoggleaction.h → deprecated/gtktoggleaction.h} +8 -1
- data/vendor/local/include/gtk-3.0/gtk/{gtkuimanager.h → deprecated/gtkuimanager.h} +21 -2
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvbbox.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvbox.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvpaned.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvscale.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvscrollbar.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvseparator.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/gtk-a11y.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtk.h +17 -10
- data/vendor/local/include/gtk-3.0/gtk/gtkaboutdialog.h +33 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkaccelgroup.h +22 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkaccellabel.h +7 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkaccelmap.h +15 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkaccessible.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkadjustment.h +18 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkalignment.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkappchooser.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkappchooserbutton.h +9 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkappchooserdialog.h +6 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkappchooserwidget.h +14 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkapplication.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkarrow.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkaspectframe.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkassistant.h +22 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkbbox.h +6 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkbin.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkbindings.h +11 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkborder.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkbox.h +16 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkbuildable.h +11 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkbuilder.h +43 -10
- data/vendor/local/include/gtk-3.0/gtk/gtkbutton.h +26 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcalendar.h +16 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellarea.h +47 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellareabox.h +6 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellareacontext.h +11 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcelleditable.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcelllayout.h +11 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderer.h +25 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellrendereraccel.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderercombo.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererpixbuf.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererprogress.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererspin.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererspinner.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderertext.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderertoggle.h +8 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcellview.h +15 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcheckbutton.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcheckmenuitem.h +11 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkclipboard.h +29 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcolorbutton.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcolorutils.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcombobox.h +42 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcomboboxtext.h +12 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcontainer.h +36 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkcssprovider.h +8 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkdebug.h +7 -1
- data/vendor/local/include/gtk-3.0/gtk/gtkdialog.h +17 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkdnd.h +43 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkdrawingarea.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkeditable.h +14 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkentry.h +69 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkentrybuffer.h +13 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkentrycompletion.h +28 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkenums.h +29 -1
- data/vendor/local/include/gtk-3.0/gtk/gtkeventbox.h +6 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkexpander.h +17 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkfilechooser.h +64 -2
- data/vendor/local/include/gtk-3.0/gtk/gtkfilechooserbutton.h +9 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkfilechooserdialog.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkfilechooserwidget.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkfilefilter.h +11 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkfixed.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkfontbutton.h +15 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkframe.h +10 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkgrid.h +30 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkheaderbar.h +95 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkicontheme.h +76 -2
- data/vendor/local/include/gtk-3.0/gtk/gtkiconview.h +62 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkimage.h +37 -1
- data/vendor/local/include/gtk-3.0/gtk/gtkimcontext.h +12 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkimcontextsimple.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkimmulticontext.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkinfobar.h +19 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkinvisible.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtklabel.h +50 -0
- data/vendor/local/include/gtk-3.0/gtk/gtklayout.h +7 -0
- data/vendor/local/include/gtk-3.0/gtk/gtklinkbutton.h +7 -0
- data/vendor/local/include/gtk-3.0/gtk/gtklistbox.h +232 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkliststore.h +23 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkmain.h +35 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkmenu.h +28 -1
- data/vendor/local/include/gtk-3.0/gtk/gtkmenubar.h +6 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkmenuitem.h +19 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkmenushell.h +14 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkmenutoolbutton.h +7 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkmessagedialog.h +9 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkmisc.h +5 -1
- data/vendor/local/include/gtk-3.0/gtk/gtkmountoperation.h +7 -0
- data/vendor/local/include/gtk-3.0/gtk/gtknotebook.h +45 -0
- data/vendor/local/include/gtk-3.0/gtk/gtknumerableicon.h +13 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkoffscreenwindow.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkorientable.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkpagesetup.h +26 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkpaned.h +11 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkpapersize.h +24 -1
- data/vendor/local/include/gtk-3.0/gtk/gtkplacessidebar.h +125 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkplug.h +8 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkprintcontext.h +12 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkprintoperation.h +34 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkprintoperationpreview.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkprintsettings.h +94 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkprogressbar.h +15 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkradiobutton.h +10 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkradiomenuitem.h +9 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkradiotoolbutton.h +7 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkrange.h +29 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkrecentchooser.h +33 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkrecentchooserdialog.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkrecentchoosermenu.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkrecentchooserwidget.h +3 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkrecentfilter.h +14 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkrecentmanager.h +38 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkrevealer.h +82 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkscale.h +13 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkscalebutton.h +10 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkscrollable.h +10 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkscrollbar.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkscrolledwindow.h +19 -0
- data/vendor/local/include/gtk-3.0/gtk/gtksearchbar.h +95 -0
- data/vendor/local/include/gtk-3.0/gtk/gtksearchentry.h +2 -1
- data/vendor/local/include/gtk-3.0/gtk/gtkselection.h +52 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkseparator.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkseparatormenuitem.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkseparatortoolitem.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/gtksettings.h +14 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkshow.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/gtksizegroup.h +9 -0
- data/vendor/local/include/gtk-3.0/gtk/gtksizerequest.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/gtksocket.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkspinbutton.h +25 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkspinner.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkstack.h +105 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkstackswitcher.h +65 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkstatusbar.h +8 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkstatusicon.h +35 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkstylecontext.h +122 -2
- data/vendor/local/include/gtk-3.0/gtk/gtkstyleproperties.h +11 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkstyleprovider.h +3 -1
- data/vendor/local/include/gtk-3.0/gtk/gtkswitch.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktestutils.h +18 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktextattributes.h +16 -8
- data/vendor/local/include/gtk-3.0/gtk/gtktextbuffer.h +62 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktextbufferrichtext.h +12 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktextchild.h +4 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktextdisplay.h +1 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktextiter.h +106 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktextlayout.h +48 -4
- data/vendor/local/include/gtk-3.0/gtk/gtktextmark.h +8 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktexttag.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktexttagtable.h +7 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktextview.h +61 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkthemingengine.h +28 -1
- data/vendor/local/include/gtk-3.0/gtk/gtktogglebutton.h +11 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktoggletoolbutton.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktoolbar.h +17 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktoolbutton.h +15 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktoolitem.h +30 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktoolitemgroup.h +18 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktoolpalette.h +21 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktoolshell.h +10 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktooltip.h +10 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktreednd.h +9 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktreemodel.h +68 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktreemodelfilter.h +12 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktreemodelsort.h +10 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktreeselection.h +21 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktreesortable.h +7 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktreestore.h +24 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktreeview.h +94 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktreeviewcolumn.h +53 -0
- data/vendor/local/include/gtk-3.0/gtk/gtktypebuiltins.h +123 -108
- data/vendor/local/include/gtk-3.0/gtk/gtktypes.h +9 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkversion.h +4 -4
- data/vendor/local/include/gtk-3.0/gtk/gtkviewport.h +6 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkvolumebutton.h +2 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkwidget.h +365 -4
- data/vendor/local/include/gtk-3.0/gtk/gtkwidgetpath.h +30 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkwindow.h +119 -0
- data/vendor/local/lib/girepository-1.0/Gdk-3.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Gtk-3.0.typelib +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules.cache +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.la +2 -2
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.la +2 -2
- data/vendor/local/lib/libgailutil-3.dll.a +0 -0
- data/vendor/local/lib/libgailutil-3.la +2 -2
- data/vendor/local/lib/libgdk-3.dll.a +0 -0
- data/vendor/local/lib/libgdk-3.la +5 -5
- data/vendor/local/lib/libgtk-3.dll.a +0 -0
- data/vendor/local/lib/libgtk-3.la +5 -5
- data/vendor/local/lib/pkgconfig/gail-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-win32-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-win32-3.0.pc +1 -1
- data/vendor/local/share/gir-1.0/Gdk-3.0.gir +2639 -2145
- data/vendor/local/share/gir-1.0/Gtk-3.0.gir +21620 -16038
- data/vendor/local/share/glib-2.0/schemas/gschemas.compiled +0 -0
- data/vendor/local/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml +8 -0
- data/vendor/local/share/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml +25 -0
- data/vendor/local/share/gtk-3.0/gtkbuilder.rng +19 -0
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailMisc.html +43 -46
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailTextUtil.html +17 -20
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/index.html +4 -4
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/libgail-util-main.html +9 -9
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/style.css +71 -16
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDevice.html +114 -18
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDeviceManager.html +14 -17
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplay.html +26 -25
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplayManager.html +14 -16
- data/vendor/local/share/gtk-doc/html/gdk3/GdkScreen.html +58 -22
- data/vendor/local/share/gtk-doc/html/gdk3/annotation-glossary.html +39 -51
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-0.html +27 -26
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-10.html +148 -0
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-2.html +13 -16
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-4.html +23 -26
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-6.html +10 -13
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-8.html +41 -17
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-deprecated.html +36 -28
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-full.html +187 -58
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Application-launching.html +16 -19
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cairo-Interaction.html +159 -54
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Colors.html +12 -15
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cursors.html +119 -17
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Drag-and-Drop.html +13 -16
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Event-Structures.html +33 -26
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Events.html +70 -17
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-GdkFrameClock.html +12 -15
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-GdkFrameTimings.html +12 -15
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-General.html +93 -30
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Keyboard-Handling.html +18 -21
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pango-Interaction.html +59 -62
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pixbufs.html +15 -18
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Points-Rectangles-and-Regions.html +15 -18
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Properties-and-Atoms.html +13 -16
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-RGBA-Colors.html +13 -16
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Selections.html +13 -16
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Testing.html +14 -17
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Threads.html +40 -43
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Visuals.html +12 -15
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Wayland-Interaction.html +425 -0
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Windows.html +363 -106
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-X-Window-System-Interaction.html +264 -17
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3.devhelp2 +38 -2
- data/vendor/local/share/gtk-doc/html/gdk3/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk3/index.html +8 -4
- data/vendor/local/share/gtk-doc/html/gdk3/index.sgml +44 -6
- data/vendor/local/share/gtk-doc/html/gdk3/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk3/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk3/reference.html +12 -9
- data/vendor/local/share/gtk-doc/html/gdk3/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk3/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk3/style.css +71 -16
- data/vendor/local/share/gtk-doc/html/gdk3/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk3/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/AbstractObjects.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/Application.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/ApplicationChoosing.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/Builder.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk3/ButtonWidgets.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/DeprecatedObjects.html +38 -11
- data/vendor/local/share/gtk-doc/html/gtk3/DisplayWidgets.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAboutDialog.html +15 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAccelLabel.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAccessible.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAction.html +347 -29
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActionGroup.html +158 -21
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActionable.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActivatable.html +58 -25
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAdjustment.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAlignment.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooser.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserButton.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserDialog.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserWidget.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkApplication.html +82 -23
- data/vendor/local/share/gtk-doc/html/gtk3/GtkApplicationWindow.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkArrow.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAspectFrame.html +16 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAssistant.html +19 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBin.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBox.html +91 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBuildable.html +16 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBuilder.html +341 -39
- data/vendor/local/share/gtk-doc/html/gtk3/GtkButton.html +82 -27
- data/vendor/local/share/gtk-doc/html/gtk3/GtkButtonBox.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCalendar.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellArea.html +22 -24
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaBox.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaContext.html +16 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellEditable.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellLayout.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRenderer.html +20 -23
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererAccel.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererCombo.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererPixbuf.html +25 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererProgress.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpin.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpinner.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererText.html +36 -39
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererToggle.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellView.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckButton.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckMenuItem.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorButton.html +22 -25
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooser.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserDialog.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserWidget.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelection.html +17 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelectionDialog.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBox.html +43 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBoxText.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkContainer.html +40 -21
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCssProvider.html +42 -46
- data/vendor/local/share/gtk-doc/html/gtk3/GtkDialog.html +30 -34
- data/vendor/local/share/gtk-doc/html/gtk3/GtkDrawingArea.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEditable.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntry.html +121 -41
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryBuffer.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryCompletion.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEventBox.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkExpander.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooser.html +67 -34
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserButton.html +16 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserDialog.html +21 -24
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserWidget.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileFilter.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFixed.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontButton.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooser.html +37 -40
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserDialog.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserWidget.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelection.html +34 -37
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelectionDialog.html +22 -25
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFrame.html +15 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGrid.html +229 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHBox.html +17 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHButtonBox.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHPaned.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHSV.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHScale.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHScrollbar.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHSeparator.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHandleBox.html +23 -26
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHeaderBar.html +503 -0
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContext.html +15 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContextSimple.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIMMulticontext.html +19 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconTheme.html +451 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconView.html +25 -27
- data/vendor/local/share/gtk-doc/html/gtk3/GtkImage.html +64 -21
- data/vendor/local/share/gtk-doc/html/gtk3/GtkImageMenuItem.html +80 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkInfoBar.html +102 -46
- data/vendor/local/share/gtk-doc/html/gtk3/GtkInvisible.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLabel.html +146 -72
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLayout.html +16 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLevelBar.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLinkButton.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkListBox.html +1251 -0
- data/vendor/local/share/gtk-doc/html/gtk3/GtkListStore.html +17 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLockButton.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenu.html +60 -26
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuBar.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuButton.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuItem.html +50 -25
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuShell.html +51 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuToolButton.html +20 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMessageDialog.html +23 -26
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMisc.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkNotebook.html +17 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkNumerableIcon.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkOffscreenWindow.html +19 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkOverlay.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetup.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetupUnixDialog.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPaned.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPaperSize.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPlacesSidebar.html +983 -0
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintContext.html +50 -53
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintJob.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintSettings.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintUnixDialog.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrinter.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkProgressBar.html +24 -27
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioAction.html +53 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioButton.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioMenuItem.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioToolButton.html +22 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRange.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentAction.html +36 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooser.html +18 -23
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserDialog.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserMenu.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserWidget.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentFilter.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentManager.html +19 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRevealer.html +437 -0
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScale.html +21 -24
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScaleButton.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollable.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollbar.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrolledWindow.html +25 -24
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchBar.html +514 -0
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchEntry.html +57 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparator.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorMenuItem.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorToolItem.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSettings.html +191 -47
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSizeGroup.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinButton.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinner.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStack.html +708 -0
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStackSwitcher.html +195 -0
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusIcon.html +32 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusbar.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyle.html +108 -111
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleContext.html +230 -108
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleProvider.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSwitch.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTable.html +28 -31
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTearoffMenuItem.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextBuffer.html +42 -34
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextIter.html +67 -45
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextMark.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTag.html +84 -133
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTagTable.html +17 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextView.html +76 -33
- data/vendor/local/share/gtk-doc/html/gtk3/GtkThemingEngine.html +32 -26
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleAction.html +49 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleButton.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleToolButton.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolButton.html +29 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItem.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItemGroup.html +20 -23
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolPalette.html +20 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolShell.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolbar.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTooltip.html +19 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModel.html +17 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelFilter.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelSort.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSelection.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSortable.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeStore.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeView.html +23 -26
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeViewColumn.html +16 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkUIManager.html +114 -25
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVBox.html +17 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVButtonBox.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVPaned.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVScale.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVScrollbar.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVSeparator.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkViewport.html +16 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVolumeButton.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWidget.html +1137 -138
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindow.html +113 -30
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindowGroup.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/LayoutContainers.html +35 -20
- data/vendor/local/share/gtk-doc/html/gtk3/MenusAndCombos.html +10 -13
- data/vendor/local/share/gtk-doc/html/gtk3/MiscObjects.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/NumericEntry.html +14 -11
- data/vendor/local/share/gtk-doc/html/gtk3/Ornaments.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/PlugSocket.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/Printing.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/RecentDocuments.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/ScrollingWidgets.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/SelectorWidgets.html +14 -11
- data/vendor/local/share/gtk-doc/html/gtk3/TextWidget.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk3/TextWidgetObjects.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/TreeWidget.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk3/TreeWidgetObjects.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/WindowWidgets.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk3/aboutdialog.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/accel-label.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/annotation-glossary.html +41 -59
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-0.html +41 -44
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-10.html +666 -0
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-2.html +39 -42
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-4.html +31 -34
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-6.html +27 -30
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-8.html +24 -27
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-deprecated.html +1825 -224
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-full.html +917 -112
- data/vendor/local/share/gtk-doc/html/gtk3/appchooserbutton.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/appchooserdialog.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/assistant.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/broadwayd.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/button.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/ch01s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gtk3/ch01s03.html +248 -0
- data/vendor/local/share/gtk-doc/html/gtk3/ch01s04.html +157 -0
- data/vendor/local/share/gtk-doc/html/gtk3/ch01s05.html +1773 -0
- data/vendor/local/share/gtk-doc/html/gtk3/ch02.html +20 -14
- data/vendor/local/share/gtk-doc/html/gtk3/ch03.html +232 -156
- data/vendor/local/share/gtk-doc/html/gtk3/{ch25s02.html → ch24s02.html} +47 -47
- data/vendor/local/share/gtk-doc/html/gtk3/{ch27s02.html → ch26s02.html} +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/{ch29s02.html → ch28s02.html} +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/{ch29s03.html → ch28s03.html} +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/chap-drawing-model.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/check-button.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/checklist-gdkeventexpose-region.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/checklist-modifiers.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/checklist-named-icons.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/color-button.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/colorchooser.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/combo-box-entry.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/combo-box-text.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/combo-box.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/drawing.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/entry.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/exampleapp.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/file-button.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/filechooser.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/font-button.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/fontchooser.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/frame.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app1.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app2.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app3.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app4.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app6.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app7.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app8.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app9.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/glossary.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/grid-packing.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-broadway.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-building.html +20 -12
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-compiling.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-getting-started.html +147 -965
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-launch.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-2-to-3.html +67 -67
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkGrid.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-bonus-points.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-checklist.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-css.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parser-extensions.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parsing.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-checklist.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-smclient-GtkApplication.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-theme-GtkStyleContext-engines.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-unique-GtkApplication.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-osx.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-query-immodules-3.0.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-question-index.html +65 -65
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-resources.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-running.html +19 -16
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-update-icon-cache.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-wayland.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-windows.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-x11.html +27 -12
- data/vendor/local/share/gtk-doc/html/gtk3/gtk.html +26 -49
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Accelerator-Maps.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Bindings.html +20 -23
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Clipboards.html +17 -18
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Drag-and-Drop.html +32 -56
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Feature-Test-Macros.html +17 -20
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Filesystem-utilities.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-General.html +26 -29
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkGradient.html +24 -27
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkPlug.html +303 -0
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSocket.html +273 -0
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkStyleProperties.html +17 -20
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSymbolicColor.html +22 -25
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkTreeView-drag-and-drop.html +12 -15
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkWidgetPath.html +16 -19
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-High-level-Printing-API.html +29 -32
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Orientable.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Resource-Files.html +45 -48
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Selections.html +15 -18
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Standard-Enumerations.html +13 -16
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Stock-Items.html +568 -123
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Testing.html +40 -16
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Themeable-Stock-Images.html +248 -27
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3.devhelp2 +6347 -6099
- data/vendor/local/share/gtk-doc/html/gtk3/gtkbase.html +11 -14
- data/vendor/local/share/gtk-doc/html/gtk3/gtkobjects.html +139 -118
- data/vendor/local/share/gtk-doc/html/gtk3/headerbar.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/hello-world.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/icon-view.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/image.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/index.html +248 -209
- data/vendor/local/share/gtk-doc/html/gtk3/index.sgml +5994 -5707
- data/vendor/local/share/gtk-doc/html/gtk3/info-bar.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/label.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/levelbar.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/link-button.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/list-and-tree.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/list-box.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/lock-button.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/menu-button.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/menubar.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/messagedialog.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/migrating.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk3/multiline-text.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/notebook.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/pagesetupdialog.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/panes.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/placessidebar.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/platform-support.html +75 -0
- data/vendor/local/share/gtk-doc/html/gtk3/printdialog.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/progressbar.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/pt06.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/radio-group.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/recentchooserdialog.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/scales.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/scrollbar.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/scrolledwindow.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/search-entry.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/separator.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/spinbutton.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/spinner.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/stack.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/stackswitcher.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/statusbar.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/style.css +71 -16
- data/vendor/local/share/gtk-doc/html/gtk3/switch.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/theming.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/toggle-button.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/toolbar.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/toolpalette.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/volumebutton.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/window-default.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/window.png +0 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/an/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/en/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/gd/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/gd/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ia/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ia/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/man/man1/broadwayd.1 +1 -1
- data/vendor/local/share/man/man1/gtk-launch.1 +1 -1
- data/vendor/local/share/man/man1/gtk-query-immodules-3.0.1 +1 -1
- data/vendor/local/share/man/man1/gtk-update-icon-cache.1 +1 -1
- metadata +86 -39
- data/vendor/local/lib/gdk-win32-3.0.def +0 -539
- data/vendor/local/lib/gtk-win32-3.0.def +0 -3875
- data/vendor/local/share/gtk-doc/html/gtk3/Actions.html +0 -53
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPlug.html +0 -388
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSocket.html +0 -362
- data/vendor/local/share/gtk-doc/html/gtk3/colorsel.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtk3/fontsel.png +0 -0
@@ -2,22 +2,22 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Test for modifier keys correctly</title>
|
5
|
+
<title>GTK+ 3 Reference Manual: Test for modifier keys correctly</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
8
8
|
<link rel="up" href="gtk-migrating-checklist.html" title="Migration Details Checklist">
|
9
9
|
<link rel="prev" href="checklist-gdkeventexpose-region.html" title="Use GdkEventExpose.region">
|
10
10
|
<link rel="next" href="checklist-named-icons.html" title="Use named icons">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<td
|
17
|
-
<td><a accesskey="
|
18
|
-
<td><a accesskey="
|
19
|
-
<
|
20
|
-
<td><a accesskey="n" href="checklist-named-icons.html"><img src="right.png" width="
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><a accesskey="u" href="gtk-migrating-checklist.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="p" href="checklist-gdkeventexpose-region.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="checklist-named-icons.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
21
|
</tr></table>
|
22
22
|
<div class="section">
|
23
23
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
@@ -84,6 +84,6 @@ my_widget_key_press_event_handler (GtkWidget *widget, GdkEventKey *event)
|
|
84
84
|
</div>
|
85
85
|
<div class="footer">
|
86
86
|
<hr>
|
87
|
-
Generated by GTK-Doc V1.
|
87
|
+
Generated by GTK-Doc V1.19.1</div>
|
88
88
|
</body>
|
89
89
|
</html>
|
@@ -2,22 +2,22 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Use named icons</title>
|
5
|
+
<title>GTK+ 3 Reference Manual: Use named icons</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
8
8
|
<link rel="up" href="gtk-migrating-checklist.html" title="Migration Details Checklist">
|
9
9
|
<link rel="prev" href="checklist-modifiers.html" title="Test for modifier keys correctly">
|
10
10
|
<link rel="next" href="pt06.html" title="Part VI. GTK+ Tools">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<td
|
17
|
-
<td><a accesskey="
|
18
|
-
<td><a accesskey="
|
19
|
-
<
|
20
|
-
<td><a accesskey="n" href="pt06.html"><img src="right.png" width="
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><a accesskey="u" href="gtk-migrating-checklist.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="p" href="checklist-modifiers.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="pt06.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
21
|
</tr></table>
|
22
22
|
<div class="section">
|
23
23
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
@@ -35,6 +35,6 @@
|
|
35
35
|
</div>
|
36
36
|
<div class="footer">
|
37
37
|
<hr>
|
38
|
-
Generated by GTK-Doc V1.
|
38
|
+
Generated by GTK-Doc V1.19.1</div>
|
39
39
|
</body>
|
40
40
|
</html>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -2,22 +2,22 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Glossary</title>
|
5
|
+
<title>GTK+ 3 Reference Manual: Glossary</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
8
8
|
<link rel="up" href="index.html" title="GTK+ 3 Reference Manual">
|
9
|
-
<link rel="prev" href="
|
9
|
+
<link rel="prev" href="gtk-wayland.html" title="Using GTK+ with Wayland">
|
10
10
|
<link rel="next" href="api-index-full.html" title="Index of all symbols">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<td
|
17
|
-
<td
|
18
|
-
<td><
|
19
|
-
<
|
20
|
-
<td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
|
19
|
+
<td><a accesskey="p" href="gtk-wayland.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
21
|
</tr></table>
|
22
22
|
<div class="glossary">
|
23
23
|
<div class="titlepage"><div><div><h1 class="title">
|
@@ -330,6 +330,6 @@
|
|
330
330
|
</div>
|
331
331
|
<div class="footer">
|
332
332
|
<hr>
|
333
|
-
Generated by GTK-Doc V1.
|
333
|
+
Generated by GTK-Doc V1.19.1</div>
|
334
334
|
</body>
|
335
335
|
</html>
|
Binary file
|
@@ -2,22 +2,22 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Using GTK+ with Broadway</title>
|
5
|
+
<title>GTK+ 3 Reference Manual: Using GTK+ with Broadway</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
8
|
-
<link rel="up" href="
|
8
|
+
<link rel="up" href="platform-support.html" title="Part VII. GTK+ Platform Support">
|
9
9
|
<link rel="prev" href="gtk-osx.html" title="Using GTK+ on Mac OS X">
|
10
10
|
<link rel="next" href="gtk-wayland.html" title="Using GTK+ with Wayland">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<td
|
17
|
-
<td><a accesskey="
|
18
|
-
<td><a accesskey="
|
19
|
-
<
|
20
|
-
<td><a accesskey="n" href="gtk-wayland.html"><img src="right.png" width="
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><a accesskey="u" href="platform-support.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="p" href="gtk-osx.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="gtk-wayland.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
21
|
</tr></table>
|
22
22
|
<div class="refentry">
|
23
23
|
<a name="gtk-broadway"></a><div class="titlepage"></div>
|
@@ -31,7 +31,7 @@ HTML-specific aspects of using GTK+
|
|
31
31
|
<td valign="top" align="right"></td>
|
32
32
|
</tr></table></div>
|
33
33
|
<div class="refsect1">
|
34
|
-
<a name="id-1.
|
34
|
+
<a name="id-1.8.8.3"></a><h2>Using GTK+ with Broadway</h2>
|
35
35
|
<p>
|
36
36
|
The GDK Broadway backend provides support for displaying GTK+
|
37
37
|
applications in a web browser, using HTML5 and web sockets. To run
|
@@ -81,6 +81,6 @@ BROADWAY_DISPLAY=:5 gtk3-demo
|
|
81
81
|
</div>
|
82
82
|
<div class="footer">
|
83
83
|
<hr>
|
84
|
-
Generated by GTK-Doc V1.
|
84
|
+
Generated by GTK-Doc V1.19.1</div>
|
85
85
|
</body>
|
86
86
|
</html>
|
@@ -2,22 +2,22 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Compiling the GTK+ libraries</title>
|
5
|
+
<title>GTK+ 3 Reference Manual: Compiling the GTK+ libraries</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
8
|
-
<link rel="up" href="
|
9
|
-
<link rel="prev" href="
|
8
|
+
<link rel="up" href="platform-support.html" title="Part VII. GTK+ Platform Support">
|
9
|
+
<link rel="prev" href="platform-support.html" title="Part VII. GTK+ Platform Support">
|
10
10
|
<link rel="next" href="gtk-compiling.html" title="Compiling GTK+ Applications">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<td
|
17
|
-
<td><a accesskey="
|
18
|
-
<td><a accesskey="
|
19
|
-
<
|
20
|
-
<td><a accesskey="n" href="gtk-compiling.html"><img src="right.png" width="
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><a accesskey="u" href="platform-support.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="p" href="platform-support.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="gtk-compiling.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
21
|
</tr></table>
|
22
22
|
<div class="refentry">
|
23
23
|
<a name="gtk-building"></a><div class="titlepage"></div>
|
@@ -302,7 +302,7 @@ How to compile GTK+ itself
|
|
302
302
|
the documentation distributed with the those libraries.)
|
303
303
|
|
304
304
|
</p>
|
305
|
-
<div class="cmdsynopsis"><p><code class="command">configure</code> <br> [ --disable-modules | --enable-modules ]<br> [[--with-included-immodules=MODULE1,MODULE2,...]]<br> [ --enable-debug=[no/minimum/yes] ]<br> [ --disable-Bsymbolic | --enable-Bsymbolic ]<br> [ --disable-xkb | --enable-xkb ]<br> [ --disable-xinerama | --enable-xinerama ]<br> [ --disable-gtk-doc | --enable-gtk-doc ]<br> [ --disable-cups | --enable-cups ]<br> [ --disable-papi | --enable-papi ]<br> [ --enable-xinput | --disable-xinput ]<br> [ --enable-packagekit | --disable-packagekit ]<br> [ --enable-x11-backend | --disable-x11-backend ]<br> [ --enable-win32-backend | --disable-win32-backend ]<br> [ --enable-quartz-backend | --disable-quartz-backend ]<br> [ --enable-broadway-backend | --disable-broadway-backend ]<br> [ --enable-wayland-backend | --disable-wayland-backend ]<br> [ --enable-introspection=[no/auto/yes] ]<br> [ --enable-gtk2-dependency | --disable-gtk2-dependency ]</p></div>
|
305
|
+
<div class="cmdsynopsis"><p><code class="command">configure</code> <br> [ --disable-modules | --enable-modules ]<br> [[--with-included-immodules=MODULE1,MODULE2,...]]<br> [ --enable-debug=[no/minimum/yes] ]<br> [ --disable-Bsymbolic | --enable-Bsymbolic ]<br> [ --disable-xkb | --enable-xkb ]<br> [ --disable-xinerama | --enable-xinerama ]<br> [ --disable-gtk-doc | --enable-gtk-doc ]<br> [ --disable-cups | --enable-cups ]<br> [ --disable-papi | --enable-papi ]<br> [ --enable-xinput | --disable-xinput ]<br> [ --enable-packagekit | --disable-packagekit ]<br> [ --enable-x11-backend | --disable-x11-backend ]<br> [ --enable-win32-backend | --disable-win32-backend ]<br> [ --enable-quartz-backend | --disable-quartz-backend ]<br> [ --enable-broadway-backend | --disable-broadway-backend ]<br> [ --enable-wayland-backend | --disable-wayland-backend ]<br> [ --enable-introspection=[no/auto/yes] ]<br> [ --enable-gtk2-dependency | --disable-gtk2-dependency ]<br> [ --enable-installed-tests | --disable-installed-tests ]</p></div>
|
306
306
|
<p>
|
307
307
|
</p>
|
308
308
|
<p><b><code class="systemitem">--disable-modules</code> and
|
@@ -454,10 +454,18 @@ How to compile GTK+ itself
|
|
454
454
|
avoid file conflicts between these packages.
|
455
455
|
The default is to build gtk-update-icon-cache.
|
456
456
|
</p>
|
457
|
+
<p><b><code class="systemitem">--enable-installed-tests</code> or
|
458
|
+
<code class="systemitem">--disable-installed-tests</code>. </b>
|
459
|
+
Whether to install tests on the system. If enabled, tests
|
460
|
+
and their data are installed in <code class="filename">${libexecdir}/gtk+/installed-tests</code>.
|
461
|
+
Metadata for the tests is installed in <code class="filename">${prefix}/share/installed-tests/gtk+</code>.
|
462
|
+
To run the installed tests, gnome-desktop-testing-runner
|
463
|
+
can be used.
|
464
|
+
</p>
|
457
465
|
</div>
|
458
466
|
</div>
|
459
467
|
<div class="footer">
|
460
468
|
<hr>
|
461
|
-
Generated by GTK-Doc V1.
|
469
|
+
Generated by GTK-Doc V1.19.1</div>
|
462
470
|
</body>
|
463
471
|
</html>
|
@@ -2,22 +2,22 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Compiling GTK+ Applications</title>
|
5
|
+
<title>GTK+ 3 Reference Manual: Compiling GTK+ Applications</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
8
|
-
<link rel="up" href="
|
8
|
+
<link rel="up" href="platform-support.html" title="Part VII. GTK+ Platform Support">
|
9
9
|
<link rel="prev" href="gtk-building.html" title="Compiling the GTK+ libraries">
|
10
10
|
<link rel="next" href="gtk-running.html" title="Running GTK+ Applications">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<td
|
17
|
-
<td><a accesskey="
|
18
|
-
<td><a accesskey="
|
19
|
-
<
|
20
|
-
<td><a accesskey="n" href="gtk-running.html"><img src="right.png" width="
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><a accesskey="u" href="platform-support.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="p" href="gtk-building.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="gtk-running.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
21
|
</tr></table>
|
22
22
|
<div class="refentry">
|
23
23
|
<a name="gtk-compiling"></a><div class="titlepage"></div>
|
@@ -31,7 +31,7 @@ How to compile your GTK+ application
|
|
31
31
|
<td valign="top" align="right"></td>
|
32
32
|
</tr></table></div>
|
33
33
|
<div class="refsect1">
|
34
|
-
<a name="id-1.
|
34
|
+
<a name="id-1.8.3.3"></a><h2>Compiling GTK+ Applications on UNIX</h2>
|
35
35
|
<p>
|
36
36
|
To compile a GTK+ application, you need to tell the compiler where to
|
37
37
|
find the GTK+ header files and libraries. This is done with the
|
@@ -58,7 +58,7 @@ substituted into the command line before execution. So to compile
|
|
58
58
|
a GTK+ Hello, World, you would type the following:
|
59
59
|
</p>
|
60
60
|
<pre class="programlisting">
|
61
|
-
$ cc `pkg-config --cflags
|
61
|
+
$ cc `pkg-config --cflags gtk+-3.0` hello.c -o hello `pkg-config --libs gtk+-3.0`
|
62
62
|
</pre>
|
63
63
|
<p>
|
64
64
|
</p>
|
@@ -82,7 +82,7 @@ Here is how you would compile hello.c if you want to allow it
|
|
82
82
|
to use symbols that were not deprecated in 3.2:
|
83
83
|
</p>
|
84
84
|
<pre class="programlisting">
|
85
|
-
$ cc
|
85
|
+
$ cc `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MIN_REQIRED=GDK_VERSION_3_2 hello.c -o hello `pkg-config --libs gtk+-3.0`
|
86
86
|
</pre>
|
87
87
|
<p>
|
88
88
|
</p>
|
@@ -91,7 +91,7 @@ And here is how you would compile hello.c if you don't want
|
|
91
91
|
it to use any symbols that were introduced after 3.4:
|
92
92
|
</p>
|
93
93
|
<pre class="programlisting">
|
94
|
-
$ cc
|
94
|
+
$ cc `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4 hello.c -o hello `pkg-config --libs gtk+-3.0`
|
95
95
|
</pre>
|
96
96
|
<p>
|
97
97
|
</p>
|
@@ -118,7 +118,7 @@ define the preprocessor symbol GDK_MULTIDEVICE_SAFE by using the command
|
|
118
118
|
line option <code class="literal">-DGTK_MULTIDEVICE_SAFE=1</code>.
|
119
119
|
</p>
|
120
120
|
<div class="refsect2">
|
121
|
-
<a name="id-1.
|
121
|
+
<a name="id-1.8.3.3.12"></a><h3>Useful autotools macros</h3>
|
122
122
|
<p>
|
123
123
|
GTK+ provides various macros for easily checking version and backends
|
124
124
|
supported. The macros are
|
@@ -156,6 +156,6 @@ line option <code class="literal">-DGTK_MULTIDEVICE_SAFE=1</code>.
|
|
156
156
|
</div>
|
157
157
|
<div class="footer">
|
158
158
|
<hr>
|
159
|
-
Generated by GTK-Doc V1.
|
159
|
+
Generated by GTK-Doc V1.19.1</div>
|
160
160
|
</body>
|
161
161
|
</html>
|
@@ -2,95 +2,90 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Getting Started with GTK+</title>
|
5
|
+
<title>GTK+ 3 Reference Manual: Getting Started with GTK+</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
8
8
|
<link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
|
9
9
|
<link rel="prev" href="gtk.html" title="Part I. GTK+ Overview">
|
10
|
-
<link rel="next" href="
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
10
|
+
<link rel="next" href="ch01s02.html" title="Packing">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<td
|
17
|
-
<td><a accesskey="
|
18
|
-
<td><a accesskey="
|
19
|
-
<
|
20
|
-
<td><a accesskey="n" href="
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><a accesskey="u" href="gtk.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="p" href="gtk.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="ch01s02.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
21
|
</tr></table>
|
22
22
|
<div class="chapter">
|
23
23
|
<div class="titlepage"><div><div><h2 class="title">
|
24
24
|
<a name="gtk-getting-started"></a>Getting Started with GTK+</h2></div></div></div>
|
25
|
+
<div class="toc"><dl class="toc">
|
26
|
+
<dt><span class="section"><a href="gtk-getting-started.html#id-1.2.3.3">Basics</a></span></dt>
|
27
|
+
<dt><span class="section"><a href="ch01s02.html">Packing</a></span></dt>
|
28
|
+
<dt><span class="section"><a href="ch01s03.html">Drawing</a></span></dt>
|
29
|
+
<dt><span class="section"><a href="ch01s04.html">Building user interfaces</a></span></dt>
|
30
|
+
<dt><span class="section"><a href="ch01s05.html">Building applications</a></span></dt>
|
31
|
+
<dd><dl>
|
32
|
+
<dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.5">A trivial application</a></span></dt>
|
33
|
+
<dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.6">Populating the window</a></span></dt>
|
34
|
+
<dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.7">Opening files</a></span></dt>
|
35
|
+
<dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.8">An application menu</a></span></dt>
|
36
|
+
<dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.9">A preference dialog</a></span></dt>
|
37
|
+
<dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.10">Adding a search bar</a></span></dt>
|
38
|
+
<dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.11">Adding a side bar</a></span></dt>
|
39
|
+
<dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.12">Properties</a></span></dt>
|
40
|
+
</dl></dd>
|
41
|
+
</dl></div>
|
25
42
|
<p>This chapter contains some tutorial information to get you
|
26
43
|
started with GTK+ programming. It assumes that you have GTK+, its
|
27
44
|
dependencies and a C compiler installed and ready to use. If you
|
28
45
|
need to build GTK+ itself first, refer to the
|
29
46
|
<a class="link" href="gtk-compiling.html" title="Compiling GTK+ Applications">Compiling the GTK+ libraries</a>
|
30
47
|
section in this reference.</p>
|
31
|
-
<div class="
|
48
|
+
<div class="section">
|
32
49
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
33
50
|
<a name="id-1.2.3.3"></a>Basics</h2></div></div></div>
|
34
51
|
<p>To begin our introduction to GTK, we'll start with the simplest
|
35
|
-
program possible. This program will create an empty
|
36
|
-
window
|
37
|
-
<
|
38
|
-
<img src="window-default.png">
|
39
|
-
</p>
|
52
|
+
program possible. This program will create an empty 200 × 200 pixel
|
53
|
+
window.</p>
|
54
|
+
<div class="informalfigure"><div class="mediaobject"><img src="window-default.png"></div></div>
|
40
55
|
<div class="informalexample">
|
41
|
-
|
42
|
-
|
43
|
-
<tr>
|
44
|
-
<td class="listing_lines" align="right"><pre>1
|
45
|
-
2
|
46
|
-
3
|
47
|
-
4
|
48
|
-
5
|
49
|
-
6
|
50
|
-
7
|
51
|
-
8
|
52
|
-
9
|
53
|
-
10
|
54
|
-
11
|
55
|
-
12
|
56
|
-
13
|
57
|
-
14
|
58
|
-
15
|
59
|
-
16
|
60
|
-
17
|
61
|
-
18
|
62
|
-
19
|
63
|
-
20</pre></td>
|
64
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gtk/gtk.h></span>
|
56
|
+
<p>Create a new file with the following content named example-0.c.</p>
|
57
|
+
<pre class="programlisting">#include <gtk/gtk.h>
|
65
58
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
59
|
+
int
|
60
|
+
main (int argc,
|
61
|
+
char *argv[])
|
62
|
+
{
|
63
|
+
GtkWidget *window;
|
71
64
|
|
72
|
-
|
65
|
+
gtk_init (&argc, &argv);
|
73
66
|
|
74
|
-
|
67
|
+
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
68
|
+
gtk_window_set_title (GTK_WINDOW (window), "Window");
|
75
69
|
|
76
|
-
|
70
|
+
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
|
77
71
|
|
78
|
-
|
72
|
+
gtk_widget_show (window);
|
79
73
|
|
80
|
-
|
74
|
+
gtk_main ();
|
81
75
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</tbody>
|
86
|
-
</table>
|
76
|
+
return 0;
|
77
|
+
}
|
78
|
+
</pre>
|
87
79
|
</div>
|
88
|
-
|
89
|
-
|
80
|
+
<p>
|
81
|
+
You can compile the program above with GCC using:
|
82
|
+
</p>
|
90
83
|
<div class="literallayout"><p><br>
|
91
|
-
|
92
|
-
|
93
|
-
<
|
84
|
+
<code class="literal">gcc `pkg-config --cflags gtk+-3.0` -o example-0 example-0.c `pkg-config --libs gtk+-3.0`</code><br>
|
85
|
+
</p></div>
|
86
|
+
<p>
|
87
|
+
</p>
|
88
|
+
<div class="note">
|
94
89
|
<h3 class="title">Note</h3>
|
95
90
|
<p>For more information on how to compile a GTK+ application, please
|
96
91
|
refer to the <a class="link" href="gtk-compiling.html" title="Compiling GTK+ Applications">Compiling GTK+ Applications</a>
|
@@ -99,7 +94,7 @@
|
|
99
94
|
<p>All GTK+ applications will, of course, include
|
100
95
|
<code class="filename">gtk/gtk.h</code>, which declares functions, types and
|
101
96
|
macros required by GTK+ applications.</p>
|
102
|
-
<div class="warning"
|
97
|
+
<div class="warning">
|
103
98
|
<h3 class="title">Warning</h3>
|
104
99
|
<p>Even if GTK+ installs multiple header files, only the
|
105
100
|
top-level <code class="filename">gtk/gtk.h</code> header can be directly included
|
@@ -117,7 +112,7 @@
|
|
117
112
|
arguments that control the behavior of GTK+ itself. The parsed arguments
|
118
113
|
will be removed from the array, leaving the unrecognized ones for your
|
119
114
|
application to parse.</p>
|
120
|
-
<div class="note"
|
115
|
+
<div class="note">
|
121
116
|
<h3 class="title">Note</h3>
|
122
117
|
<p>For more information on which command line arguments GTK+
|
123
118
|
recognizes, please refer to the <a class="link" href="gtk-running.html" title="Running GTK+ Applications">Running GTK+
|
@@ -153,829 +148,16 @@
|
|
153
148
|
showcase some of the capabilities of GTK+.</p>
|
154
149
|
<p>In the long tradition of programming languages and libraries,
|
155
150
|
it is called <span class="emphasis"><em>Hello, World</em></span>.</p>
|
156
|
-
<
|
157
|
-
<img src="hello-world.png">
|
158
|
-
</p>
|
151
|
+
<div class="informalfigure"><div class="mediaobject"><img src="hello-world.png"></div></div>
|
159
152
|
<div class="example">
|
160
153
|
<a name="gtk-getting-started-hello-world"></a><p class="title"><b>Example 1. Hello World in GTK+</b></p>
|
161
154
|
<div class="example-contents">
|
162
|
-
|
163
|
-
|
164
|
-
<tr>
|
165
|
-
<td class="listing_lines" align="right"><pre>1
|
166
|
-
2
|
167
|
-
3
|
168
|
-
4
|
169
|
-
5
|
170
|
-
6
|
171
|
-
7
|
172
|
-
8
|
173
|
-
9
|
174
|
-
10
|
175
|
-
11
|
176
|
-
12
|
177
|
-
13
|
178
|
-
14
|
179
|
-
15
|
180
|
-
16
|
181
|
-
17
|
182
|
-
18
|
183
|
-
19
|
184
|
-
20
|
185
|
-
21
|
186
|
-
22
|
187
|
-
23
|
188
|
-
24
|
189
|
-
25
|
190
|
-
26
|
191
|
-
27
|
192
|
-
28
|
193
|
-
29
|
194
|
-
30
|
195
|
-
31
|
196
|
-
32
|
197
|
-
33
|
198
|
-
34
|
199
|
-
35
|
200
|
-
36
|
201
|
-
37
|
202
|
-
38
|
203
|
-
39
|
204
|
-
40
|
205
|
-
41
|
206
|
-
42
|
207
|
-
43
|
208
|
-
44
|
209
|
-
45
|
210
|
-
46
|
211
|
-
47
|
212
|
-
48
|
213
|
-
49
|
214
|
-
50
|
215
|
-
51
|
216
|
-
52
|
217
|
-
53
|
218
|
-
54
|
219
|
-
55
|
220
|
-
56
|
221
|
-
57
|
222
|
-
58
|
223
|
-
59
|
224
|
-
60
|
225
|
-
61
|
226
|
-
62
|
227
|
-
63
|
228
|
-
64
|
229
|
-
65
|
230
|
-
66
|
231
|
-
67
|
232
|
-
68
|
233
|
-
69
|
234
|
-
70
|
235
|
-
71
|
236
|
-
72
|
237
|
-
73
|
238
|
-
74
|
239
|
-
75
|
240
|
-
76
|
241
|
-
77
|
242
|
-
78
|
243
|
-
79
|
244
|
-
80
|
245
|
-
81
|
246
|
-
82
|
247
|
-
83
|
248
|
-
84
|
249
|
-
85
|
250
|
-
86
|
251
|
-
87
|
252
|
-
88
|
253
|
-
89
|
254
|
-
90
|
255
|
-
91
|
256
|
-
92
|
257
|
-
93
|
258
|
-
94
|
259
|
-
95
|
260
|
-
96
|
261
|
-
97
|
262
|
-
98
|
263
|
-
99
|
264
|
-
100
|
265
|
-
101
|
266
|
-
102
|
267
|
-
103
|
268
|
-
104</pre></td>
|
269
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gtk/gtk.h></span>
|
270
|
-
|
271
|
-
<span class="comment">/* This is a callback function. The data arguments are ignored</span>
|
272
|
-
<span class="comment"> * in this example. More on callbacks below.</span>
|
273
|
-
<span class="comment"> */</span>
|
274
|
-
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
275
|
-
<span class="function">print_hello</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
276
|
-
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
277
|
-
<span class="cbracket">{</span>
|
278
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
279
|
-
<span class="cbracket">}</span>
|
280
|
-
|
281
|
-
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
282
|
-
<span class="function">on_delete_event</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
283
|
-
<span class="normal"> </span><span class="usertype">GdkEvent</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
284
|
-
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
285
|
-
<span class="cbracket">{</span>
|
286
|
-
<span class="normal"> </span><span class="comment">/* If you return FALSE in the "delete_event" signal handler,</span>
|
287
|
-
<span class="comment"> * GTK will emit the "destroy" signal. Returning TRUE means</span>
|
288
|
-
<span class="comment"> * you don't want the window to be destroyed.</span>
|
289
|
-
<span class="comment"> *</span>
|
290
|
-
<span class="comment"> * This is useful for popping up 'are you sure you want to quit?'</span>
|
291
|
-
<span class="comment"> * type dialogs.</span>
|
292
|
-
<span class="comment"> */</span>
|
293
|
-
|
294
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"delete event occurred</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
295
|
-
|
296
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
|
297
|
-
<span class="cbracket">}</span>
|
298
|
-
|
299
|
-
<span class="type">int</span>
|
300
|
-
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span>
|
301
|
-
<span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
302
|
-
<span class="cbracket">{</span>
|
303
|
-
<span class="normal"> </span><span class="comment">/* GtkWidget is the storage type for widgets */</span>
|
304
|
-
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">;</span>
|
305
|
-
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">button</span><span class="symbol">;</span>
|
306
|
-
|
307
|
-
<span class="normal"> </span><span class="comment">/* This is called in all GTK applications. Arguments are parsed</span>
|
308
|
-
<span class="comment"> * from the command line and are returned to the application.</span>
|
309
|
-
<span class="comment"> */</span>
|
310
|
-
<span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">argv</span><span class="symbol">);</span>
|
311
|
-
|
312
|
-
<span class="normal"> </span><span class="comment">/* create a new window, and set its title */</span>
|
313
|
-
<span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
|
314
|
-
<span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-set-title">gtk_window_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"Hello"</span><span class="symbol">);</span>
|
315
|
-
|
316
|
-
<span class="normal"> </span><span class="comment">/* When the window emits the "delete-event" signal (which is emitted</span>
|
317
|
-
<span class="comment"> * by GTK+ in response to an event coming from the window manager,</span>
|
318
|
-
<span class="comment"> * usually as a result of clicking the "close" window control), we</span>
|
319
|
-
<span class="comment"> * ask it to call the on_delete_event() function as defined above.</span>
|
320
|
-
<span class="comment"> *</span>
|
321
|
-
<span class="comment"> * The data passed to the callback function is NULL and is ignored</span>
|
322
|
-
<span class="comment"> * in the callback function.</span>
|
323
|
-
<span class="comment"> */</span>
|
324
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"delete-event"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_delete_event</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
325
|
-
|
326
|
-
<span class="normal"> </span><span class="comment">/* Here we connect the "destroy" event to the gtk_main_quit() function.</span>
|
327
|
-
<span class="comment"> *</span>
|
328
|
-
<span class="comment"> * This signal is emitted when we call gtk_widget_destroy() on the window,</span>
|
329
|
-
<span class="comment"> * or if we return FALSE in the "delete_event" callback.</span>
|
330
|
-
<span class="comment"> */</span>
|
331
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
332
|
-
|
333
|
-
<span class="normal"> </span><span class="comment">/* Sets the border width of the window. */</span>
|
334
|
-
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">10</span><span class="symbol">);</span>
|
335
|
-
|
336
|
-
<span class="normal"> </span><span class="comment">/* Creates a new button with the label "Hello World". */</span>
|
337
|
-
<span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World"</span><span class="symbol">);</span>
|
338
|
-
|
339
|
-
<span class="normal"> </span><span class="comment">/* When the button receives the "clicked" signal, it will call the</span>
|
340
|
-
<span class="comment"> * function print_hello() passing it NULL as its argument.</span>
|
341
|
-
<span class="comment"> *</span>
|
342
|
-
<span class="comment"> * The print_hello() function is defined above.</span>
|
343
|
-
<span class="comment"> */</span>
|
344
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
345
|
-
|
346
|
-
<span class="normal"> </span><span class="comment">/* The g_signal_connect_swapped() function will connect the "clicked" signal</span>
|
347
|
-
<span class="comment"> * of the button to the gtk_widget_destroy() function; instead of calling it</span>
|
348
|
-
<span class="comment"> * using the button as its argument, it will swap it with the user data</span>
|
349
|
-
<span class="comment"> * argument. This will cause the window to be destroyed by calling</span>
|
350
|
-
<span class="comment"> * gtk_widget_destroy() on the window.</span>
|
351
|
-
<span class="comment"> */</span>
|
352
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect-swapped">g_signal_connect_swapped</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GtkWidget.html#gtk-widget-destroy">gtk_widget_destroy</a></span><span class="symbol">),</span><span class="normal"> window</span><span class="symbol">);</span>
|
353
|
-
|
354
|
-
<span class="normal"> </span><span class="comment">/* This packs the button into the window. A GtkWindow inherits from GtkBin,</span>
|
355
|
-
<span class="comment"> * which is a special container that can only have one child</span>
|
356
|
-
<span class="comment"> */</span>
|
357
|
-
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> button</span><span class="symbol">);</span>
|
358
|
-
|
359
|
-
<span class="normal"> </span><span class="comment">/* The final step is to display this newly created widget... */</span>
|
360
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show">gtk_widget_show</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">);</span>
|
361
|
-
|
362
|
-
<span class="normal"> </span><span class="comment">/* ... and the window */</span>
|
363
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show">gtk_widget_show</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
|
364
|
-
|
365
|
-
<span class="normal"> </span><span class="comment">/* All GTK applications must have a gtk_main(). Control ends here</span>
|
366
|
-
<span class="comment"> * and waits for an event to occur (like a key press or a mouse event),</span>
|
367
|
-
<span class="comment"> * until gtk_main_quit() is called.</span>
|
368
|
-
<span class="comment"> */</span>
|
369
|
-
<span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
|
370
|
-
|
371
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
372
|
-
<span class="cbracket">}</span></pre></td>
|
373
|
-
</tr>
|
374
|
-
</tbody>
|
375
|
-
</table>
|
376
|
-
</div>
|
377
|
-
|
378
|
-
</div>
|
379
|
-
<br class="example-break">
|
380
|
-
</div>
|
381
|
-
<div class="simplesect">
|
382
|
-
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
383
|
-
<a name="id-1.2.3.4"></a>Packing</h2></div></div></div>
|
384
|
-
<p>When creating an application, you'll want to put more than one widget
|
385
|
-
inside a window. Our first helloworld example only used one widget so we
|
386
|
-
could simply use a <a class="link" href="GtkContainer.html#gtk-container-add" title="gtk_container_add ()"><code class="function">gtk_container_add()</code></a> call to "pack" the widget into the
|
387
|
-
window. But when you want to put more than one widget into a window, it
|
388
|
-
it becomes important to control how each widget is positioned and sized.
|
389
|
-
This is where packing comes in.</p>
|
390
|
-
<p>GTK+ comes with a large variety of <em class="firstterm">layout containers</em>
|
391
|
-
whose purpose it is to control the layout of the child widgets that are
|
392
|
-
added to them. See <a class="xref" href="LayoutContainers.html" title="Layout Containers"><i>Layout Containers</i></a> for an overview.</p>
|
393
|
-
<p>The following example shows how the GtkGrid container lets you
|
394
|
-
arrange several buttons:</p>
|
395
|
-
<p>
|
396
|
-
<img src="grid-packing.png">
|
397
|
-
</p>
|
398
|
-
<div class="example">
|
399
|
-
<a name="gtk-getting-started-grid-packing"></a><p class="title"><b>Example 2. Packing buttons</b></p>
|
400
|
-
<div class="example-contents">
|
401
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
402
|
-
<tbody>
|
403
|
-
<tr>
|
404
|
-
<td class="listing_lines" align="right"><pre>1
|
405
|
-
2
|
406
|
-
3
|
407
|
-
4
|
408
|
-
5
|
409
|
-
6
|
410
|
-
7
|
411
|
-
8
|
412
|
-
9
|
413
|
-
10
|
414
|
-
11
|
415
|
-
12
|
416
|
-
13
|
417
|
-
14
|
418
|
-
15
|
419
|
-
16
|
420
|
-
17
|
421
|
-
18
|
422
|
-
19
|
423
|
-
20
|
424
|
-
21
|
425
|
-
22
|
426
|
-
23
|
427
|
-
24
|
428
|
-
25
|
429
|
-
26
|
430
|
-
27
|
431
|
-
28
|
432
|
-
29
|
433
|
-
30
|
434
|
-
31
|
435
|
-
32
|
436
|
-
33
|
437
|
-
34
|
438
|
-
35
|
439
|
-
36
|
440
|
-
37
|
441
|
-
38
|
442
|
-
39
|
443
|
-
40
|
444
|
-
41
|
445
|
-
42
|
446
|
-
43
|
447
|
-
44
|
448
|
-
45
|
449
|
-
46
|
450
|
-
47
|
451
|
-
48
|
452
|
-
49
|
453
|
-
50
|
454
|
-
51
|
455
|
-
52
|
456
|
-
53
|
457
|
-
54
|
458
|
-
55
|
459
|
-
56
|
460
|
-
57
|
461
|
-
58
|
462
|
-
59
|
463
|
-
60
|
464
|
-
61
|
465
|
-
62
|
466
|
-
63
|
467
|
-
64
|
468
|
-
65
|
469
|
-
66
|
470
|
-
67
|
471
|
-
68
|
472
|
-
69
|
473
|
-
70
|
474
|
-
71
|
475
|
-
72
|
476
|
-
73</pre></td>
|
477
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gtk/gtk.h></span>
|
478
|
-
|
479
|
-
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
480
|
-
<span class="function">print_hello</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
481
|
-
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
482
|
-
<span class="cbracket">{</span>
|
483
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
484
|
-
<span class="cbracket">}</span>
|
485
|
-
|
486
|
-
<span class="type">int</span>
|
487
|
-
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span>
|
488
|
-
<span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
489
|
-
<span class="cbracket">{</span>
|
490
|
-
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">;</span>
|
491
|
-
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">grid</span><span class="symbol">;</span>
|
492
|
-
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">button</span><span class="symbol">;</span>
|
493
|
-
|
494
|
-
<span class="normal"> </span><span class="comment">/* This is called in all GTK applications. Arguments are parsed</span>
|
495
|
-
<span class="comment"> * from the command line and are returned to the application.</span>
|
496
|
-
<span class="comment"> */</span>
|
497
|
-
<span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">argv</span><span class="symbol">);</span>
|
498
|
-
|
499
|
-
<span class="normal"> </span><span class="comment">/* create a new window, and set its title */</span>
|
500
|
-
<span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
|
501
|
-
<span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-set-title">gtk_window_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"Grid"</span><span class="symbol">);</span>
|
502
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
503
|
-
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">10</span><span class="symbol">);</span>
|
504
|
-
|
505
|
-
<span class="normal"> </span><span class="comment">/* Here we construct the container that is going pack our buttons */</span>
|
506
|
-
<span class="normal"> grid </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-new">gtk_grid_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
507
|
-
|
508
|
-
<span class="normal"> </span><span class="comment">/* Pack the container in the window */</span>
|
509
|
-
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> grid</span><span class="symbol">);</span>
|
510
|
-
|
511
|
-
<span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Button 1"</span><span class="symbol">);</span>
|
512
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
513
|
-
|
514
|
-
<span class="normal"> </span><span class="comment">/* Place the first button in the grid cell (0, 0), and make it fill</span>
|
515
|
-
<span class="comment"> * just 1 cell horizontally and vertically (ie no spanning)</span>
|
516
|
-
<span class="comment"> */</span>
|
517
|
-
<span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-attach">gtk_grid_attach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_GRID</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">grid</span><span class="symbol">),</span><span class="normal"> button</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
518
|
-
|
519
|
-
<span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Button 2"</span><span class="symbol">);</span>
|
520
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
521
|
-
|
522
|
-
<span class="normal"> </span><span class="comment">/* Place the second button in the grid cell (1, 0), and make it fill</span>
|
523
|
-
<span class="comment"> * just 1 cell horizontally and vertically (ie no spanning)</span>
|
524
|
-
<span class="comment"> */</span>
|
525
|
-
<span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-attach">gtk_grid_attach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_GRID</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">grid</span><span class="symbol">),</span><span class="normal"> button</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
526
|
-
|
527
|
-
<span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Quit"</span><span class="symbol">);</span>
|
528
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
529
|
-
|
530
|
-
<span class="normal"> </span><span class="comment">/* Place the Quit button in the grid cell (0, 1), and make it</span>
|
531
|
-
<span class="comment"> * span 2 columns.</span>
|
532
|
-
<span class="comment"> */</span>
|
533
|
-
<span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-attach">gtk_grid_attach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_GRID</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">grid</span><span class="symbol">),</span><span class="normal"> button</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">2</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
534
|
-
|
535
|
-
<span class="normal"> </span><span class="comment">/* Now that we are done packing our widgets, we show them all</span>
|
536
|
-
<span class="comment"> * in one go, by calling gtk_widget_show_all() on the window.</span>
|
537
|
-
<span class="comment"> * This call recursively calls gtk_widget_show() on all widgets</span>
|
538
|
-
<span class="comment"> * that are contained in the window, directly or indirectly.</span>
|
539
|
-
<span class="comment"> */</span>
|
540
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
|
541
|
-
|
542
|
-
<span class="normal"> </span><span class="comment">/* All GTK applications must have a gtk_main(). Control ends here</span>
|
543
|
-
<span class="comment"> * and waits for an event to occur (like a key press or a mouse event),</span>
|
544
|
-
<span class="comment"> * until gtk_main_quit() is called.</span>
|
545
|
-
<span class="comment"> */</span>
|
546
|
-
<span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
|
547
|
-
|
548
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
549
|
-
<span class="cbracket">}</span></pre></td>
|
550
|
-
</tr>
|
551
|
-
</tbody>
|
552
|
-
</table>
|
553
|
-
</div>
|
554
|
-
|
555
|
-
</div>
|
556
|
-
<br class="example-break">
|
557
|
-
</div>
|
558
|
-
<div class="simplesect">
|
559
|
-
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
560
|
-
<a name="id-1.2.3.5"></a>Drawing</h2></div></div></div>
|
561
|
-
<p>Many widgets, like buttons, do all their drawing themselves. You
|
562
|
-
just tell them the label you want to see, and they figure out what font
|
563
|
-
to use, draw the button outline and focus rectangle, etc. Sometimes, it
|
564
|
-
is necessary to do some custom drawing. In that case, a <a class="link" href="GtkDrawingArea.html" title="GtkDrawingArea"><span class="type">GtkDrawingArea</span></a>
|
565
|
-
might be the right widget to use. It offers a canvas on which you can
|
566
|
-
draw by connecting to the <a class="link" href="GtkWidget.html#GtkWidget-draw" title='The "draw" signal'><span class="type">"draw"</span></a> signal.
|
567
|
-
</p>
|
568
|
-
<p>The contents of a widget often need to be partially or fully redrawn,
|
569
|
-
e.g. when another window is moved and uncovers part of the widget, or
|
570
|
-
when tie window containing it is resized. It is also possible to explicitly
|
571
|
-
cause part or all of the widget to be redrawn, by calling
|
572
|
-
<a class="link" href="GtkWidget.html#gtk-widget-queue-draw" title="gtk_widget_queue_draw ()"><code class="function">gtk_widget_queue_draw()</code></a> or its variants. GTK+ takes care of most of the
|
573
|
-
details by providing a ready-to-use cairo context to the ::draw signal
|
574
|
-
handler.</p>
|
575
|
-
<p>The following example shows a ::draw signal handler. It is a bit
|
576
|
-
more complicated than the previous examples, since it also demonstrates
|
577
|
-
input event handling by means of ::button-press and ::motion-notify
|
578
|
-
handlers.</p>
|
579
|
-
<p>
|
580
|
-
<img src="drawing.png">
|
581
|
-
</p>
|
582
|
-
<div class="example">
|
583
|
-
<a name="gtk-getting-started-drawing"></a><p class="title"><b>Example 3. Drawing in response to input</b></p>
|
584
|
-
<div class="example-contents">
|
585
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
586
|
-
<tbody>
|
587
|
-
<tr>
|
588
|
-
<td class="listing_lines" align="right"><pre>1
|
589
|
-
2
|
590
|
-
3
|
591
|
-
4
|
592
|
-
5
|
593
|
-
6
|
594
|
-
7
|
595
|
-
8
|
596
|
-
9
|
597
|
-
10
|
598
|
-
11
|
599
|
-
12
|
600
|
-
13
|
601
|
-
14
|
602
|
-
15
|
603
|
-
16
|
604
|
-
17
|
605
|
-
18
|
606
|
-
19
|
607
|
-
20
|
608
|
-
21
|
609
|
-
22
|
610
|
-
23
|
611
|
-
24
|
612
|
-
25
|
613
|
-
26
|
614
|
-
27
|
615
|
-
28
|
616
|
-
29
|
617
|
-
30
|
618
|
-
31
|
619
|
-
32
|
620
|
-
33
|
621
|
-
34
|
622
|
-
35
|
623
|
-
36
|
624
|
-
37
|
625
|
-
38
|
626
|
-
39
|
627
|
-
40
|
628
|
-
41
|
629
|
-
42
|
630
|
-
43
|
631
|
-
44
|
632
|
-
45
|
633
|
-
46
|
634
|
-
47
|
635
|
-
48
|
636
|
-
49
|
637
|
-
50
|
638
|
-
51
|
639
|
-
52
|
640
|
-
53
|
641
|
-
54
|
642
|
-
55
|
643
|
-
56
|
644
|
-
57
|
645
|
-
58
|
646
|
-
59
|
647
|
-
60
|
648
|
-
61
|
649
|
-
62
|
650
|
-
63
|
651
|
-
64
|
652
|
-
65
|
653
|
-
66
|
654
|
-
67
|
655
|
-
68
|
656
|
-
69
|
657
|
-
70
|
658
|
-
71
|
659
|
-
72
|
660
|
-
73
|
661
|
-
74
|
662
|
-
75
|
663
|
-
76
|
664
|
-
77
|
665
|
-
78
|
666
|
-
79
|
667
|
-
80
|
668
|
-
81
|
669
|
-
82
|
670
|
-
83
|
671
|
-
84
|
672
|
-
85
|
673
|
-
86
|
674
|
-
87
|
675
|
-
88
|
676
|
-
89
|
677
|
-
90
|
678
|
-
91
|
679
|
-
92
|
680
|
-
93
|
681
|
-
94
|
682
|
-
95
|
683
|
-
96
|
684
|
-
97
|
685
|
-
98
|
686
|
-
99
|
687
|
-
100
|
688
|
-
101
|
689
|
-
102
|
690
|
-
103
|
691
|
-
104
|
692
|
-
105
|
693
|
-
106
|
694
|
-
107
|
695
|
-
108
|
696
|
-
109
|
697
|
-
110
|
698
|
-
111
|
699
|
-
112
|
700
|
-
113
|
701
|
-
114
|
702
|
-
115
|
703
|
-
116
|
704
|
-
117
|
705
|
-
118
|
706
|
-
119
|
707
|
-
120
|
708
|
-
121
|
709
|
-
122
|
710
|
-
123
|
711
|
-
124
|
712
|
-
125
|
713
|
-
126
|
714
|
-
127
|
715
|
-
128
|
716
|
-
129
|
717
|
-
130
|
718
|
-
131
|
719
|
-
132
|
720
|
-
133
|
721
|
-
134
|
722
|
-
135
|
723
|
-
136
|
724
|
-
137
|
725
|
-
138
|
726
|
-
139
|
727
|
-
140
|
728
|
-
141
|
729
|
-
142
|
730
|
-
143
|
731
|
-
144
|
732
|
-
145
|
733
|
-
146
|
734
|
-
147
|
735
|
-
148
|
736
|
-
149
|
737
|
-
150
|
738
|
-
151
|
739
|
-
152
|
740
|
-
153
|
741
|
-
154
|
742
|
-
155
|
743
|
-
156
|
744
|
-
157
|
745
|
-
158
|
746
|
-
159
|
747
|
-
160
|
748
|
-
161
|
749
|
-
162
|
750
|
-
163
|
751
|
-
164
|
752
|
-
165
|
753
|
-
166
|
754
|
-
167
|
755
|
-
168
|
756
|
-
169
|
757
|
-
170
|
758
|
-
171
|
759
|
-
172
|
760
|
-
173
|
761
|
-
174
|
762
|
-
175
|
763
|
-
176
|
764
|
-
177
|
765
|
-
178
|
766
|
-
179
|
767
|
-
180
|
768
|
-
181
|
769
|
-
182
|
770
|
-
183
|
771
|
-
184</pre></td>
|
772
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gtk/gtk.h></span>
|
773
|
-
|
774
|
-
<span class="comment">/* Surface to store current scribbles */</span>
|
775
|
-
<span class="keyword">static</span><span class="normal"> </span><span class="usertype">cairo_surface_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">surface </span><span class="symbol">=</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
776
|
-
|
777
|
-
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
778
|
-
<span class="function">clear_surface</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
|
779
|
-
<span class="cbracket">{</span>
|
780
|
-
<span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">;</span>
|
781
|
-
|
782
|
-
<span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
783
|
-
|
784
|
-
<span class="normal"> </span><span class="function">cairo_set_source_rgb</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
785
|
-
<span class="normal"> </span><span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
786
|
-
|
787
|
-
<span class="normal"> </span><span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
788
|
-
<span class="cbracket">}</span>
|
789
|
-
|
790
|
-
<span class="comment">/* Create a new surface of the appropriate size to store our scribbles */</span>
|
791
|
-
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
792
|
-
<span class="function">configure_event_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
793
|
-
<span class="normal"> </span><span class="usertype">GdkEventConfigure</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
794
|
-
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
795
|
-
<span class="cbracket">{</span>
|
796
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">)</span>
|
797
|
-
<span class="normal"> </span><span class="function">cairo_surface_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
798
|
-
|
799
|
-
<span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-window-create-similar-surface">gdk_window_create_similar_surface</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GtkWidget.html#gtk-widget-get-window">gtk_widget_get_window</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span>
|
800
|
-
<span class="normal"> CAIRO_CONTENT_COLOR</span><span class="symbol">,</span>
|
801
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-allocated-width">gtk_widget_get_allocated_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span>
|
802
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-allocated-height">gtk_widget_get_allocated_height</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">));</span>
|
803
|
-
|
804
|
-
<span class="normal"> </span><span class="comment">/* Initialize the surface to white */</span>
|
805
|
-
<span class="normal"> </span><span class="function">clear_surface</span><span class="normal"> </span><span class="symbol">();</span>
|
806
|
-
|
807
|
-
<span class="normal"> </span><span class="comment">/* We've handled the configure event, no need for further processing. */</span>
|
808
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
|
809
|
-
<span class="cbracket">}</span>
|
810
|
-
|
811
|
-
<span class="comment">/* Redraw the screen from the surface. Note that the ::draw</span>
|
812
|
-
<span class="comment"> * signal receives a ready-to-be-used cairo_t that is already</span>
|
813
|
-
<span class="comment"> * clipped to only draw the exposed areas of the widget</span>
|
814
|
-
<span class="comment"> */</span>
|
815
|
-
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
816
|
-
<span class="function">draw_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
817
|
-
<span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">,</span>
|
818
|
-
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
819
|
-
<span class="cbracket">{</span>
|
820
|
-
<span class="normal"> </span><span class="function">cairo_set_source_surface</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> surface</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
821
|
-
<span class="normal"> </span><span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
822
|
-
|
823
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
824
|
-
<span class="cbracket">}</span>
|
825
|
-
|
826
|
-
<span class="comment">/* Draw a rectangle on the surface at the given position */</span>
|
827
|
-
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
828
|
-
<span class="function">draw_brush</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
829
|
-
<span class="normal"> </span><span class="usertype">gdouble</span><span class="normal"> x</span><span class="symbol">,</span>
|
830
|
-
<span class="normal"> </span><span class="usertype">gdouble</span><span class="normal"> y</span><span class="symbol">)</span>
|
831
|
-
<span class="cbracket">{</span>
|
832
|
-
<span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">;</span>
|
833
|
-
|
834
|
-
<span class="normal"> </span><span class="comment">/* Paint to the surface, where we store our state */</span>
|
835
|
-
<span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
836
|
-
|
837
|
-
<span class="normal"> </span><span class="function">cairo_rectangle</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> x </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> y </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">);</span>
|
838
|
-
<span class="normal"> </span><span class="function">cairo_fill</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
839
|
-
|
840
|
-
<span class="normal"> </span><span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
841
|
-
|
842
|
-
<span class="normal"> </span><span class="comment">/* Now invalidate the affected region of the drawing area. */</span>
|
843
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-queue-draw-area">gtk_widget_queue_draw_area</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> x </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> y </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">);</span>
|
844
|
-
<span class="cbracket">}</span>
|
845
|
-
|
846
|
-
<span class="comment">/* Handle button press events by either drawing a rectangle</span>
|
847
|
-
<span class="comment"> * or clearing the surface, depending on which button was pressed.</span>
|
848
|
-
<span class="comment"> * The ::button-press signal handler receives a GdkEventButton</span>
|
849
|
-
<span class="comment"> * struct which contains this information.</span>
|
850
|
-
<span class="comment"> */</span>
|
851
|
-
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
852
|
-
<span class="function">button_press_event_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
853
|
-
<span class="normal"> </span><span class="usertype">GdkEventButton</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
854
|
-
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
855
|
-
<span class="cbracket">{</span>
|
856
|
-
<span class="normal"> </span><span class="comment">/* paranoia check, in case we haven't gotten a configure event */</span>
|
857
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface </span><span class="symbol">==</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
858
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
859
|
-
|
860
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event</span><span class="symbol">-></span><span class="normal">button </span><span class="symbol">==</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Events.html#GDK-BUTTON-PRIMARY:CAPS">GDK_BUTTON_PRIMARY</a></span><span class="symbol">)</span>
|
861
|
-
<span class="normal"> </span><span class="cbracket">{</span>
|
862
|
-
<span class="normal"> </span><span class="function">draw_brush</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">x</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">y</span><span class="symbol">);</span>
|
863
|
-
<span class="normal"> </span><span class="cbracket">}</span>
|
864
|
-
<span class="normal"> </span><span class="keyword">else</span><span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event</span><span class="symbol">-></span><span class="normal">button </span><span class="symbol">==</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Events.html#GDK-BUTTON-SECONDARY:CAPS">GDK_BUTTON_SECONDARY</a></span><span class="symbol">)</span>
|
865
|
-
<span class="normal"> </span><span class="cbracket">{</span>
|
866
|
-
<span class="normal"> </span><span class="function">clear_surface</span><span class="normal"> </span><span class="symbol">();</span>
|
867
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-queue-draw">gtk_widget_queue_draw</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">);</span>
|
868
|
-
<span class="normal"> </span><span class="cbracket">}</span>
|
869
|
-
|
870
|
-
<span class="normal"> </span><span class="comment">/* We've handled the event, stop processing */</span>
|
871
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
|
872
|
-
<span class="cbracket">}</span>
|
873
|
-
|
874
|
-
<span class="comment">/* Handle motion events by continuing to draw if button 1 is</span>
|
875
|
-
<span class="comment"> * still held down. The ::motion-notify signal handler receives</span>
|
876
|
-
<span class="comment"> * a GdkEventMotion struct which contains this information.</span>
|
877
|
-
<span class="comment"> */</span>
|
878
|
-
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
879
|
-
<span class="function">motion_notify_event_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
880
|
-
<span class="normal"> </span><span class="usertype">GdkEventMotion</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
881
|
-
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
882
|
-
<span class="cbracket">{</span>
|
883
|
-
<span class="normal"> </span><span class="comment">/* paranoia check, in case we haven't gotten a configure event */</span>
|
884
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface </span><span class="symbol">==</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
885
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
886
|
-
|
887
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event</span><span class="symbol">-></span><span class="normal">state </span><span class="symbol">&</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Windows.html#GDK-BUTTON1-MASK:CAPS">GDK_BUTTON1_MASK</a></span><span class="symbol">)</span>
|
888
|
-
<span class="normal"> </span><span class="function">draw_brush</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">x</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">y</span><span class="symbol">);</span>
|
889
|
-
|
890
|
-
<span class="normal"> </span><span class="comment">/* We've handled it, stop processing */</span>
|
891
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
|
892
|
-
<span class="cbracket">}</span>
|
893
|
-
|
894
|
-
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
895
|
-
<span class="function">close_window</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
|
896
|
-
<span class="cbracket">{</span>
|
897
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">)</span>
|
898
|
-
<span class="normal"> </span><span class="function">cairo_surface_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
899
|
-
|
900
|
-
<span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="normal"> </span><span class="symbol">();</span>
|
901
|
-
<span class="cbracket">}</span>
|
902
|
-
|
903
|
-
<span class="type">int</span>
|
904
|
-
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span>
|
905
|
-
<span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
906
|
-
<span class="cbracket">{</span>
|
907
|
-
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">;</span>
|
908
|
-
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">frame</span><span class="symbol">;</span>
|
909
|
-
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">da</span><span class="symbol">;</span>
|
910
|
-
|
911
|
-
<span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">argv</span><span class="symbol">);</span>
|
912
|
-
|
913
|
-
<span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
|
914
|
-
<span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-set-title">gtk_window_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"Drawing Area"</span><span class="symbol">);</span>
|
915
|
-
|
916
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">close_window</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
917
|
-
|
918
|
-
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">8</span><span class="symbol">);</span>
|
919
|
-
|
920
|
-
<span class="normal"> frame </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkFrame.html#gtk-frame-new">gtk_frame_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
921
|
-
<span class="normal"> </span><span class="function"><a href="GtkFrame.html#gtk-frame-set-shadow-type">gtk_frame_set_shadow_type</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_FRAME</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">frame</span><span class="symbol">),</span><span class="normal"> <a href="gtk3-Standard-Enumerations.html#GTK-SHADOW-IN:CAPS">GTK_SHADOW_IN</a></span><span class="symbol">);</span>
|
922
|
-
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> frame</span><span class="symbol">);</span>
|
923
|
-
|
924
|
-
<span class="normal"> da </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkDrawingArea.html#gtk-drawing-area-new">gtk_drawing_area_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
925
|
-
<span class="normal"> </span><span class="comment">/* set a minimum size */</span>
|
926
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-set-size-request">gtk_widget_set_size_request</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">);</span>
|
927
|
-
|
928
|
-
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">frame</span><span class="symbol">),</span><span class="normal"> da</span><span class="symbol">);</span>
|
929
|
-
|
930
|
-
<span class="normal"> </span><span class="comment">/* Signals used to handle the backing surface */</span>
|
931
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"draw"</span><span class="symbol">,</span>
|
932
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">draw_cb</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
933
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="string">"configure-event"</span><span class="symbol">,</span>
|
934
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">configure_event_cb</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
935
|
-
|
936
|
-
<span class="normal"> </span><span class="comment">/* Event signals */</span>
|
937
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"motion-notify-event"</span><span class="symbol">,</span>
|
938
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">motion_notify_event_cb</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
939
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"button-press-event"</span><span class="symbol">,</span>
|
940
|
-
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button_press_event_cb</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
941
|
-
|
942
|
-
<span class="normal"> </span><span class="comment">/* Ask to receive events the drawing area doesn't normally</span>
|
943
|
-
<span class="comment"> * subscribe to. In particular, we need to ask for the</span>
|
944
|
-
<span class="comment"> * button press and motion notify events that want to handle.</span>
|
945
|
-
<span class="comment"> */</span>
|
946
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-set-events">gtk_widget_set_events</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-events">gtk_widget_get_events</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">)</span>
|
947
|
-
<span class="normal"> </span><span class="symbol">|</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Events.html#GDK-BUTTON-PRESS-MASK:CAPS">GDK_BUTTON_PRESS_MASK</a></span>
|
948
|
-
<span class="normal"> </span><span class="symbol">|</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Events.html#GDK-POINTER-MOTION-MASK:CAPS">GDK_POINTER_MOTION_MASK</a></span><span class="symbol">);</span>
|
949
|
-
|
950
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
|
951
|
-
|
952
|
-
<span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
|
953
|
-
|
954
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
955
|
-
<span class="cbracket">}</span></pre></td>
|
956
|
-
</tr>
|
957
|
-
</tbody>
|
958
|
-
</table>
|
959
|
-
</div>
|
960
|
-
|
961
|
-
</div>
|
962
|
-
<br class="example-break">
|
963
|
-
</div>
|
964
|
-
<div class="simplesect">
|
965
|
-
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
966
|
-
<a name="id-1.2.3.6"></a>Building interfaces</h2></div></div></div>
|
967
|
-
<p>When construcing a more complicated user interface, with dozens
|
968
|
-
or hundreds of widgets, doing all the setup work in C code is
|
969
|
-
cumbersome, and making changes becomes next to impossible.</p>
|
970
|
-
<p>Thankfully, GTK+ supports the separation of user interface
|
971
|
-
layout from your business logic, by using UI descriptions in an
|
972
|
-
XML format that can be parsed by the <a class="link" href="GtkBuilder.html" title="GtkBuilder"><span class="type">GtkBuilder</span></a> class.</p>
|
973
|
-
<div class="example">
|
974
|
-
<a name="id-1.2.3.6.4"></a><p class="title"><b>Example 4. Packing buttons with GtkBuilder</b></p>
|
975
|
-
<div class="example-contents">
|
976
|
-
<pre class="programlisting">
|
977
|
-
#include <gtk/gtk.h>
|
155
|
+
<p>Create a new file with the following content named example-1.c.</p>
|
156
|
+
<pre class="programlisting">#include <gtk/gtk.h>
|
978
157
|
|
158
|
+
/* This is a callback function. The data arguments are ignored
|
159
|
+
* in this example. More on callbacks below.
|
160
|
+
*/
|
979
161
|
static void
|
980
162
|
print_hello (GtkWidget *widget,
|
981
163
|
gpointer data)
|
@@ -983,113 +165,113 @@ print_hello (GtkWidget *widget,
|
|
983
165
|
g_print ("Hello World\n");
|
984
166
|
}
|
985
167
|
|
168
|
+
static gboolean
|
169
|
+
on_delete_event (GtkWidget *widget,
|
170
|
+
GdkEvent *event,
|
171
|
+
gpointer data)
|
172
|
+
{
|
173
|
+
/* If you return FALSE in the "delete_event" signal handler,
|
174
|
+
* GTK will emit the "destroy" signal. Returning TRUE means
|
175
|
+
* you don't want the window to be destroyed.
|
176
|
+
*
|
177
|
+
* This is useful for popping up 'are you sure you want to quit?'
|
178
|
+
* type dialogs.
|
179
|
+
*/
|
180
|
+
|
181
|
+
g_print ("delete event occurred\n");
|
182
|
+
|
183
|
+
return TRUE;
|
184
|
+
}
|
185
|
+
|
986
186
|
int
|
987
187
|
main (int argc,
|
988
188
|
char *argv[])
|
989
189
|
{
|
990
|
-
|
991
|
-
|
992
|
-
|
190
|
+
/* GtkWidget is the storage type for widgets */
|
191
|
+
GtkWidget *window;
|
192
|
+
GtkWidget *button;
|
993
193
|
|
194
|
+
/* This is called in all GTK applications. Arguments are parsed
|
195
|
+
* from the command line and are returned to the application.
|
196
|
+
*/
|
994
197
|
gtk_init (&argc, &argv);
|
995
198
|
|
996
|
-
/*
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
/*
|
1001
|
-
|
199
|
+
/* create a new window, and set its title */
|
200
|
+
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
201
|
+
gtk_window_set_title (GTK_WINDOW (window), "Hello");
|
202
|
+
|
203
|
+
/* When the window emits the "delete-event" signal (which is emitted
|
204
|
+
* by GTK+ in response to an event coming from the window manager,
|
205
|
+
* usually as a result of clicking the "close" window control), we
|
206
|
+
* ask it to call the on_delete_event() function as defined above.
|
207
|
+
*
|
208
|
+
* The data passed to the callback function is NULL and is ignored
|
209
|
+
* in the callback function.
|
210
|
+
*/
|
211
|
+
g_signal_connect (window, "delete-event", G_CALLBACK (on_delete_event), NULL);
|
212
|
+
|
213
|
+
/* Here we connect the "destroy" event to the gtk_main_quit() function.
|
214
|
+
*
|
215
|
+
* This signal is emitted when we call gtk_widget_destroy() on the window,
|
216
|
+
* or if we return FALSE in the "delete_event" callback.
|
217
|
+
*/
|
1002
218
|
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
|
1003
219
|
|
1004
|
-
|
1005
|
-
|
220
|
+
/* Sets the border width of the window. */
|
221
|
+
gtk_container_set_border_width (GTK_CONTAINER (window), 10);
|
1006
222
|
|
1007
|
-
button
|
1008
|
-
|
223
|
+
/* Creates a new button with the label "Hello World". */
|
224
|
+
button = gtk_button_new_with_label ("Hello World");
|
1009
225
|
|
1010
|
-
button
|
1011
|
-
|
226
|
+
/* When the button receives the "clicked" signal, it will call the
|
227
|
+
* function print_hello() passing it NULL as its argument.
|
228
|
+
*
|
229
|
+
* The print_hello() function is defined above.
|
230
|
+
*/
|
231
|
+
g_signal_connect (button, "clicked", G_CALLBACK (print_hello), NULL);
|
1012
232
|
|
233
|
+
/* The g_signal_connect_swapped() function will connect the "clicked" signal
|
234
|
+
* of the button to the gtk_widget_destroy() function; instead of calling it
|
235
|
+
* using the button as its argument, it will swap it with the user data
|
236
|
+
* argument. This will cause the window to be destroyed by calling
|
237
|
+
* gtk_widget_destroy() on the window.
|
238
|
+
*/
|
239
|
+
g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_widget_destroy), window);
|
240
|
+
|
241
|
+
/* This packs the button into the window. A GtkWindow inherits from GtkBin,
|
242
|
+
* which is a special container that can only have one child
|
243
|
+
*/
|
244
|
+
gtk_container_add (GTK_CONTAINER (window), button);
|
245
|
+
|
246
|
+
/* The final step is to display this newly created widget... */
|
247
|
+
gtk_widget_show (button);
|
248
|
+
|
249
|
+
/* ... and the window */
|
250
|
+
gtk_widget_show (window);
|
251
|
+
|
252
|
+
/* All GTK applications must have a gtk_main(). Control ends here
|
253
|
+
* and waits for an event to occur (like a key press or a mouse event),
|
254
|
+
* until gtk_main_quit() is called.
|
255
|
+
*/
|
1013
256
|
gtk_main ();
|
1014
257
|
|
1015
258
|
return 0;
|
1016
259
|
}
|
1017
|
-
|
1018
|
-
</pre>
|
1019
|
-
The builder.ui file looks like this:
|
1020
|
-
<pre class="programlisting">
|
1021
|
-
<interface>
|
1022
|
-
<object id="window" class="GtkWindow">
|
1023
|
-
<property name="visible">True</property>
|
1024
|
-
<property name="title">Grid</property>
|
1025
|
-
<property name="border-width">10</property>
|
1026
|
-
<child>
|
1027
|
-
<object id="grid" class="GtkGrid">
|
1028
|
-
<property name="visible">True</property>
|
1029
|
-
<child>
|
1030
|
-
<object id="button1" class="GtkButton">
|
1031
|
-
<property name="visible">True</property>
|
1032
|
-
<property name="label">Button 1</property>
|
1033
|
-
</object>
|
1034
|
-
<packing>
|
1035
|
-
<property name="left-attach">0</property>
|
1036
|
-
<property name="top-attach">0</property>
|
1037
|
-
</packing>
|
1038
|
-
</child>
|
1039
|
-
<child>
|
1040
|
-
<object id="button2" class="GtkButton">
|
1041
|
-
<property name="visible">True</property>
|
1042
|
-
<property name="label">Button 2</property>
|
1043
|
-
</object>
|
1044
|
-
<packing>
|
1045
|
-
<property name="left-attach">1</property>
|
1046
|
-
<property name="top-attach">0</property>
|
1047
|
-
</packing>
|
1048
|
-
</child>
|
1049
|
-
<child>
|
1050
|
-
<object id="quit" class="GtkButton">
|
1051
|
-
<property name="visible">True</property>
|
1052
|
-
<property name="label">Quit</property>
|
1053
|
-
</object>
|
1054
|
-
<packing>
|
1055
|
-
<property name="left-attach">0</property>
|
1056
|
-
<property name="top-attach">1</property>
|
1057
|
-
<property name="width">2</property>
|
1058
|
-
</packing>
|
1059
|
-
</child>
|
1060
|
-
</object>
|
1061
|
-
<packing>
|
1062
|
-
</packing>
|
1063
|
-
</child>
|
1064
|
-
</object>
|
1065
|
-
</interface>
|
1066
|
-
|
1067
|
-
</pre>
|
260
|
+
</pre>
|
1068
261
|
</div>
|
1069
262
|
</div>
|
1070
|
-
<br class="example-break"><p>
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
independent of the current directory. A common location to install
|
1078
|
-
UI descriptions and similar data is
|
1079
|
-
<code class="filename">/usr/share/<em class="replaceable"><code>appname</code></em></code>.
|
263
|
+
<br class="example-break"><p>
|
264
|
+
You can compile the program above with GCC using:
|
265
|
+
</p>
|
266
|
+
<div class="literallayout"><p><br>
|
267
|
+
<code class="literal">gcc `pkg-config --cflags gtk+-3.0` -o example-1 example-1.c `pkg-config --libs gtk+-3.0`</code><br>
|
268
|
+
</p></div>
|
269
|
+
<p>
|
1080
270
|
</p>
|
1081
|
-
<p>It is also possible to embed the UI description in the source
|
1082
|
-
code as a string and use <a class="link" href="GtkBuilder.html#gtk-builder-add-from-string" title="gtk_builder_add_from_string ()"><code class="function">gtk_builder_add_from_string()</code></a> to load it.
|
1083
|
-
But keeping the UI description in a separate file has several
|
1084
|
-
advantages: It is then possible to make minor adjustments to the UI
|
1085
|
-
without recompiling your program, and, more importantly, graphical
|
1086
|
-
UI editors such as <a class="ulink" href="http://glade.gnome.org" target="_top">glade</a>
|
1087
|
-
can load the file and allow you to create and modify your UI by
|
1088
|
-
point-and-click.</p>
|
1089
271
|
</div>
|
1090
272
|
</div>
|
1091
273
|
<div class="footer">
|
1092
274
|
<hr>
|
1093
|
-
Generated by GTK-Doc V1.
|
275
|
+
Generated by GTK-Doc V1.19.1</div>
|
1094
276
|
</body>
|
1095
277
|
</html>
|