gtk2 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/README +2 -2
- data/Rakefile +5 -3
- data/ext/gtk2/extconf.rb +5 -2
- data/ext/gtk2/global.h +1 -8
- data/ext/gtk2/rbgdk.c +1 -16
- data/ext/gtk2/rbgdkcairo.c +0 -8
- data/ext/gtk2/rbgdkcolormap.c +0 -4
- data/ext/gtk2/rbgdkcursor.c +0 -18
- data/ext/gtk2/rbgdkdisplay.c +7 -45
- data/ext/gtk2/rbgdkdisplaymanager.c +0 -5
- data/ext/gtk2/rbgdkdragcontext.c +0 -13
- data/ext/gtk2/rbgdkdraw.c +2 -26
- data/ext/gtk2/rbgdkevent.c +631 -324
- data/ext/gtk2/rbgdkgc.c +0 -5
- data/ext/gtk2/rbgdkkeymap.c +2 -4
- data/ext/gtk2/rbgdkpango.c +0 -5
- data/ext/gtk2/rbgdkpangorenderer.c +0 -6
- data/ext/gtk2/rbgdkpixbuf.c +0 -3
- data/ext/gtk2/rbgdkpixmap.c +3 -18
- data/ext/gtk2/rbgdkproperty.c +0 -41
- data/ext/gtk2/rbgdkscreen.c +0 -22
- data/ext/gtk2/rbgdkselection.c +0 -13
- data/ext/gtk2/rbgdkvisual.c +0 -4
- data/ext/gtk2/rbgdkwindow.c +2 -71
- data/ext/gtk2/rbgdkx11.c +1 -6
- data/ext/gtk2/rbgtkaboutdialog.c +0 -5
- data/ext/gtk2/rbgtkaccelerator.c +0 -4
- data/ext/gtk2/rbgtkaccelgroup.c +0 -8
- data/ext/gtk2/rbgtkaccelmap.c +0 -15
- data/ext/gtk2/rbgtkaction.c +0 -14
- data/ext/gtk2/rbgtkactiongroup.c +0 -9
- data/ext/gtk2/rbgtkalignment.c +0 -4
- data/ext/gtk2/rbgtkassistant.c +0 -6
- data/ext/gtk2/rbgtkbbox.c +0 -4
- data/ext/gtk2/rbgtkbutton.c +0 -4
- data/ext/gtk2/rbgtkcalendar.c +0 -8
- data/ext/gtk2/rbgtkcelllayout.c +0 -5
- data/ext/gtk2/rbgtkcellrenderer.c +0 -8
- data/ext/gtk2/rbgtkcellrendereraccel.c +0 -6
- data/ext/gtk2/rbgtkcellrenderercombo.c +0 -6
- data/ext/gtk2/rbgtkcellrendererprogress.c +0 -6
- data/ext/gtk2/rbgtkcellrendererspin.c +0 -6
- data/ext/gtk2/rbgtkcellview.c +0 -5
- data/ext/gtk2/rbgtkclipboard.c +0 -48
- data/ext/gtk2/rbgtkcolorbutton.c +0 -6
- data/ext/gtk2/rbgtkcolorsel.c +0 -4
- data/ext/gtk2/rbgtkcombobox.c +0 -12
- data/ext/gtk2/rbgtkcomboboxentry.c +0 -6
- data/ext/gtk2/rbgtkconst.c +0 -2
- data/ext/gtk2/rbgtkdialog.c +0 -10
- data/ext/gtk2/rbgtkdrag.c +0 -24
- data/ext/gtk2/rbgtkentry.c +0 -4
- data/ext/gtk2/rbgtkentrycompletion.c +0 -10
- data/ext/gtk2/rbgtkexpander.c +0 -6
- data/ext/gtk2/rbgtkfilechooser.c +0 -10
- data/ext/gtk2/rbgtkfilechooserbutton.c +0 -6
- data/ext/gtk2/rbgtkfilechooserdialog.c +0 -8
- data/ext/gtk2/rbgtkfilechooserwidget.c +0 -6
- data/ext/gtk2/rbgtkfilefilter.c +0 -11
- data/ext/gtk2/rbgtkfilesystemerror.c +0 -2
- data/ext/gtk2/rbgtkfontbutton.c +0 -6
- data/ext/gtk2/rbgtkiconinfo.c +0 -5
- data/ext/gtk2/rbgtkiconsize.c +0 -4
- data/ext/gtk2/rbgtkicontheme.c +0 -11
- data/ext/gtk2/rbgtkiconview.c +0 -9
- data/ext/gtk2/rbgtkimage.c +0 -8
- data/ext/gtk2/rbgtkinvisible.c +0 -4
- data/ext/gtk2/rbgtklinkbutton.c +0 -5
- data/ext/gtk2/rbgtkliststore.c +0 -14
- data/ext/gtk2/rbgtkmenu.c +0 -12
- data/ext/gtk2/rbgtkmenubar.c +0 -2
- data/ext/gtk2/rbgtkmenushell.c +0 -4
- data/ext/gtk2/rbgtkmenutoolbutton.c +0 -5
- data/ext/gtk2/rbgtkmessagedialog.c +0 -4
- data/ext/gtk2/rbgtknotebook.c +0 -9
- data/ext/gtk2/rbgtkpagesetup.c +0 -5
- data/ext/gtk2/rbgtkpapersize.c +0 -6
- data/ext/gtk2/rbgtkprintcontext.c +0 -5
- data/ext/gtk2/rbgtkprintoperation.c +0 -5
- data/ext/gtk2/rbgtkprintoperationpreview.c +0 -5
- data/ext/gtk2/rbgtkprintsettings.c +0 -5
- data/ext/gtk2/rbgtkradioaction.c +0 -18
- data/ext/gtk2/rbgtkradiotoolbutton.c +0 -6
- data/ext/gtk2/rbgtkrange.c +0 -2
- data/ext/gtk2/rbgtkrc.c +0 -4
- data/ext/gtk2/rbgtkrecentchooser.c +0 -6
- data/ext/gtk2/rbgtkrecentchooserdialog.c +0 -5
- data/ext/gtk2/rbgtkrecentchoosermenu.c +0 -6
- data/ext/gtk2/rbgtkrecentchooserwidget.c +0 -5
- data/ext/gtk2/rbgtkrecentdata.c +0 -6
- data/ext/gtk2/rbgtkrecentfilter.c +0 -5
- data/ext/gtk2/rbgtkrecentfilterinfo.c +0 -6
- data/ext/gtk2/rbgtkrecentinfo.c +0 -5
- data/ext/gtk2/rbgtkrecentmanager.c +0 -5
- data/ext/gtk2/rbgtkscale.c +0 -6
- data/ext/gtk2/rbgtkscrolledwindow.c +0 -9
- data/ext/gtk2/rbgtkselection.c +0 -8
- data/ext/gtk2/rbgtkselectiondata.c +2 -14
- data/ext/gtk2/rbgtkseparatortoolitem.c +0 -6
- data/ext/gtk2/rbgtksettings.c +0 -4
- data/ext/gtk2/rbgtksizegroup.c +0 -5
- data/ext/gtk2/rbgtkstatusicon.c +0 -5
- data/ext/gtk2/rbgtkstock.c +0 -38
- data/ext/gtk2/rbgtkstyle.c +0 -8
- data/ext/gtk2/rbgtktargetlist.c +0 -34
- data/ext/gtk2/rbgtktextbuffer.c +0 -12
- data/ext/gtk2/rbgtktextiter.c +0 -8
- data/ext/gtk2/rbgtktextview.c +0 -4
- data/ext/gtk2/rbgtktoggleaction.c +0 -7
- data/ext/gtk2/rbgtktoggletoolbutton.c +0 -6
- data/ext/gtk2/rbgtktoolbar.c +0 -6
- data/ext/gtk2/rbgtktoolbutton.c +0 -6
- data/ext/gtk2/rbgtktoolitem.c +0 -9
- data/ext/gtk2/rbgtktooltips.c +0 -4
- data/ext/gtk2/rbgtktreeiter.c +0 -4
- data/ext/gtk2/rbgtktreemodelfilter.c +0 -5
- data/ext/gtk2/rbgtktreemodelsort.c +0 -4
- data/ext/gtk2/rbgtktreerowreference.c +0 -4
- data/ext/gtk2/rbgtktreeselection.c +0 -4
- data/ext/gtk2/rbgtktreestore.c +0 -19
- data/ext/gtk2/rbgtktreeview.c +0 -24
- data/ext/gtk2/rbgtktreeviewcolumn.c +0 -10
- data/ext/gtk2/rbgtkuimanager.c +0 -6
- data/ext/gtk2/rbgtkwidget.c +1 -31
- data/ext/gtk2/rbgtkwindow.c +2 -47
- data/lib/1.9/gtk2.so +0 -0
- data/lib/2.0/gtk2.so +0 -0
- data/sample/gtk-demo/common.rb +6 -1
- data/sample/gtk-demo/main.rb +89 -85
- data/test/test_gtk_icon_theme.rb +11 -6
- data/vendor/local/bin/gtk-demo.exe +0 -0
- data/vendor/local/bin/gtk-query-immodules-2.0.exe +0 -0
- data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
- data/vendor/local/bin/libgailutil-18.dll +0 -0
- data/vendor/local/bin/libgdk-win32-2.0-0.dll +0 -0
- data/vendor/local/bin/libgtk-win32-2.0-0.dll +0 -0
- data/vendor/local/include/gtk-2.0/gtk/gtksignal.h +3 -1
- data/vendor/local/include/gtk-2.0/gtk/gtkversion.h +3 -3
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules.cache +40 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-am-et.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-am-et.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-am-et.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cedilla.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cedilla.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cedilla.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ime.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ime.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ime.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ipa.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ipa.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ipa.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-multipress.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-multipress.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-multipress.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-thai.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-thai.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-thai.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-er.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-er.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-er.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-et.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-et.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-et.la +2 -2
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-viqr.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-viqr.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-viqr.la +2 -2
- data/vendor/local/lib/gtk-2.0/modules/libgail.dll +0 -0
- data/vendor/local/lib/gtk-2.0/modules/libgail.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/modules/libgail.la +2 -2
- data/vendor/local/lib/libgailutil.dll.a +0 -0
- data/vendor/local/lib/libgailutil.la +2 -2
- data/vendor/local/lib/libgdk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk-win32-2.0.la +3 -3
- data/vendor/local/lib/libgtk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgtk-win32-2.0.la +3 -3
- data/vendor/local/lib/pkgconfig/gail.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-win32-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-win32-2.0.pc +1 -1
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailMisc.html +111 -111
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailTextUtil.html +33 -33
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/index.html +2 -2
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/libgail-util-main.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplay.html +101 -99
- data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplayManager.html +9 -9
- data/vendor/local/share/gtk-doc/html/gdk2/GdkScreen.html +167 -167
- data/vendor/local/share/gtk-doc/html/gdk2/annotation-glossary.html +31 -22
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-10.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-12.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-14.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-16.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-18.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-20.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-22.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-4.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-6.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-8.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/api-index-full.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Application-launching.html +15 -15
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Bitmaps-and-Pixmaps.html +68 -68
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Cairo-Interaction.html +36 -36
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Colormaps-and-Colors.html +89 -89
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Cursors.html +25 -25
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drag-and-Drop.html +47 -47
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drawing-Primitives.html +268 -268
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Event-Structures.html +106 -106
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Events.html +66 -66
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Fonts.html +125 -125
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-GdkRGB.html +125 -125
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-General.html +85 -85
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Graphics-Contexts.html +54 -54
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Images.html +54 -54
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input-Devices.html +59 -59
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input.html +25 -25
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Keyboard-Handling.html +121 -104
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Pango-Interaction.html +111 -111
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Pixbufs.html +41 -41
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Points-Rectangles-and-Regions.html +49 -49
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Properties-and-Atoms.html +133 -132
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Selections.html +39 -39
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Testing.html +20 -20
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Threads.html +105 -105
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Visuals.html +59 -59
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Windows.html +478 -478
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-X-Window-System-Interaction.html +76 -76
- data/vendor/local/share/gtk-doc/html/gdk2/index.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk2/index.sgml +6 -6
- data/vendor/local/share/gtk-doc/html/gdk2/multihead.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk2/reference.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/AbstractObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/Actions.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/Builder.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/ButtonWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/DeprecatedObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/DisplayWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAboutDialog.html +144 -144
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAccelLabel.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAccessible.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAction.html +135 -135
- data/vendor/local/share/gtk-doc/html/gtk2/GtkActionGroup.html +112 -112
- data/vendor/local/share/gtk-doc/html/gtk2/GtkActivatable.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAdjustment.html +80 -80
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAlignment.html +56 -56
- data/vendor/local/share/gtk-doc/html/gtk2/GtkArrow.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAspectFrame.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAssistant.html +73 -73
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBin.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBox.html +70 -70
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBuildable.html +54 -54
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBuilder.html +129 -129
- data/vendor/local/share/gtk-doc/html/gtk2/GtkButton.html +75 -75
- data/vendor/local/share/gtk-doc/html/gtk2/GtkButtonBox.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCList.html +296 -296
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCTree.html +214 -214
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCalendar.html +99 -99
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellEditable.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellLayout.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRenderer.html +104 -104
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererAccel.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererCombo.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererPixbuf.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererProgress.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererSpin.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererSpinner.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererText.html +98 -98
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererToggle.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellView.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCheckButton.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorButton.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelection.html +55 -55
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelectionDialog.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCombo.html +43 -43
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBox.html +116 -114
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxEntry.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxText.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk2/GtkContainer.html +95 -95
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCurve.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk2/GtkDialog.html +77 -77
- data/vendor/local/share/gtk-doc/html/gtk2/GtkDrawingArea.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEditable.html +62 -62
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntry.html +299 -299
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryBuffer.html +61 -61
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryCompletion.html +106 -106
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEventBox.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkExpander.html +61 -61
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooser.html +219 -219
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserButton.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserDialog.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserWidget.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileSelection.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFixed.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontButton.html +61 -61
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelection.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelectionDialog.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFrame.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk2/GtkGammaCurve.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHBox.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHButtonBox.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHPaned.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHRuler.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHSV.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHScale.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHScrollbar.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHSeparator.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHandleBox.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContext.html +71 -71
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContextSimple.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMMulticontext.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIconTheme.html +115 -115
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIconView.html +222 -222
- data/vendor/local/share/gtk-doc/html/gtk2/GtkImage.html +105 -105
- data/vendor/local/share/gtk-doc/html/gtk2/GtkImageMenuItem.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInfoBar.html +43 -43
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInputDialog.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInvisible.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkItem.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkItemFactory.html +109 -109
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLabel.html +205 -205
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLayout.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLinkButton.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkList.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtk2/GtkListItem.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkListStore.html +68 -68
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenu.html +115 -115
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuBar.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuItem.html +68 -68
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuShell.html +47 -47
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuToolButton.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMessageDialog.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMisc.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/GtkNotebook.html +230 -230
- data/vendor/local/share/gtk-doc/html/gtk2/GtkObject.html +119 -119
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOffscreenWindow.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOldEditable.html +52 -52
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOptionMenu.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetup.html +77 -77
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetupUnixDialog.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPaned.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPaperSize.html +70 -70
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPixmap.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPlug.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPreview.html +47 -47
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintContext.html +60 -60
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintJob.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintSettings.html +212 -212
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintUnixDialog.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrinter.html +98 -98
- data/vendor/local/share/gtk-doc/html/gtk2/GtkProgress.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk2/GtkProgressBar.html +60 -60
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioAction.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioButton.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioMenuItem.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioToolButton.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRange.html +113 -113
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentAction.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooser.html +117 -117
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserDialog.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserMenu.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserWidget.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentFilter.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentManager.html +154 -154
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRuler.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScale.html +49 -49
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScaleButton.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScrollbar.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScrolledWindow.html +45 -24
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparator.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparatorMenuItem.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparatorToolItem.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSettings.html +236 -220
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSizeGroup.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSocket.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinButton.html +95 -95
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinner.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusIcon.html +177 -177
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusbar.html +39 -39
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStyle.html +476 -476
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTable.html +95 -95
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTearoffMenuItem.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkText.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextBuffer.html +241 -241
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextIter.html +319 -319
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextMark.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTag.html +153 -153
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTagTable.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextView.html +248 -248
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTipsQuery.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleAction.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleButton.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleToolButton.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolButton.html +64 -64
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItem.html +75 -75
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItemGroup.html +56 -56
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolPalette.html +41 -41
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolShell.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolbar.html +129 -129
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltip.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltips.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTree.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeItem.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModel.html +158 -158
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelFilter.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelSort.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSelection.html +45 -45
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSortable.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeStore.html +77 -77
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeView.html +482 -482
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeViewColumn.html +180 -180
- data/vendor/local/share/gtk-doc/html/gtk2/GtkUIManager.html +66 -66
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVBox.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVButtonBox.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVPaned.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVRuler.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVScale.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVScrollbar.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVSeparator.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkViewport.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVolumeButton.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWidget.html +803 -803
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWindow.html +324 -324
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWindowGroup.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/LayoutContainers.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/MenusAndCombos.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/MiscObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/NumericEntry.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/Ornaments.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/PlugSocket.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/Printing.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/RecentDocuments.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/ScrollingWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/SelectorWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/SpecialObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/TextWidget.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/TextWidgetObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/TreeWidget.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/TreeWidgetObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/WindowWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/annotation-glossary.html +34 -31
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-10.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-12.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-14.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-16.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-18.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-20.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-22.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-24.html +10 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-4.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-6.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-8.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/api-index-full.html +26 -18
- data/vendor/local/share/gtk-doc/html/gtk2/ch01.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/ch02.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/chap-drawing-model.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/checklist-gdkeventexpose-region.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/checklist-modifiers.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/checklist-named-icons.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/decorating-the-assistant-pages.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/glossary.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-builder-convert.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-building.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-changes-1-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-changes-2-0.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-compiling.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-directfb.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-ClientSideWindows.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkAboutDialog.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkAction.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkAssistant.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkBuilder.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkColorButton.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkComboBox.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkFileChooser.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkIconView.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkLinkButton.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkRecentChooser.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-checklist.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-entry-icons.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-label-links.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-tooltips.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-osx.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-query-immodules-2.0.html +28 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-question-index.html +61 -61
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-resources.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-running.html +7 -8
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-update-icon-cache.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-windows.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-x11.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Accelerator-Maps.html +54 -54
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Bindings.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Clipboards.html +128 -128
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Drag-and-Drop.html +89 -89
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Feature-Test-Macros.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Filesystem-utilities.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-General.html +180 -180
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Graphics-Contexts.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-GtkTreeView-drag-and-drop.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-High-level-Printing-API.html +184 -184
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Keyboard-Accelerators.html +102 -102
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Orientable.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Resource-Files.html +73 -73
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Selections.html +161 -161
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Signals.html +97 -97
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Standard-Enumerations.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Stock-Items.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Testing.html +54 -54
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Themeable-Stock-Images.html +84 -84
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Types.html +40 -40
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkcheckmenuitem.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkfilefilter.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2.devhelp2 +4 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtkbase.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-installing-extra-widgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-installing-preview.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-new-features.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-selection-modes.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/gtkobjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtkrecent-advanced.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/gtkrecent-chooser.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/index.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/index.sgml +10 -8
- data/vendor/local/share/gtk-doc/html/gtk2/migrating-GtkCombo.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/migrating-gnomeuiinfo.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/migrating.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/new-features-GtkComboBox.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/pt05.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/setting-the-page-flow.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/ui-manager.html +2 -2
- data/vendor/local/share/icons/hicolor/index.theme +179 -11
- data/vendor/local/share/locale/de/LC_MESSAGES/gtk20-properties.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtk20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtk20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtk20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtk20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gtk20.mo +0 -0
- metadata +15 -23
- data/vendor/local/etc/gtk-2.0/gtk.immodules +0 -39
@@ -21,8 +21,6 @@
|
|
21
21
|
|
22
22
|
#include "global.h"
|
23
23
|
|
24
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
25
|
-
|
26
24
|
#define RG_TARGET_NAMESPACE cDisplayManager
|
27
25
|
#define _SELF(obj) GDK_DISPLAY_MANAGER(RVAL2GOBJ(obj))
|
28
26
|
|
@@ -45,15 +43,12 @@ gdkdisplaymanager_get_core_pointer(VALUE self)
|
|
45
43
|
return GOBJ2RVAL(gdk_display_get_core_pointer(_SELF(self)));
|
46
44
|
}
|
47
45
|
*/
|
48
|
-
#endif
|
49
46
|
|
50
47
|
void
|
51
48
|
Init_gtk_gdk_display_manager(VALUE mGdk)
|
52
49
|
{
|
53
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
54
50
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_DISPLAY_MANAGER, "DisplayManager", mGdk);
|
55
51
|
|
56
52
|
RG_DEF_SMETHOD(get, 0);
|
57
53
|
RG_DEF_METHOD(displays, 0);
|
58
|
-
#endif
|
59
54
|
}
|
data/ext/gtk2/rbgdkdragcontext.c
CHANGED
@@ -102,15 +102,10 @@ rg_s_get_protocol(int argc, VALUE *argv, G_GNUC_UNUSED VALUE self)
|
|
102
102
|
rb_scan_args(argc, argv, "10", &xid);
|
103
103
|
ret = gdk_drag_get_protocol(RVAL2GDKNATIVEWINDOW(xid), &prot);
|
104
104
|
} else {
|
105
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
106
105
|
VALUE display;
|
107
106
|
rb_scan_args(argc, argv, "20", &display, &xid);
|
108
107
|
ret = gdk_drag_get_protocol_for_display(GDK_DISPLAY_OBJECT(RVAL2GOBJ(display)),
|
109
108
|
RVAL2GDKNATIVEWINDOW(xid), &prot);
|
110
|
-
#else
|
111
|
-
rb_warn("Not supported arguments for Gdk::Display in GTK+-2.0.x.");
|
112
|
-
ret = gdk_drag_get_protocol(NUM2UINT(xid), &prot);
|
113
|
-
#endif
|
114
109
|
}
|
115
110
|
|
116
111
|
return rb_ary_new3(2, GENUM2RVAL(prot, GDK_TYPE_DRAG_PROTOCOL), GDKNATIVEWINDOW2RVAL(ret));
|
@@ -158,7 +153,6 @@ rg_find_window(int argc, VALUE *argv, VALUE self)
|
|
158
153
|
NUM2INT(x_root), NUM2INT(y_root),
|
159
154
|
&dest_window, &prot);
|
160
155
|
} else {
|
161
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
162
156
|
VALUE screen;
|
163
157
|
rb_scan_args(argc, argv, "40", &drag_window, &screen, &x_root, &y_root);
|
164
158
|
gdk_drag_find_window_for_screen(_SELF(self),
|
@@ -166,9 +160,6 @@ rg_find_window(int argc, VALUE *argv, VALUE self)
|
|
166
160
|
GDK_SCREEN(RVAL2GOBJ(screen)),
|
167
161
|
NUM2INT(x_root), NUM2INT(y_root),
|
168
162
|
&dest_window, &prot);
|
169
|
-
#else
|
170
|
-
rb_raise(rb_eArgError, "Wrong number of arguments: %d", argc);
|
171
|
-
#endif
|
172
163
|
}
|
173
164
|
|
174
165
|
return rb_ary_new3(2, GOBJ2RVAL(dest_window),
|
@@ -258,13 +249,11 @@ rg_drag_status(VALUE self, VALUE action, VALUE time)
|
|
258
249
|
return self;
|
259
250
|
}
|
260
251
|
|
261
|
-
#if GTK_CHECK_VERSION(2,6,0)
|
262
252
|
static VALUE
|
263
253
|
rg_drag_drop_succeeded_p(VALUE self)
|
264
254
|
{
|
265
255
|
return CBOOL2RVAL(gdk_drag_drop_succeeded(_SELF(self)));
|
266
256
|
}
|
267
|
-
#endif
|
268
257
|
|
269
258
|
void
|
270
259
|
Init_gtk_gdk_dragcontext(VALUE mGdk)
|
@@ -293,9 +282,7 @@ Init_gtk_gdk_dragcontext(VALUE mGdk)
|
|
293
282
|
RG_DEF_METHOD(drag_motion, 7);
|
294
283
|
RG_DEF_METHOD(drop_finish, 2);
|
295
284
|
RG_DEF_METHOD(drag_status, 2);
|
296
|
-
#if GTK_CHECK_VERSION(2,6,0)
|
297
285
|
RG_DEF_METHOD_P(drag_drop_succeeded, 0);
|
298
|
-
#endif
|
299
286
|
/* Constants */
|
300
287
|
G_DEF_CLASS(GDK_TYPE_DRAG_PROTOCOL, "Protocol", RG_TARGET_NAMESPACE);
|
301
288
|
G_DEF_CLASS(GDK_TYPE_DRAG_ACTION, "Action", RG_TARGET_NAMESPACE);
|
data/ext/gtk2/rbgdkdraw.c
CHANGED
@@ -136,7 +136,6 @@ rg_draw_lines(VALUE self, VALUE rbgc, VALUE rbpoints)
|
|
136
136
|
return self;
|
137
137
|
}
|
138
138
|
|
139
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
140
139
|
static VALUE
|
141
140
|
rg_draw_pixbuf(VALUE self, VALUE gc, VALUE pixbuf, VALUE src_x, VALUE src_y, VALUE dest_x, VALUE dest_y, VALUE width, VALUE height, VALUE dither, VALUE x_dither, VALUE y_dither)
|
142
141
|
{
|
@@ -150,7 +149,6 @@ rg_draw_pixbuf(VALUE self, VALUE gc, VALUE pixbuf, VALUE src_x, VALUE src_y, VAL
|
|
150
149
|
NUM2INT(x_dither), NUM2INT(y_dither));
|
151
150
|
return self;
|
152
151
|
}
|
153
|
-
#endif
|
154
152
|
|
155
153
|
struct rbgdk_rval2gdksegments_args {
|
156
154
|
VALUE ary;
|
@@ -259,7 +257,6 @@ rg_draw_polygon(VALUE self, VALUE rbgc, VALUE rbfilled, VALUE rbpoints)
|
|
259
257
|
return self;
|
260
258
|
}
|
261
259
|
|
262
|
-
#if GTK_CHECK_VERSION(2,6,0)
|
263
260
|
/*
|
264
261
|
trapezoids = [[y1, x11, x21, y2, x12, x22], ...]
|
265
262
|
*/
|
@@ -334,7 +331,6 @@ rg_draw_trapezoids(VALUE self, VALUE rbgc, VALUE rbtrapezoids)
|
|
334
331
|
|
335
332
|
return self;
|
336
333
|
}
|
337
|
-
#endif
|
338
334
|
|
339
335
|
static VALUE
|
340
336
|
rg_draw_glyphs(VALUE self, VALUE gc, VALUE font, VALUE x, VALUE y, VALUE glyphs)
|
@@ -345,7 +341,6 @@ rg_draw_glyphs(VALUE self, VALUE gc, VALUE font, VALUE x, VALUE y, VALUE glyphs)
|
|
345
341
|
return self;
|
346
342
|
}
|
347
343
|
|
348
|
-
#if GTK_CHECK_VERSION(2,6,0)
|
349
344
|
static VALUE
|
350
345
|
rg_draw_glyphs_transformed(VALUE self, VALUE gc, VALUE matrix, VALUE font, VALUE x, VALUE y, VALUE glyphs)
|
351
346
|
{
|
@@ -356,7 +351,6 @@ rg_draw_glyphs_transformed(VALUE self, VALUE gc, VALUE matrix, VALUE font, VALUE
|
|
356
351
|
(PangoGlyphString*)(RVAL2BOXED(glyphs, PANGO_TYPE_GLYPH_STRING)));
|
357
352
|
return self;
|
358
353
|
}
|
359
|
-
#endif
|
360
354
|
|
361
355
|
static VALUE
|
362
356
|
rg_draw_layout_line(int argc, VALUE *argv, VALUE self)
|
@@ -418,7 +412,6 @@ rg_get_image(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h)
|
|
418
412
|
NUM2INT(w), NUM2INT(h)));
|
419
413
|
}
|
420
414
|
|
421
|
-
#if GTK_CHECK_VERSION(2,4,0)
|
422
415
|
static VALUE
|
423
416
|
rg_copy_to_image(VALUE self, VALUE image, VALUE xsrc, VALUE ysrc, VALUE xdst, VALUE ydst, VALUE w, VALUE h)
|
424
417
|
{
|
@@ -428,7 +421,6 @@ rg_copy_to_image(VALUE self, VALUE image, VALUE xsrc, VALUE ysrc, VALUE xdst, VA
|
|
428
421
|
NUM2INT(xdst), NUM2INT(ydst),
|
429
422
|
NUM2INT(w), NUM2INT(h)));
|
430
423
|
}
|
431
|
-
#endif
|
432
424
|
|
433
425
|
#ifdef GDK_WINDOWING_X11
|
434
426
|
static VALUE
|
@@ -448,7 +440,6 @@ rg_handle(VALUE self)
|
|
448
440
|
}
|
449
441
|
#endif
|
450
442
|
|
451
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
452
443
|
static VALUE
|
453
444
|
rg_display(VALUE self)
|
454
445
|
{
|
@@ -460,10 +451,8 @@ rg_screen(VALUE self)
|
|
460
451
|
{
|
461
452
|
return GOBJ2RVAL(gdk_drawable_get_screen(_SELF(self)));
|
462
453
|
}
|
463
|
-
#endif
|
464
454
|
|
465
|
-
#
|
466
|
-
# ifdef HAVE_RB_CAIRO_H
|
455
|
+
#ifdef HAVE_RB_CAIRO_H
|
467
456
|
static VALUE
|
468
457
|
rg_create_cairo_context(VALUE self)
|
469
458
|
{
|
@@ -475,7 +464,6 @@ rg_create_cairo_context(VALUE self)
|
|
475
464
|
cairo_destroy (cr);
|
476
465
|
return rb_cr;
|
477
466
|
}
|
478
|
-
# endif
|
479
467
|
#endif
|
480
468
|
|
481
469
|
void
|
@@ -494,28 +482,20 @@ Init_gtk_gdk_draw(VALUE mGdk)
|
|
494
482
|
RG_DEF_METHOD(draw_points, 2);
|
495
483
|
RG_DEF_METHOD(draw_line, 5);
|
496
484
|
RG_DEF_METHOD(draw_lines, 2);
|
497
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
498
485
|
RG_DEF_METHOD(draw_pixbuf, 11);
|
499
|
-
#endif
|
500
486
|
RG_DEF_METHOD(draw_segments, 2);
|
501
487
|
RG_DEF_METHOD(draw_rectangle, 6);
|
502
488
|
RG_DEF_METHOD(draw_arc, 8);
|
503
489
|
RG_DEF_METHOD(draw_polygon, 3);
|
504
|
-
#if GTK_CHECK_VERSION(2,6,0)
|
505
490
|
RG_DEF_METHOD(draw_trapezoids, 2);
|
506
|
-
#endif
|
507
491
|
RG_DEF_METHOD(draw_glyphs, 5);
|
508
|
-
#if GTK_CHECK_VERSION(2,6,0)
|
509
492
|
RG_DEF_METHOD(draw_glyphs_transformed, 6);
|
510
|
-
#endif
|
511
493
|
RG_DEF_METHOD(draw_layout_line, -1);
|
512
494
|
RG_DEF_METHOD(draw_layout, -1);
|
513
495
|
RG_DEF_METHOD(draw_drawable, 8);
|
514
496
|
RG_DEF_METHOD(draw_image, 8);
|
515
497
|
RG_DEF_METHOD(get_image, 4);
|
516
|
-
#if GTK_CHECK_VERSION(2,4,0)
|
517
498
|
RG_DEF_METHOD(copy_to_image, 7);
|
518
|
-
#endif
|
519
499
|
|
520
500
|
#ifdef GDK_WINDOWING_X11
|
521
501
|
RG_DEF_METHOD(xid, 0);
|
@@ -523,15 +503,11 @@ Init_gtk_gdk_draw(VALUE mGdk)
|
|
523
503
|
#ifdef GDK_WINDOWING_WIN32
|
524
504
|
RG_DEF_METHOD(handle, 0);
|
525
505
|
#endif
|
526
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
527
506
|
RG_DEF_METHOD(display, 0);
|
528
507
|
RG_DEF_METHOD(screen, 0);
|
529
|
-
#endif
|
530
508
|
|
531
|
-
#
|
532
|
-
# ifdef HAVE_RB_CAIRO_H
|
509
|
+
#ifdef HAVE_RB_CAIRO_H
|
533
510
|
RG_DEF_METHOD(create_cairo_context, 0);
|
534
|
-
# endif
|
535
511
|
#endif
|
536
512
|
|
537
513
|
#ifdef GDK_WINDOWING_X11
|
data/ext/gtk2/rbgdkevent.c
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2002-2013 Ruby-GNOME2 Project Team
|
5
4
|
* Copyright (C) 1998-2000 Yukihiro Matsumoto,
|
6
5
|
* Daisuke Kanda,
|
7
6
|
* Hiroshi Igarashi
|
@@ -24,31 +23,356 @@
|
|
24
23
|
|
25
24
|
#include "global.h"
|
26
25
|
|
27
|
-
|
28
|
-
static VALUE
|
29
|
-
|
30
|
-
static VALUE
|
31
|
-
|
32
|
-
static VALUE
|
33
|
-
|
26
|
+
static VALUE rb_cGdkEvent;
|
27
|
+
static VALUE rb_cGdkEventAny;
|
28
|
+
static VALUE rb_cGdkEventExpose;
|
29
|
+
static VALUE rb_cGdkEventNoExpose;
|
30
|
+
static VALUE rb_cGdkEventVisibility;
|
31
|
+
static VALUE rb_cGdkEventMotion;
|
32
|
+
static VALUE rb_cGdkEventButton;
|
33
|
+
static VALUE rb_cGdkEventScroll;
|
34
|
+
static VALUE rb_cGdkEventKey;
|
35
|
+
static VALUE rb_cGdkEventCrossing;
|
36
|
+
static VALUE rb_cGdkEventFocus;
|
37
|
+
static VALUE rb_cGdkEventConfigure;
|
38
|
+
static VALUE rb_cGdkEventProperty;
|
39
|
+
static VALUE rb_cGdkEventSelection;
|
40
|
+
static VALUE rb_cGdkEventOwnerChange;
|
41
|
+
static VALUE rb_cGdkEventProximity;
|
42
|
+
static VALUE rb_cGdkEventClient;
|
43
|
+
static VALUE rb_cGdkEventDND;
|
44
|
+
static VALUE rb_cGdkEventWindowState;
|
45
|
+
static VALUE rb_cGdkEventSetting;
|
46
|
+
static VALUE rb_cGdkEventGrabBroken;
|
47
|
+
|
48
|
+
#define DEFINE_EVENT_TYPE(type_lower_case, type_upper_case) \
|
49
|
+
static GType \
|
50
|
+
rb_gdk_event_ ## type_lower_case ## _get_type(void) \
|
51
|
+
{ \
|
52
|
+
static GType type = 0; \
|
53
|
+
if (type == 0) { \
|
54
|
+
type = g_boxed_type_register_static("GdkEvent" # type_upper_case, \
|
55
|
+
(GBoxedCopyFunc)gdk_event_copy, \
|
56
|
+
(GBoxedFreeFunc)gdk_event_free); \
|
57
|
+
} \
|
58
|
+
return type; \
|
59
|
+
}
|
60
|
+
|
61
|
+
DEFINE_EVENT_TYPE(any, Any)
|
62
|
+
DEFINE_EVENT_TYPE(expose, Expose)
|
63
|
+
DEFINE_EVENT_TYPE(no_expose, NoExpose)
|
64
|
+
DEFINE_EVENT_TYPE(visibility, Visibility)
|
65
|
+
DEFINE_EVENT_TYPE(motion, Motion)
|
66
|
+
DEFINE_EVENT_TYPE(button, Button)
|
67
|
+
DEFINE_EVENT_TYPE(scroll, Scroll)
|
68
|
+
DEFINE_EVENT_TYPE(key, Key)
|
69
|
+
DEFINE_EVENT_TYPE(crossing, Crossing)
|
70
|
+
DEFINE_EVENT_TYPE(focus, Focus)
|
71
|
+
DEFINE_EVENT_TYPE(configure, Configure)
|
72
|
+
DEFINE_EVENT_TYPE(property, Property)
|
73
|
+
DEFINE_EVENT_TYPE(selection, Selection)
|
74
|
+
DEFINE_EVENT_TYPE(owner_change, OwnerChange)
|
75
|
+
DEFINE_EVENT_TYPE(proximity, Proximity)
|
76
|
+
DEFINE_EVENT_TYPE(client, Client)
|
77
|
+
DEFINE_EVENT_TYPE(dnd, DND)
|
78
|
+
DEFINE_EVENT_TYPE(window_state, WindowState)
|
79
|
+
DEFINE_EVENT_TYPE(setting, Setting)
|
80
|
+
DEFINE_EVENT_TYPE(grab_broken, GrabBroken)
|
81
|
+
|
82
|
+
#define GDK_TYPE_EVENT_ANY (rb_gdk_event_any_get_type())
|
83
|
+
#define GDK_TYPE_EVENT_EXPOSE (rb_gdk_event_expose_get_type())
|
84
|
+
#define GDK_TYPE_EVENT_NO_EXPOSE (rb_gdk_event_no_expose_get_type())
|
85
|
+
#define GDK_TYPE_EVENT_VISIBILITY (rb_gdk_event_visibility_get_type())
|
86
|
+
#define GDK_TYPE_EVENT_MOTION (rb_gdk_event_motion_get_type())
|
87
|
+
#define GDK_TYPE_EVENT_BUTTON (rb_gdk_event_button_get_type())
|
88
|
+
#define GDK_TYPE_EVENT_SCROLL (rb_gdk_event_scroll_get_type())
|
89
|
+
#define GDK_TYPE_EVENT_KEY (rb_gdk_event_key_get_type())
|
90
|
+
#define GDK_TYPE_EVENT_CROSSING (rb_gdk_event_crossing_get_type())
|
91
|
+
#define GDK_TYPE_EVENT_FOCUS (rb_gdk_event_focus_get_type())
|
92
|
+
#define GDK_TYPE_EVENT_CONFIGURE (rb_gdk_event_configure_get_type())
|
93
|
+
#define GDK_TYPE_EVENT_PROPERTY (rb_gdk_event_property_get_type())
|
94
|
+
#define GDK_TYPE_EVENT_SELECTION (rb_gdk_event_selection_get_type())
|
95
|
+
#define GDK_TYPE_EVENT_OWNER_CHANGE (rb_gdk_event_owner_change_get_type())
|
96
|
+
#define GDK_TYPE_EVENT_PROXIMITY (rb_gdk_event_proximity_get_type())
|
97
|
+
#define GDK_TYPE_EVENT_CLIENT (rb_gdk_event_client_get_type())
|
98
|
+
#define GDK_TYPE_EVENT_DND (rb_gdk_event_dnd_get_type())
|
99
|
+
#define GDK_TYPE_EVENT_WINDOW_STATE (rb_gdk_event_window_state_get_type())
|
100
|
+
#define GDK_TYPE_EVENT_SETTING (rb_gdk_event_setting_get_type())
|
101
|
+
#define GDK_TYPE_EVENT_GRAB_BROKEN (rb_gdk_event_grab_broken_get_type())
|
34
102
|
|
35
103
|
/***********************************************/
|
36
104
|
|
105
|
+
static GType
|
106
|
+
rb_gdk_event_type_to_gtype(GdkEventType event_type)
|
107
|
+
{
|
108
|
+
GType gtype = GDK_TYPE_EVENT_ANY;
|
109
|
+
|
110
|
+
switch (event_type) {
|
111
|
+
case GDK_NOTHING:
|
112
|
+
case GDK_DELETE:
|
113
|
+
case GDK_DESTROY:
|
114
|
+
break;
|
115
|
+
case GDK_EXPOSE:
|
116
|
+
gtype = GDK_TYPE_EVENT_EXPOSE;
|
117
|
+
break;
|
118
|
+
case GDK_MOTION_NOTIFY:
|
119
|
+
gtype = GDK_TYPE_EVENT_MOTION;
|
120
|
+
break;
|
121
|
+
case GDK_BUTTON_PRESS:
|
122
|
+
case GDK_2BUTTON_PRESS:
|
123
|
+
case GDK_3BUTTON_PRESS:
|
124
|
+
case GDK_BUTTON_RELEASE:
|
125
|
+
gtype = GDK_TYPE_EVENT_BUTTON;
|
126
|
+
break;
|
127
|
+
case GDK_KEY_PRESS:
|
128
|
+
case GDK_KEY_RELEASE:
|
129
|
+
gtype = GDK_TYPE_EVENT_KEY;
|
130
|
+
break;
|
131
|
+
case GDK_ENTER_NOTIFY:
|
132
|
+
case GDK_LEAVE_NOTIFY:
|
133
|
+
gtype = GDK_TYPE_EVENT_CROSSING;
|
134
|
+
break;
|
135
|
+
case GDK_FOCUS_CHANGE:
|
136
|
+
gtype = GDK_TYPE_EVENT_FOCUS;
|
137
|
+
break;
|
138
|
+
case GDK_CONFIGURE:
|
139
|
+
gtype = GDK_TYPE_EVENT_CONFIGURE;
|
140
|
+
break;
|
141
|
+
case GDK_MAP:
|
142
|
+
case GDK_UNMAP:
|
143
|
+
break;
|
144
|
+
case GDK_PROPERTY_NOTIFY:
|
145
|
+
gtype = GDK_TYPE_EVENT_PROPERTY;
|
146
|
+
break;
|
147
|
+
case GDK_SELECTION_CLEAR:
|
148
|
+
case GDK_SELECTION_REQUEST:
|
149
|
+
case GDK_SELECTION_NOTIFY:
|
150
|
+
gtype = GDK_TYPE_EVENT_SELECTION;
|
151
|
+
break;
|
152
|
+
case GDK_PROXIMITY_IN:
|
153
|
+
case GDK_PROXIMITY_OUT:
|
154
|
+
gtype = GDK_TYPE_EVENT_PROXIMITY;
|
155
|
+
break;
|
156
|
+
case GDK_DRAG_ENTER:
|
157
|
+
case GDK_DRAG_LEAVE:
|
158
|
+
case GDK_DRAG_MOTION:
|
159
|
+
case GDK_DRAG_STATUS:
|
160
|
+
case GDK_DROP_START:
|
161
|
+
case GDK_DROP_FINISHED:
|
162
|
+
gtype = GDK_TYPE_EVENT_DND;
|
163
|
+
break;
|
164
|
+
case GDK_CLIENT_EVENT:
|
165
|
+
gtype = GDK_TYPE_EVENT_CLIENT;
|
166
|
+
break;
|
167
|
+
case GDK_VISIBILITY_NOTIFY:
|
168
|
+
gtype = GDK_TYPE_EVENT_VISIBILITY;
|
169
|
+
break;
|
170
|
+
case GDK_NO_EXPOSE:
|
171
|
+
gtype = GDK_TYPE_EVENT_NO_EXPOSE;
|
172
|
+
break;
|
173
|
+
case GDK_SCROLL:
|
174
|
+
gtype = GDK_TYPE_EVENT_SCROLL;
|
175
|
+
break;
|
176
|
+
case GDK_WINDOW_STATE:
|
177
|
+
gtype = GDK_TYPE_EVENT_WINDOW_STATE;
|
178
|
+
break;
|
179
|
+
case GDK_SETTING:
|
180
|
+
gtype = GDK_TYPE_EVENT_SETTING;
|
181
|
+
break;
|
182
|
+
case GDK_OWNER_CHANGE:
|
183
|
+
gtype = GDK_TYPE_EVENT_OWNER_CHANGE;
|
184
|
+
break;
|
185
|
+
case GDK_GRAB_BROKEN:
|
186
|
+
gtype = GDK_TYPE_EVENT_GRAB_BROKEN;
|
187
|
+
break;
|
188
|
+
#if GTK_CHECK_VERSION(2, 14, 0)
|
189
|
+
case GDK_DAMAGE:
|
190
|
+
gtype = GDK_TYPE_EVENT_EXPOSE;
|
191
|
+
break;
|
192
|
+
#endif
|
193
|
+
#if GTK_CHECK_VERSION(2, 18, 0)
|
194
|
+
case GDK_EVENT_LAST:
|
195
|
+
break;
|
196
|
+
#endif
|
197
|
+
default:
|
198
|
+
break;
|
199
|
+
}
|
200
|
+
|
201
|
+
return gtype;
|
202
|
+
}
|
203
|
+
|
204
|
+
static VALUE
|
205
|
+
rb_gdk_event_type_to_class(GdkEventType event_type)
|
206
|
+
{
|
207
|
+
VALUE klass = Qnil;
|
208
|
+
|
209
|
+
switch (event_type) {
|
210
|
+
case GDK_NOTHING:
|
211
|
+
case GDK_DELETE:
|
212
|
+
case GDK_DESTROY:
|
213
|
+
break;
|
214
|
+
case GDK_EXPOSE:
|
215
|
+
klass = rb_cGdkEventExpose;
|
216
|
+
break;
|
217
|
+
case GDK_MOTION_NOTIFY:
|
218
|
+
klass = rb_cGdkEventMotion;
|
219
|
+
break;
|
220
|
+
case GDK_BUTTON_PRESS:
|
221
|
+
case GDK_2BUTTON_PRESS:
|
222
|
+
case GDK_3BUTTON_PRESS:
|
223
|
+
case GDK_BUTTON_RELEASE:
|
224
|
+
klass = rb_cGdkEventButton;
|
225
|
+
break;
|
226
|
+
case GDK_KEY_PRESS:
|
227
|
+
case GDK_KEY_RELEASE:
|
228
|
+
klass = rb_cGdkEventKey;
|
229
|
+
break;
|
230
|
+
case GDK_ENTER_NOTIFY:
|
231
|
+
case GDK_LEAVE_NOTIFY:
|
232
|
+
klass = rb_cGdkEventCrossing;
|
233
|
+
break;
|
234
|
+
case GDK_FOCUS_CHANGE:
|
235
|
+
klass = rb_cGdkEventFocus;
|
236
|
+
break;
|
237
|
+
case GDK_CONFIGURE:
|
238
|
+
klass = rb_cGdkEventConfigure;
|
239
|
+
break;
|
240
|
+
case GDK_MAP:
|
241
|
+
case GDK_UNMAP:
|
242
|
+
break;
|
243
|
+
case GDK_PROPERTY_NOTIFY:
|
244
|
+
klass = rb_cGdkEventProperty;
|
245
|
+
break;
|
246
|
+
case GDK_SELECTION_CLEAR:
|
247
|
+
case GDK_SELECTION_REQUEST:
|
248
|
+
case GDK_SELECTION_NOTIFY:
|
249
|
+
klass = rb_cGdkEventSelection;
|
250
|
+
break;
|
251
|
+
case GDK_PROXIMITY_IN:
|
252
|
+
case GDK_PROXIMITY_OUT:
|
253
|
+
klass = rb_cGdkEventProximity;
|
254
|
+
break;
|
255
|
+
case GDK_DRAG_ENTER:
|
256
|
+
case GDK_DRAG_LEAVE:
|
257
|
+
case GDK_DRAG_MOTION:
|
258
|
+
case GDK_DRAG_STATUS:
|
259
|
+
case GDK_DROP_START:
|
260
|
+
case GDK_DROP_FINISHED:
|
261
|
+
klass = rb_cGdkEventDND;
|
262
|
+
break;
|
263
|
+
case GDK_CLIENT_EVENT:
|
264
|
+
klass = rb_cGdkEventClient;
|
265
|
+
break;
|
266
|
+
case GDK_VISIBILITY_NOTIFY:
|
267
|
+
klass = rb_cGdkEventVisibility;
|
268
|
+
break;
|
269
|
+
case GDK_NO_EXPOSE:
|
270
|
+
klass = rb_cGdkEventNoExpose;
|
271
|
+
break;
|
272
|
+
case GDK_SCROLL:
|
273
|
+
klass = rb_cGdkEventScroll;
|
274
|
+
break;
|
275
|
+
case GDK_WINDOW_STATE:
|
276
|
+
klass = rb_cGdkEventWindowState;
|
277
|
+
break;
|
278
|
+
case GDK_SETTING:
|
279
|
+
klass = rb_cGdkEventSetting;
|
280
|
+
break;
|
281
|
+
case GDK_OWNER_CHANGE:
|
282
|
+
klass = rb_cGdkEventOwnerChange;
|
283
|
+
break;
|
284
|
+
case GDK_GRAB_BROKEN:
|
285
|
+
klass = rb_cGdkEventGrabBroken;
|
286
|
+
break;
|
287
|
+
#if GTK_CHECK_VERSION(2, 14, 0)
|
288
|
+
case GDK_DAMAGE:
|
289
|
+
klass = rb_cGdkEventExpose;
|
290
|
+
break;
|
291
|
+
#endif
|
292
|
+
#if GTK_CHECK_VERSION(2, 18, 0)
|
293
|
+
case GDK_EVENT_LAST:
|
294
|
+
break;
|
295
|
+
#endif
|
296
|
+
default:
|
297
|
+
break;
|
298
|
+
}
|
299
|
+
|
300
|
+
if (NIL_P(klass)) {
|
301
|
+
klass = rb_cGdkEventAny;
|
302
|
+
}
|
303
|
+
|
304
|
+
return klass;
|
305
|
+
}
|
306
|
+
|
307
|
+
static GType
|
308
|
+
rb_gdk_event_to_gtype(VALUE event)
|
309
|
+
{
|
310
|
+
VALUE klass;
|
311
|
+
GType type = GDK_TYPE_EVENT;
|
312
|
+
|
313
|
+
klass = rb_obj_class(event);
|
314
|
+
if (klass == rb_cGdkEvent) {
|
315
|
+
type = GDK_TYPE_EVENT;
|
316
|
+
} else if (klass == rb_cGdkEventAny) {
|
317
|
+
type = GDK_TYPE_EVENT_ANY;
|
318
|
+
} else if (klass == rb_cGdkEventExpose) {
|
319
|
+
type = GDK_TYPE_EVENT_EXPOSE;
|
320
|
+
} else if (klass == rb_cGdkEventNoExpose) {
|
321
|
+
type = GDK_TYPE_EVENT_NO_EXPOSE;
|
322
|
+
} else if (klass == rb_cGdkEventVisibility) {
|
323
|
+
type = GDK_TYPE_EVENT_VISIBILITY;
|
324
|
+
} else if (klass == rb_cGdkEventMotion) {
|
325
|
+
type = GDK_TYPE_EVENT_MOTION;
|
326
|
+
} else if (klass == rb_cGdkEventButton) {
|
327
|
+
type = GDK_TYPE_EVENT_BUTTON;
|
328
|
+
} else if (klass == rb_cGdkEventScroll) {
|
329
|
+
type = GDK_TYPE_EVENT_SCROLL;
|
330
|
+
} else if (klass == rb_cGdkEventKey) {
|
331
|
+
type = GDK_TYPE_EVENT_KEY;
|
332
|
+
} else if (klass == rb_cGdkEventCrossing) {
|
333
|
+
type = GDK_TYPE_EVENT_CROSSING;
|
334
|
+
} else if (klass == rb_cGdkEventFocus) {
|
335
|
+
type = GDK_TYPE_EVENT_FOCUS;
|
336
|
+
} else if (klass == rb_cGdkEventConfigure) {
|
337
|
+
type = GDK_TYPE_EVENT_CONFIGURE;
|
338
|
+
} else if (klass == rb_cGdkEventProperty) {
|
339
|
+
type = GDK_TYPE_EVENT_PROPERTY;
|
340
|
+
} else if (klass == rb_cGdkEventSelection) {
|
341
|
+
type = GDK_TYPE_EVENT_SELECTION;
|
342
|
+
} else if (klass == rb_cGdkEventOwnerChange) {
|
343
|
+
type = GDK_TYPE_EVENT_OWNER_CHANGE;
|
344
|
+
} else if (klass == rb_cGdkEventProximity) {
|
345
|
+
type = GDK_TYPE_EVENT_PROXIMITY;
|
346
|
+
} else if (klass == rb_cGdkEventClient) {
|
347
|
+
type = GDK_TYPE_EVENT_CLIENT;
|
348
|
+
} else if (klass == rb_cGdkEventDND) {
|
349
|
+
type = GDK_TYPE_EVENT_DND;
|
350
|
+
} else if (klass == rb_cGdkEventWindowState) {
|
351
|
+
type = GDK_TYPE_EVENT_WINDOW_STATE;
|
352
|
+
} else if (klass == rb_cGdkEventSetting) {
|
353
|
+
type = GDK_TYPE_EVENT_SETTING;
|
354
|
+
} else if (klass == rb_cGdkEventGrabBroken) {
|
355
|
+
type = GDK_TYPE_EVENT_GRAB_BROKEN;
|
356
|
+
} else {
|
357
|
+
rb_raise(rb_eArgError, "Not event object: %s", RBG_INSPECT(event));
|
358
|
+
}
|
359
|
+
|
360
|
+
return type;
|
361
|
+
}
|
362
|
+
|
37
363
|
VALUE
|
38
|
-
make_gdkevent(GdkEvent *
|
364
|
+
make_gdkevent(GdkEvent *event)
|
39
365
|
{
|
40
|
-
|
41
|
-
|
366
|
+
if (!event)
|
367
|
+
return Qnil;
|
42
368
|
|
43
|
-
|
44
|
-
RBASIC(obj)->klass = gdkevents[ev->type]; /* hack */
|
45
|
-
return obj;
|
369
|
+
return BOXED2RVAL(event, rb_gdk_event_type_to_gtype(event->any.type));
|
46
370
|
}
|
47
371
|
|
48
372
|
GdkEvent*
|
49
373
|
get_gdkevent(VALUE event)
|
50
374
|
{
|
51
|
-
return
|
375
|
+
return RVAL2BOXED(event, rb_gdk_event_to_gtype(event));
|
52
376
|
}
|
53
377
|
|
54
378
|
/***********************************************/
|
@@ -213,7 +537,6 @@ gdkevent ## type ## _set_axes(VALUE self, VALUE x, VALUE y)\
|
|
213
537
|
|
214
538
|
|
215
539
|
/* initialize */
|
216
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
217
540
|
#define GDKEVENT_INIT(type, default_gtype) \
|
218
541
|
static VALUE \
|
219
542
|
gdkevent ## type ## _initialize(int argc, VALUE *argv, VALUE self)\
|
@@ -231,15 +554,6 @@ gdkevent ## type ## _initialize(int argc, VALUE *argv, VALUE self)\
|
|
231
554
|
G_INITIALIZE(self, gdk_event_new(gtype));\
|
232
555
|
return Qnil;\
|
233
556
|
}
|
234
|
-
#else
|
235
|
-
#define GDKEVENT_INIT(type, default_gtype) \
|
236
|
-
static VALUE \
|
237
|
-
gdkevent ## type ## _initialize(int argc, VALUE *argv, VALUE self)\
|
238
|
-
{\
|
239
|
-
rb_raise(rb_eRuntimeError, "Gdk::Event.new is not supported in this environment.");\
|
240
|
-
return Qnil;\
|
241
|
-
}
|
242
|
-
#endif
|
243
557
|
|
244
558
|
#define DEFINE_INIT(event, type) \
|
245
559
|
rb_define_method(event, "initialize", gdkevent ## type ## _initialize, -1);
|
@@ -272,18 +586,22 @@ gdkevent_s_get_graphics_expose(G_GNUC_UNUSED VALUE self, VALUE window)
|
|
272
586
|
}
|
273
587
|
|
274
588
|
/* GdkEvent */
|
275
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
276
589
|
static VALUE
|
277
590
|
gdkevent_initialize(VALUE self, VALUE type)
|
278
591
|
{
|
279
|
-
GdkEventType
|
280
|
-
|
281
|
-
|
592
|
+
GdkEventType event_type;
|
593
|
+
VALUE klass;
|
594
|
+
|
595
|
+
event_type = RVAL2GENUM(type, GDK_TYPE_EVENT_TYPE);
|
596
|
+
klass = rb_gdk_event_type_to_class(event_type);
|
597
|
+
if (!RVAL2CBOOL(rb_obj_is_kind_of(self, klass))) {
|
598
|
+
rb_raise(rb_eArgError, "Wrong event type for this class: %s: %s",
|
599
|
+
RBG_INSPECT(type), RBG_INSPECT(klass));
|
600
|
+
}
|
282
601
|
|
283
|
-
G_INITIALIZE(self, gdk_event_new(
|
602
|
+
G_INITIALIZE(self, gdk_event_new(event_type));
|
284
603
|
return Qnil;
|
285
604
|
}
|
286
|
-
#endif
|
287
605
|
|
288
606
|
static VALUE
|
289
607
|
gdkevent_type(VALUE self)
|
@@ -308,7 +626,7 @@ static VALUE
|
|
308
626
|
gdkevent_get_axis(VALUE self, VALUE axis_use)
|
309
627
|
{
|
310
628
|
gdouble value;
|
311
|
-
gboolean ret = gdk_event_get_axis(get_gdkevent(self),
|
629
|
+
gboolean ret = gdk_event_get_axis(get_gdkevent(self),
|
312
630
|
RVAL2GENUM(axis_use, GDK_TYPE_AXIS_USE), &value);
|
313
631
|
return ret ? rb_float_new(value) : Qnil;
|
314
632
|
}
|
@@ -359,7 +677,7 @@ gdkevent_s_set_show_events(VALUE self, VALUE show_events)
|
|
359
677
|
gdk_set_show_events(RVAL2CBOOL(show_events));
|
360
678
|
return self;
|
361
679
|
}
|
362
|
-
|
680
|
+
|
363
681
|
static VALUE
|
364
682
|
gdkevent_set_screen(VALUE self, VALUE screen)
|
365
683
|
{
|
@@ -372,7 +690,6 @@ gdkevent_screen(VALUE self)
|
|
372
690
|
{
|
373
691
|
return GOBJ2RVAL(gdk_event_get_screen(get_gdkevent(self)));
|
374
692
|
}
|
375
|
-
#endif
|
376
693
|
|
377
694
|
/*
|
378
695
|
type: String, Integer, Gdk::Color.
|
@@ -460,16 +777,16 @@ gdkeventexpose_area(VALUE self)
|
|
460
777
|
{
|
461
778
|
return BOXED2RVAL(&get_gdkevent(self)->expose.area, GDK_TYPE_RECTANGLE);
|
462
779
|
}
|
463
|
-
|
780
|
+
|
464
781
|
static VALUE
|
465
782
|
gdkeventexpose_set_area(VALUE self, VALUE rect)
|
466
783
|
{
|
467
784
|
GdkRectangle* grect = (GdkRectangle*)RVAL2BOXED(rect, GDK_TYPE_RECTANGLE);
|
468
|
-
GdkEventExpose event = get_gdkevent(self)->expose;
|
469
|
-
event
|
470
|
-
event
|
471
|
-
event
|
472
|
-
event
|
785
|
+
GdkEventExpose *event = &(get_gdkevent(self)->expose);
|
786
|
+
event->area.x = grect->x;
|
787
|
+
event->area.y = grect->y;
|
788
|
+
event->area.width = grect->width;
|
789
|
+
event->area.height = grect->height;
|
473
790
|
return self;
|
474
791
|
}
|
475
792
|
|
@@ -556,7 +873,7 @@ gdkeventclient_data(VALUE self)
|
|
556
873
|
gushort format = get_gdkevent(self)->client.data_format;
|
557
874
|
|
558
875
|
if (format == 8) {
|
559
|
-
ary = rb_ary_new2(20);
|
876
|
+
ary = rb_ary_new2(20);
|
560
877
|
for (i = 0; i < 20; i++)
|
561
878
|
rb_ary_push(ary, INT2FIX(get_gdkevent(self)->client.data.b[i]));
|
562
879
|
} else if (format == 16) {
|
@@ -582,15 +899,10 @@ gdkeventclient_send_client_message(int argc, VALUE *argv, VALUE self)
|
|
582
899
|
return CBOOL2RVAL(gdk_event_send_client_message(
|
583
900
|
get_gdkevent(self), RVAL2GDKNATIVEWINDOW(xid)));
|
584
901
|
} else {
|
585
|
-
#if GTK_CHECK_VERSION(2,2,0)
|
586
902
|
return CBOOL2RVAL(gdk_event_send_client_message_for_display(
|
587
903
|
GDK_DISPLAY_OBJECT(RVAL2GOBJ(display)),
|
588
904
|
get_gdkevent(self),
|
589
905
|
RVAL2GDKNATIVEWINDOW(xid)));
|
590
|
-
#else
|
591
|
-
rb_warn("this arguments number has been supported since 2.2");
|
592
|
-
return Qfalse;
|
593
|
-
#endif
|
594
906
|
}
|
595
907
|
}
|
596
908
|
|
@@ -632,25 +944,21 @@ ATTR_STR(setting, name);
|
|
632
944
|
GDKEVENT_INIT(setting, GDK_SETTING);
|
633
945
|
|
634
946
|
/* GdkEventOwnerChange */
|
635
|
-
#if GTK_CHECK_VERSION(2,6,0)
|
636
947
|
ATTR_GDKNATIVEWINDOW(owner_change, owner);
|
637
948
|
ATTR_ENUM(owner_change, reason, GDK_TYPE_OWNER_CHANGE);
|
638
949
|
ATTR_ATOM(owner_change, selection);
|
639
950
|
ATTR_UINT(owner_change, time);
|
640
951
|
ATTR_UINT(owner_change, selection_time);
|
641
952
|
GDKEVENT_INIT(owner_change, GDK_OWNER_CHANGE);
|
642
|
-
#endif
|
643
953
|
|
644
954
|
/* GdkEventGrabBroken */
|
645
|
-
#if GTK_CHECK_VERSION(2,8,0)
|
646
955
|
ATTR_BOOL(grab_broken, keyboard);
|
647
956
|
ATTR_BOOL(grab_broken, implicit);
|
648
957
|
ATTR_GOBJ(grab_broken, grab_window);
|
649
958
|
GDKEVENT_INIT(grab_broken, GDK_GRAB_BROKEN);
|
650
|
-
#endif
|
651
959
|
|
652
960
|
/* MISC */
|
653
|
-
static VALUE
|
961
|
+
static VALUE
|
654
962
|
gdkevent_g2r(const GValue *values)
|
655
963
|
{
|
656
964
|
return make_gdkevent(g_value_get_boxed(&values[0]));
|
@@ -659,323 +967,322 @@ gdkevent_g2r(const GValue *values)
|
|
659
967
|
void
|
660
968
|
Init_gtk_gdk_event(VALUE mGdk)
|
661
969
|
{
|
662
|
-
VALUE ev;
|
663
|
-
VALUE gdkEvent;
|
664
|
-
VALUE gdkEventAny;
|
665
|
-
|
666
|
-
gdkEvent = G_DEF_CLASS(GDK_TYPE_EVENT, "Event", mGdk);
|
667
|
-
gdkEventAny = rb_define_class_under(mGdk, "EventAny", gdkEvent);
|
668
|
-
|
669
|
-
gdkevents[GDK_DELETE] = gdkEventAny;
|
670
|
-
gdkevents[GDK_DESTROY] = gdkEventAny;
|
671
|
-
gdkevents[GDK_EXPOSE] = rb_define_class_under(mGdk, "EventExpose", gdkEventAny);
|
672
|
-
gdkevents[GDK_MOTION_NOTIFY] = rb_define_class_under(mGdk, "EventMotion", gdkEventAny);
|
673
|
-
gdkevents[GDK_BUTTON_PRESS] = rb_define_class_under(mGdk, "EventButton", gdkEventAny);
|
674
|
-
gdkevents[GDK_2BUTTON_PRESS] = gdkevents[GDK_BUTTON_PRESS];
|
675
|
-
gdkevents[GDK_3BUTTON_PRESS] = gdkevents[GDK_BUTTON_PRESS];
|
676
|
-
gdkevents[GDK_BUTTON_RELEASE]= gdkevents[GDK_BUTTON_PRESS];
|
677
|
-
gdkevents[GDK_KEY_PRESS] = rb_define_class_under(mGdk, "EventKey", gdkEventAny);
|
678
|
-
gdkevents[GDK_KEY_RELEASE] = gdkevents[GDK_KEY_PRESS];
|
679
|
-
gdkevents[GDK_ENTER_NOTIFY] = rb_define_class_under(mGdk, "EventCrossing", gdkEventAny);
|
680
|
-
gdkevents[GDK_LEAVE_NOTIFY] = gdkevents[GDK_ENTER_NOTIFY];
|
681
|
-
gdkevents[GDK_FOCUS_CHANGE] = rb_define_class_under(mGdk, "EventFocus", gdkEventAny);
|
682
|
-
gdkevents[GDK_CONFIGURE] = rb_define_class_under(mGdk, "EventConfigure", gdkEventAny);
|
683
|
-
gdkevents[GDK_MAP] = gdkEventAny;
|
684
|
-
gdkevents[GDK_UNMAP] = gdkEventAny;
|
685
|
-
gdkevents[GDK_PROPERTY_NOTIFY]= rb_define_class_under(mGdk, "EventProperty", gdkEventAny);
|
686
|
-
gdkevents[GDK_SELECTION_CLEAR]= rb_define_class_under(mGdk, "EventSelection", gdkEventAny);
|
687
|
-
gdkevents[GDK_SELECTION_REQUEST]= gdkevents[GDK_SELECTION_CLEAR];
|
688
|
-
gdkevents[GDK_SELECTION_NOTIFY] = gdkevents[GDK_SELECTION_CLEAR];
|
689
|
-
gdkevents[GDK_PROXIMITY_IN] = rb_define_class_under(mGdk, "EventProximity", gdkEventAny);
|
690
|
-
gdkevents[GDK_PROXIMITY_OUT] = gdkevents[GDK_PROXIMITY_IN];
|
691
|
-
gdkevents[GDK_DRAG_ENTER] = rb_define_class_under(mGdk, "EventDND", gdkEventAny);
|
692
|
-
gdkevents[GDK_DRAG_LEAVE] = gdkevents[GDK_DRAG_ENTER];
|
693
|
-
gdkevents[GDK_DRAG_MOTION] = gdkevents[GDK_DRAG_ENTER];
|
694
|
-
gdkevents[GDK_DRAG_STATUS] = gdkevents[GDK_DRAG_ENTER];
|
695
|
-
gdkevents[GDK_DROP_START] = gdkevents[GDK_DRAG_ENTER];
|
696
|
-
gdkevents[GDK_DROP_FINISHED] = gdkevents[GDK_DRAG_ENTER];
|
697
|
-
gdkevents[GDK_CLIENT_EVENT] = rb_define_class_under(mGdk, "EventClient", gdkEventAny);
|
698
|
-
gdkevents[GDK_VISIBILITY_NOTIFY] = rb_define_class_under(mGdk, "EventVisibility", gdkEventAny);
|
699
|
-
gdkevents[GDK_NO_EXPOSE] = rb_define_class_under(mGdk, "EventNoExpose", gdkEventAny);
|
700
|
-
gdkevents[GDK_SCROLL] = rb_define_class_under(mGdk, "EventScroll", gdkEventAny);
|
701
|
-
gdkevents[GDK_WINDOW_STATE] = rb_define_class_under(mGdk, "EventWindowState", gdkEventAny);
|
702
|
-
gdkevents[GDK_SETTING] = rb_define_class_under(mGdk, "EventSetting", gdkEventAny);
|
703
|
-
#if GTK_CHECK_VERSION(2,6,0)
|
704
|
-
gdkevents[GDK_OWNER_CHANGE] = rb_define_class_under(mGdk, "EventOwnerChange", gdkEventAny);
|
705
|
-
#endif
|
706
|
-
#if GTK_CHECK_VERSION(2,8,0)
|
707
|
-
gdkevents[GDK_GRAB_BROKEN] = rb_define_class_under(mGdk, "EventGrabBroken", gdkEventAny);
|
708
|
-
#endif
|
709
|
-
|
710
970
|
/* GdkEvent */
|
711
|
-
|
712
|
-
rb_define_method(
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
rb_define_singleton_method(
|
717
|
-
rb_define_singleton_method(
|
718
|
-
|
719
|
-
rb_define_method(
|
720
|
-
rb_define_method(
|
721
|
-
rb_define_method(
|
722
|
-
|
723
|
-
|
724
|
-
rb_define_singleton_method(
|
725
|
-
rb_define_singleton_method(
|
726
|
-
rb_define_singleton_method(
|
727
|
-
rb_define_singleton_method(
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
971
|
+
rb_cGdkEvent = G_DEF_CLASS(GDK_TYPE_EVENT, "Event", mGdk);
|
972
|
+
rb_define_method(rb_cGdkEvent, "initialize", gdkevent_initialize, 1);
|
973
|
+
rb_define_method(rb_cGdkEvent, "event_type", gdkevent_type, 0);
|
974
|
+
|
975
|
+
rb_define_singleton_method(rb_cGdkEvent, "events_pending?", gdkevent_s_events_pending, 0);
|
976
|
+
rb_define_singleton_method(rb_cGdkEvent, "peek", gdkevent_s_peek, 0);
|
977
|
+
rb_define_singleton_method(rb_cGdkEvent, "get", gdkevent_s_get, 0);
|
978
|
+
rb_define_method(rb_cGdkEvent, "put", gdkevent_put, 0);
|
979
|
+
rb_define_method(rb_cGdkEvent, "get_axis", gdkevent_get_axis, 1);
|
980
|
+
rb_define_method(rb_cGdkEvent, "coords", gdkevent_get_coords, 0);
|
981
|
+
rb_define_method(rb_cGdkEvent, "root_coords", gdkevent_get_root_coords, 0);
|
982
|
+
|
983
|
+
rb_define_singleton_method(rb_cGdkEvent, "handler_set", gdkevent_s_handler_set, 0);
|
984
|
+
rb_define_singleton_method(rb_cGdkEvent, "show_events?", gdkevent_s_get_show_events, 0);
|
985
|
+
rb_define_singleton_method(rb_cGdkEvent, "set_show_events", gdkevent_s_set_show_events, 1);
|
986
|
+
rb_define_singleton_method(rb_cGdkEvent, "setting_get", gdkevent_s_setting_get, -1);
|
987
|
+
rb_define_singleton_method(rb_cGdkEvent, "add_client_message_filter", gdkevent_s_add_client_message_filter, 1);
|
988
|
+
rb_define_method(rb_cGdkEvent, "screen", gdkevent_screen, 0);
|
989
|
+
rb_define_method(rb_cGdkEvent, "set_screen", gdkevent_set_screen, 1);
|
990
|
+
G_DEF_SETTERS(rb_cGdkEvent);
|
991
|
+
|
992
|
+
/*
|
993
|
+
* GdkEvent's Constants
|
994
|
+
*/
|
995
|
+
rb_define_const(rb_cGdkEvent, "CURRENT_TIME", INT2FIX(GDK_CURRENT_TIME));
|
996
|
+
rb_define_const(rb_cGdkEvent, "PRIORITY_EVENTS", INT2FIX(GDK_PRIORITY_EVENTS));
|
997
|
+
rb_define_const(rb_cGdkEvent, "PRIORITY_REDRAW", INT2FIX(GDK_PRIORITY_REDRAW));
|
998
|
+
|
999
|
+
/* GdkEventType */
|
1000
|
+
/* XXX */
|
1001
|
+
G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
|
1002
|
+
G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
|
1003
|
+
G_DEF_CLASS(GDK_TYPE_EVENT_TYPE, "Type", rb_cGdkEvent);
|
1004
|
+
G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
|
1005
|
+
G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
|
1006
|
+
G_DEF_CONSTANTS(rb_cGdkEvent, GDK_TYPE_EVENT_TYPE, "GDK_");
|
1007
|
+
|
1008
|
+
/* GdkEventMask */
|
1009
|
+
G_DEF_CLASS(GDK_TYPE_EVENT_MASK, "Mask", rb_cGdkEvent);
|
1010
|
+
G_DEF_CONSTANTS(rb_cGdkEvent, GDK_TYPE_EVENT_MASK, "GDK_");
|
734
1011
|
|
735
1012
|
/* GdkEventAny */
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
1013
|
+
rb_cGdkEventAny =
|
1014
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_ANY, "EventAny",
|
1015
|
+
mGdk, rb_cGdkEvent);
|
1016
|
+
DEFINE_ACCESSOR(rb_cGdkEventAny, any, window);
|
1017
|
+
rb_define_method(rb_cGdkEventAny, "send_event?", gdkeventany_send_event, 0);
|
1018
|
+
rb_define_method(rb_cGdkEventAny, "set_send_event", gdkeventany_set_send_event, 1);
|
1019
|
+
G_DEF_SETTERS(rb_cGdkEventAny);
|
740
1020
|
|
741
|
-
/*
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
DEFINE_ACCESSOR(
|
746
|
-
DEFINE_ACCESSOR(
|
747
|
-
DEFINE_ACCESSOR(
|
748
|
-
|
1021
|
+
/* GdkEventExpose */
|
1022
|
+
rb_cGdkEventExpose =
|
1023
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_EXPOSE, "EventExpose",
|
1024
|
+
mGdk, rb_cGdkEvent);
|
1025
|
+
DEFINE_ACCESSOR(rb_cGdkEventExpose, expose, area);
|
1026
|
+
DEFINE_ACCESSOR(rb_cGdkEventExpose, expose, region);
|
1027
|
+
DEFINE_ACCESSOR(rb_cGdkEventExpose, expose, count);
|
1028
|
+
DEFINE_INIT(rb_cGdkEventExpose, expose);
|
1029
|
+
rb_define_singleton_method(rb_cGdkEventExpose, "get_graphics_expose",
|
1030
|
+
gdkevent_s_get_graphics_expose, 1);
|
1031
|
+
G_DEF_SETTERS(rb_cGdkEventExpose);
|
749
1032
|
|
750
|
-
/*
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
rb_define_method(ev, "axes", gdkeventbutton_axes, 0);
|
756
|
-
rb_define_method(ev, "set_axes", gdkeventbutton_set_axes, 2);
|
757
|
-
DEFINE_ACCESSOR(ev, button, state);
|
758
|
-
DEFINE_ACCESSOR(ev, button, button);
|
759
|
-
DEFINE_ACCESSOR(ev, button, device);
|
760
|
-
DEFINE_ACCESSOR(ev, button, x_root);
|
761
|
-
DEFINE_ACCESSOR(ev, button, y_root);
|
762
|
-
G_DEF_SETTERS(ev);
|
1033
|
+
/* GdkEventNoExpose */
|
1034
|
+
rb_cGdkEventNoExpose =
|
1035
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_NO_EXPOSE, "EventNoExpose",
|
1036
|
+
mGdk, rb_cGdkEvent);
|
1037
|
+
DEFINE_INIT(rb_cGdkEventNoExpose, noexpose);
|
763
1038
|
|
764
|
-
/*
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
DEFINE_ACCESSOR(
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
1039
|
+
/* GdkEventVisibility */
|
1040
|
+
rb_cGdkEventVisibility =
|
1041
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_VISIBILITY, "EventVisibility",
|
1042
|
+
mGdk, rb_cGdkEvent);
|
1043
|
+
DEFINE_ACCESSOR(rb_cGdkEventVisibility, visibility, state);
|
1044
|
+
DEFINE_INIT(rb_cGdkEventVisibility, visibility);
|
1045
|
+
G_DEF_SETTERS(rb_cGdkEventVisibility);
|
1046
|
+
|
1047
|
+
/* GdkVisibilityState */
|
1048
|
+
G_DEF_CLASS(GDK_TYPE_VISIBILITY_STATE, "State", rb_cGdkEventVisibility);
|
1049
|
+
G_DEF_CONSTANTS(rb_cGdkEventVisibility,
|
1050
|
+
GDK_TYPE_VISIBILITY_STATE, "GDK_VISIBILITY_");
|
776
1051
|
|
777
|
-
/* GdkScrollDirection */
|
778
|
-
G_DEF_CLASS(GDK_TYPE_SCROLL_DIRECTION, "Direction", ev);
|
779
|
-
G_DEF_CONSTANTS(ev, GDK_TYPE_SCROLL_DIRECTION, "GDK_SCROLL_");
|
780
1052
|
|
781
1053
|
/* GdkEventMotion */
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
DEFINE_ACCESSOR(
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
rb_define_method(
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
DEFINE_ACCESSOR(
|
794
|
-
|
1054
|
+
rb_cGdkEventMotion =
|
1055
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_MOTION, "EventMotion",
|
1056
|
+
mGdk, rb_cGdkEvent);
|
1057
|
+
DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, time);
|
1058
|
+
DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, x);
|
1059
|
+
DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, y);
|
1060
|
+
rb_define_method(rb_cGdkEventMotion, "axes", gdkeventmotion_axes, 0);
|
1061
|
+
rb_define_method(rb_cGdkEventMotion, "set_axes", gdkeventmotion_set_axes, 1);
|
1062
|
+
DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, state);
|
1063
|
+
rb_define_method(rb_cGdkEventMotion, "hint?", gdkeventmotion_is_hint, 0);
|
1064
|
+
rb_define_method(rb_cGdkEventMotion, "set_hint", gdkeventmotion_set_is_hint, 1);
|
1065
|
+
DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, device);
|
1066
|
+
DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, x_root);
|
1067
|
+
DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, y_root);
|
1068
|
+
DEFINE_INIT(rb_cGdkEventMotion, motion);
|
795
1069
|
#if GTK_CHECK_VERSION(2, 12, 0)
|
796
|
-
rb_define_method(
|
1070
|
+
rb_define_method(rb_cGdkEventMotion, "request", gdkeventmotion_request_motions, 0);
|
797
1071
|
#endif
|
798
|
-
G_DEF_SETTERS(
|
1072
|
+
G_DEF_SETTERS(rb_cGdkEventMotion);
|
799
1073
|
|
800
|
-
/*
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
DEFINE_ACCESSOR(
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
1074
|
+
/* GdkEventButton */
|
1075
|
+
rb_cGdkEventButton =
|
1076
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_BUTTON, "EventButton",
|
1077
|
+
mGdk, rb_cGdkEvent);
|
1078
|
+
DEFINE_ACCESSOR(rb_cGdkEventButton, button, time);
|
1079
|
+
DEFINE_ACCESSOR(rb_cGdkEventButton, button, x);
|
1080
|
+
DEFINE_ACCESSOR(rb_cGdkEventButton, button, y);
|
1081
|
+
rb_define_method(rb_cGdkEventButton, "axes", gdkeventbutton_axes, 0);
|
1082
|
+
rb_define_method(rb_cGdkEventButton, "set_axes", gdkeventbutton_set_axes, 2);
|
1083
|
+
DEFINE_ACCESSOR(rb_cGdkEventButton, button, state);
|
1084
|
+
DEFINE_ACCESSOR(rb_cGdkEventButton, button, button);
|
1085
|
+
DEFINE_ACCESSOR(rb_cGdkEventButton, button, device);
|
1086
|
+
DEFINE_ACCESSOR(rb_cGdkEventButton, button, x_root);
|
1087
|
+
DEFINE_ACCESSOR(rb_cGdkEventButton, button, y_root);
|
1088
|
+
G_DEF_SETTERS(rb_cGdkEventButton);
|
809
1089
|
|
810
|
-
/*
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
1090
|
+
/* GdkEventScroll */
|
1091
|
+
rb_cGdkEventScroll =
|
1092
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_SCROLL, "EventScroll",
|
1093
|
+
mGdk, rb_cGdkEvent);
|
1094
|
+
DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, time);
|
1095
|
+
DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, x);
|
1096
|
+
DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, y);
|
1097
|
+
DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, state);
|
1098
|
+
DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, direction);
|
1099
|
+
DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, device);
|
1100
|
+
DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, x_root);
|
1101
|
+
DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, y_root);
|
1102
|
+
DEFINE_INIT(rb_cGdkEventScroll, scroll);
|
1103
|
+
G_DEF_SETTERS(rb_cGdkEventScroll);
|
815
1104
|
|
816
|
-
/*
|
817
|
-
G_DEF_CLASS(
|
818
|
-
G_DEF_CONSTANTS(
|
1105
|
+
/* GdkScrollDirection */
|
1106
|
+
G_DEF_CLASS(GDK_TYPE_SCROLL_DIRECTION, "Direction", rb_cGdkEventScroll);
|
1107
|
+
G_DEF_CONSTANTS(rb_cGdkEventScroll,
|
1108
|
+
GDK_TYPE_SCROLL_DIRECTION, "GDK_SCROLL_");
|
1109
|
+
|
1110
|
+
/* GdkEventKey */
|
1111
|
+
rb_cGdkEventKey =
|
1112
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_KEY, "EventKey",
|
1113
|
+
mGdk, rb_cGdkEvent);
|
1114
|
+
DEFINE_ACCESSOR(rb_cGdkEventKey, key, time);
|
1115
|
+
DEFINE_ACCESSOR(rb_cGdkEventKey, key, state);
|
1116
|
+
DEFINE_ACCESSOR(rb_cGdkEventKey, key, keyval);
|
1117
|
+
DEFINE_ACCESSOR(rb_cGdkEventKey, key, hardware_keycode);
|
1118
|
+
DEFINE_ACCESSOR(rb_cGdkEventKey, key, group);
|
1119
|
+
G_DEF_SETTERS(rb_cGdkEventKey);
|
819
1120
|
|
820
1121
|
/* GdkEventCrossing */
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
DEFINE_ACCESSOR(
|
825
|
-
DEFINE_ACCESSOR(
|
826
|
-
DEFINE_ACCESSOR(
|
827
|
-
DEFINE_ACCESSOR(
|
828
|
-
DEFINE_ACCESSOR(
|
829
|
-
DEFINE_ACCESSOR(
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
1122
|
+
rb_cGdkEventCrossing =
|
1123
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_CROSSING, "EventCrossing",
|
1124
|
+
mGdk, rb_cGdkEvent);
|
1125
|
+
DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, subwindow);
|
1126
|
+
DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, time);
|
1127
|
+
DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, x);
|
1128
|
+
DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, y);
|
1129
|
+
DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, x_root);
|
1130
|
+
DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, y_root);
|
1131
|
+
DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, mode);
|
1132
|
+
DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, detail);
|
1133
|
+
rb_define_method(rb_cGdkEventCrossing, "focus?", gdkeventcrossing_focus, 0);
|
1134
|
+
rb_define_method(rb_cGdkEventCrossing, "set_focus", gdkeventcrossing_set_focus, 1);
|
1135
|
+
DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, state);
|
1136
|
+
G_DEF_SETTERS(rb_cGdkEventCrossing);
|
834
1137
|
|
835
1138
|
/* GdkCrossingMode */
|
836
|
-
G_DEF_CLASS(GDK_TYPE_CROSSING_MODE, "Mode",
|
837
|
-
G_DEF_CONSTANTS(
|
1139
|
+
G_DEF_CLASS(GDK_TYPE_CROSSING_MODE, "Mode", rb_cGdkEventScroll);
|
1140
|
+
G_DEF_CONSTANTS(rb_cGdkEventCrossing,
|
1141
|
+
GDK_TYPE_CROSSING_MODE, "GDK_CROSSING_");
|
1142
|
+
|
838
1143
|
/* GdkNotifyType */
|
839
|
-
G_DEF_CLASS(GDK_TYPE_NOTIFY_TYPE, "NotifyType",
|
840
|
-
G_DEF_CONSTANTS(
|
1144
|
+
G_DEF_CLASS(GDK_TYPE_NOTIFY_TYPE, "NotifyType", rb_cGdkEventScroll);
|
1145
|
+
G_DEF_CONSTANTS(rb_cGdkEventScroll, GDK_TYPE_NOTIFY_TYPE, "GDK_");
|
841
1146
|
|
842
1147
|
/* GdkEventFocus */
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
1148
|
+
rb_cGdkEventFocus =
|
1149
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_FOCUS, "EventFocus",
|
1150
|
+
mGdk, rb_cGdkEvent);
|
1151
|
+
rb_define_method(rb_cGdkEventFocus, "in?", gdkeventfocus_change_in, 0);
|
1152
|
+
rb_define_method(rb_cGdkEventFocus, "set_in",
|
1153
|
+
gdkeventfocus_change_set_in, 1);
|
1154
|
+
DEFINE_INIT(rb_cGdkEventFocus, focus_change);
|
1155
|
+
G_DEF_SETTERS(rb_cGdkEventFocus);
|
848
1156
|
|
849
1157
|
/* GdkEventConfigure */
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
DEFINE_ACCESSOR(
|
854
|
-
DEFINE_ACCESSOR(
|
855
|
-
|
856
|
-
|
1158
|
+
rb_cGdkEventConfigure =
|
1159
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_CONFIGURE, "EventConfigure",
|
1160
|
+
mGdk, rb_cGdkEvent);
|
1161
|
+
DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, x);
|
1162
|
+
DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, y);
|
1163
|
+
DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, width);
|
1164
|
+
DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, height);
|
1165
|
+
DEFINE_INIT(rb_cGdkEventConfigure, configure);
|
1166
|
+
G_DEF_SETTERS(rb_cGdkEventConfigure);
|
857
1167
|
|
858
1168
|
/* GdkEventProperty */
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
DEFINE_ACCESSOR(
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
1169
|
+
rb_cGdkEventProperty =
|
1170
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_PROPERTY, "EventProperty",
|
1171
|
+
mGdk, rb_cGdkEvent);
|
1172
|
+
DEFINE_ACCESSOR(rb_cGdkEventProperty, property, atom);
|
1173
|
+
DEFINE_ACCESSOR(rb_cGdkEventProperty, property, time);
|
1174
|
+
DEFINE_ACCESSOR(rb_cGdkEventProperty, property, state);
|
1175
|
+
DEFINE_INIT(rb_cGdkEventProperty, property);
|
1176
|
+
G_DEF_SETTERS(rb_cGdkEventProperty);
|
1177
|
+
|
1178
|
+
/* GdkPropertyState */
|
1179
|
+
G_DEF_CLASS(GDK_TYPE_PROPERTY_STATE, "State", rb_cGdkEventProperty);
|
1180
|
+
G_DEF_CONSTANTS(rb_cGdkEventProperty, GDK_TYPE_PROPERTY_STATE, "GDK_");
|
869
1181
|
|
870
1182
|
/* GdkEventSelection */
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
DEFINE_ACCESSOR(
|
875
|
-
DEFINE_ACCESSOR(
|
876
|
-
DEFINE_ACCESSOR(
|
877
|
-
|
1183
|
+
rb_cGdkEventSelection =
|
1184
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_SELECTION, "EventSelection",
|
1185
|
+
mGdk, rb_cGdkEvent);
|
1186
|
+
DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, selection);
|
1187
|
+
DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, target);
|
1188
|
+
DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, property);
|
1189
|
+
DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, requestor);
|
1190
|
+
DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, time);
|
1191
|
+
G_DEF_SETTERS(rb_cGdkEventSelection);
|
878
1192
|
|
879
|
-
/*
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
DEFINE_ACCESSOR(
|
884
|
-
DEFINE_ACCESSOR(
|
885
|
-
|
1193
|
+
/* GdkEventOwnerChange */
|
1194
|
+
rb_cGdkEventOwnerChange =
|
1195
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_OWNER_CHANGE, "EventOwnerChange",
|
1196
|
+
mGdk, rb_cGdkEvent);
|
1197
|
+
DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, owner);
|
1198
|
+
DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, reason);
|
1199
|
+
DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, selection);
|
1200
|
+
DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, time);
|
1201
|
+
DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, selection_time);
|
1202
|
+
G_DEF_SETTERS(rb_cGdkEventOwnerChange);
|
1203
|
+
DEFINE_INIT(rb_cGdkEventOwnerChange, owner_change);
|
1204
|
+
|
1205
|
+
/* GdkOwnerChange */
|
1206
|
+
G_DEF_CLASS(GDK_TYPE_OWNER_CHANGE, "OwnerChange", rb_cGdkEventScroll);
|
1207
|
+
G_DEF_CONSTANTS(rb_cGdkEventScroll,
|
1208
|
+
GDK_TYPE_OWNER_CHANGE, "GDK_OWNER_CHANGE_");
|
886
1209
|
|
887
1210
|
/* GdkEventProximity */
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
1211
|
+
rb_cGdkEventProximity =
|
1212
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_PROXIMITY, "EventProximity",
|
1213
|
+
mGdk, rb_cGdkEvent);
|
1214
|
+
DEFINE_ACCESSOR(rb_cGdkEventProximity, proximity, time);
|
1215
|
+
DEFINE_ACCESSOR(rb_cGdkEventProximity, proximity, device);
|
1216
|
+
G_DEF_SETTERS(rb_cGdkEventProximity);
|
892
1217
|
|
893
1218
|
/* GdkEventClient */
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
rb_define_method(
|
1219
|
+
rb_cGdkEventClient =
|
1220
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_CLIENT, "EventClient",
|
1221
|
+
mGdk, rb_cGdkEvent);
|
1222
|
+
DEFINE_ACCESSOR(rb_cGdkEventClient, client, message_type);
|
1223
|
+
rb_define_method(rb_cGdkEventClient,
|
1224
|
+
"data_format", gdkeventclient_data_format, 0);
|
1225
|
+
rb_define_method(rb_cGdkEventClient, "data", gdkeventclient_data, 0);
|
1226
|
+
rb_define_method(rb_cGdkEventClient, "send_client_message",
|
899
1227
|
gdkeventclient_send_client_message, -1);
|
900
|
-
rb_define_method(
|
1228
|
+
rb_define_method(rb_cGdkEventClient, "send_clientmessage_toall",
|
901
1229
|
gdkeventclient_send_clientmessage_toall, 0);
|
902
|
-
DEFINE_INIT(
|
903
|
-
G_DEF_SETTERS(
|
1230
|
+
DEFINE_INIT(rb_cGdkEventClient, client);
|
1231
|
+
G_DEF_SETTERS(rb_cGdkEventClient);
|
904
1232
|
|
905
|
-
/*
|
906
|
-
|
907
|
-
|
1233
|
+
/* GdkEventDND */
|
1234
|
+
rb_cGdkEventDND =
|
1235
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_DND, "EventDND",
|
1236
|
+
mGdk, rb_cGdkEvent);
|
1237
|
+
DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, context);
|
1238
|
+
DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, time);
|
1239
|
+
DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, x_root);
|
1240
|
+
DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, y_root);
|
1241
|
+
G_DEF_SETTERS(rb_cGdkEventDND);
|
908
1242
|
|
909
1243
|
/* GdkEventWindowState */
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
1244
|
+
rb_cGdkEventWindowState =
|
1245
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_WINDOW_STATE, "EventWindowState",
|
1246
|
+
mGdk, rb_cGdkEvent);
|
1247
|
+
DEFINE_ACCESSOR(rb_cGdkEventWindowState, window_state, changed_mask);
|
1248
|
+
DEFINE_ACCESSOR(rb_cGdkEventWindowState, window_state, new_window_state);
|
1249
|
+
DEFINE_INIT(rb_cGdkEventWindowState, window_state);
|
1250
|
+
G_DEF_SETTERS(rb_cGdkEventWindowState);
|
915
1251
|
|
916
1252
|
/* GdkWindowState */
|
917
|
-
G_DEF_CLASS(GDK_TYPE_WINDOW_STATE, "WindowState",
|
918
|
-
G_DEF_CONSTANTS(
|
1253
|
+
G_DEF_CLASS(GDK_TYPE_WINDOW_STATE, "WindowState", rb_cGdkEventScroll);
|
1254
|
+
G_DEF_CONSTANTS(rb_cGdkEventWindowState,
|
1255
|
+
GDK_TYPE_WINDOW_STATE, "GDK_WINDOW_STATE_");
|
919
1256
|
|
920
1257
|
/* GdkEventSetting */
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
1258
|
+
rb_cGdkEventSetting =
|
1259
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_SETTING, "EventSetting",
|
1260
|
+
mGdk, rb_cGdkEvent);
|
1261
|
+
DEFINE_ACCESSOR(rb_cGdkEventSetting, setting, action);
|
1262
|
+
DEFINE_ACCESSOR(rb_cGdkEventSetting, setting, name);
|
1263
|
+
DEFINE_INIT(rb_cGdkEventSetting, setting);
|
1264
|
+
G_DEF_SETTERS(rb_cGdkEventSetting);
|
926
1265
|
|
927
1266
|
/* GdkSettingAction */
|
928
|
-
G_DEF_CLASS(GDK_TYPE_SETTING_ACTION, "Action",
|
929
|
-
G_DEF_CONSTANTS(
|
1267
|
+
G_DEF_CLASS(GDK_TYPE_SETTING_ACTION, "Action", rb_cGdkEventScroll);
|
1268
|
+
G_DEF_CONSTANTS(rb_cGdkEventSetting,
|
1269
|
+
GDK_TYPE_SETTING_ACTION, "GDK_SETTING_");
|
930
1270
|
|
931
|
-
#if GTK_CHECK_VERSION(2,6,0)
|
932
|
-
/* GdkEventOwnerChange */
|
933
|
-
ev = gdkevents[GDK_OWNER_CHANGE];
|
934
|
-
DEFINE_ACCESSOR(ev, owner_change, owner);
|
935
|
-
DEFINE_ACCESSOR(ev, owner_change, reason);
|
936
|
-
DEFINE_ACCESSOR(ev, owner_change, selection);
|
937
|
-
DEFINE_ACCESSOR(ev, owner_change, time);
|
938
|
-
DEFINE_ACCESSOR(ev, owner_change, selection_time);
|
939
|
-
G_DEF_SETTERS(ev);
|
940
|
-
DEFINE_INIT(ev, owner_change);
|
941
|
-
|
942
|
-
/* GdkOwnerChange */
|
943
|
-
G_DEF_CLASS(GDK_TYPE_OWNER_CHANGE, "OwnerChange", ev);
|
944
|
-
G_DEF_CONSTANTS(ev, GDK_TYPE_OWNER_CHANGE, "GDK_OWNER_CHANGE_");
|
945
|
-
#endif
|
946
|
-
|
947
|
-
#if GTK_CHECK_VERSION(2,8,0)
|
948
1271
|
/* GdkEventGrabBroken */
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
rb_define_method(
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
1272
|
+
rb_cGdkEventGrabBroken =
|
1273
|
+
G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_GRAB_BROKEN, "EventGrabBroken",
|
1274
|
+
mGdk, rb_cGdkEvent);
|
1275
|
+
rb_define_method(rb_cGdkEventGrabBroken,
|
1276
|
+
"keyboard?", gdkeventgrab_broken_keyboard, 0);
|
1277
|
+
rb_define_method(rb_cGdkEventGrabBroken,
|
1278
|
+
"set_keyboard", gdkeventgrab_broken_set_keyboard, 1);
|
1279
|
+
rb_define_method(rb_cGdkEventGrabBroken,
|
1280
|
+
"implicit?", gdkeventgrab_broken_implicit, 0);
|
1281
|
+
rb_define_method(rb_cGdkEventGrabBroken,
|
1282
|
+
"set_implicit", gdkeventgrab_broken_set_implicit, 1);
|
1283
|
+
DEFINE_ACCESSOR(rb_cGdkEventGrabBroken, grab_broken, grab_window);
|
1284
|
+
DEFINE_INIT(rb_cGdkEventGrabBroken, grab_broken);
|
1285
|
+
G_DEF_SETTERS(rb_cGdkEventGrabBroken);
|
958
1286
|
|
959
1287
|
rbgobj_register_g2r_func(GDK_TYPE_EVENT, &gdkevent_g2r);
|
960
|
-
|
961
|
-
/*
|
962
|
-
* GdkEvent's Constants
|
963
|
-
*/
|
964
|
-
rb_define_const(gdkEvent, "CURRENT_TIME", INT2FIX(GDK_CURRENT_TIME));
|
965
|
-
rb_define_const(gdkEvent, "PRIORITY_EVENTS", INT2FIX(GDK_PRIORITY_EVENTS));
|
966
|
-
rb_define_const(gdkEvent, "PRIORITY_REDRAW", INT2FIX(GDK_PRIORITY_REDRAW));
|
967
|
-
|
968
|
-
/* GdkEventType */
|
969
|
-
/* XXX */
|
970
|
-
G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
|
971
|
-
G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
|
972
|
-
G_DEF_CLASS(GDK_TYPE_EVENT_TYPE, "Type", gdkEvent);
|
973
|
-
G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
|
974
|
-
G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
|
975
|
-
G_DEF_CONSTANTS(gdkEvent, GDK_TYPE_EVENT_TYPE, "GDK_");
|
976
|
-
|
977
|
-
/* GdkEventMask */
|
978
|
-
G_DEF_CLASS(GDK_TYPE_EVENT_MASK, "Mask", gdkEvent);
|
979
|
-
G_DEF_CONSTANTS(gdkEvent, GDK_TYPE_EVENT_MASK, "GDK_");
|
980
|
-
|
981
1288
|
}
|