gtk2 0.20.1 → 0.90.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +30 -0
- data/Rakefile +60 -54
- data/ext/gtk2/Makefile +163 -0
- data/ext/gtk2/depend +10 -0
- data/ext/gtk2/extconf.rb +202 -0
- data/{src → ext/gtk2}/global.h +0 -0
- data/ext/gtk2/gtk2.def +27 -0
- data/{src → ext/gtk2}/init.c +0 -0
- data/{src → ext/gtk2}/rbgdk.c +0 -0
- data/{src → ext/gtk2}/rbgdk.h +0 -0
- data/{src → ext/gtk2}/rbgdkatom.c +0 -0
- data/{src → ext/gtk2}/rbgdkcairo.c +0 -0
- data/{src → ext/gtk2}/rbgdkcolor.c +0 -0
- data/{src → ext/gtk2}/rbgdkcolormap.c +0 -0
- data/{src → ext/gtk2}/rbgdkconst.c +0 -0
- data/{src → ext/gtk2}/rbgdkconversions.h +0 -0
- data/{src → ext/gtk2}/rbgdkcursor.c +0 -0
- data/{src → ext/gtk2}/rbgdkdevice.c +0 -0
- data/{src → ext/gtk2}/rbgdkdisplay.c +0 -0
- data/{src → ext/gtk2}/rbgdkdisplaymanager.c +0 -0
- data/{src → ext/gtk2}/rbgdkdragcontext.c +0 -0
- data/{src → ext/gtk2}/rbgdkdraw.c +0 -0
- data/{src → ext/gtk2}/rbgdkevent.c +0 -0
- data/{src → ext/gtk2}/rbgdkgc.c +0 -0
- data/{src → ext/gtk2}/rbgdkgeometry.c +0 -0
- data/{src → ext/gtk2}/rbgdkimage.c +0 -0
- data/{src → ext/gtk2}/rbgdkinput.c +0 -0
- data/{src → ext/gtk2}/rbgdkkeymap.c +0 -0
- data/{src → ext/gtk2}/rbgdkkeysyms.h +0 -466
- data/{src → ext/gtk2}/rbgdkkeyval.c +0 -0
- data/{src → ext/gtk2}/rbgdkpango.c +0 -0
- data/{src → ext/gtk2}/rbgdkpangorenderer.c +0 -0
- data/{src → ext/gtk2}/rbgdkpixbuf.c +0 -0
- data/{src → ext/gtk2}/rbgdkpixmap.c +0 -0
- data/{src → ext/gtk2}/rbgdkproperty.c +0 -0
- data/{src → ext/gtk2}/rbgdkrectangle.c +0 -0
- data/{src → ext/gtk2}/rbgdkregion.c +0 -0
- data/{src → ext/gtk2}/rbgdkrgb.c +0 -0
- data/{src → ext/gtk2}/rbgdkscreen.c +0 -0
- data/{src → ext/gtk2}/rbgdkselection.c +0 -0
- data/{src → ext/gtk2}/rbgdkthreads.c +0 -0
- data/{src → ext/gtk2}/rbgdktimecoord.c +0 -0
- data/{src → ext/gtk2}/rbgdkvisual.c +0 -0
- data/{src → ext/gtk2}/rbgdkwindow.c +0 -0
- data/{src → ext/gtk2}/rbgdkwindowattr.c +0 -0
- data/{src → ext/gtk2}/rbgdkx11.c +0 -0
- data/{src → ext/gtk2}/rbgtk.c +0 -0
- data/{src → ext/gtk2}/rbgtk.h +0 -4
- data/{src → ext/gtk2}/rbgtkaboutdialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkaccelerator.c +0 -0
- data/{src → ext/gtk2}/rbgtkaccelgroup.c +0 -0
- data/{src → ext/gtk2}/rbgtkaccelgroupentry.c +0 -0
- data/{src → ext/gtk2}/rbgtkaccelkey.c +0 -0
- data/{src → ext/gtk2}/rbgtkaccellabel.c +0 -0
- data/{src → ext/gtk2}/rbgtkaccelmap.c +0 -0
- data/{src → ext/gtk2}/rbgtkaccessible.c +0 -0
- data/{src → ext/gtk2}/rbgtkaction.c +0 -0
- data/{src → ext/gtk2}/rbgtkactiongroup.c +0 -0
- data/{src → ext/gtk2}/rbgtkadjustment.c +0 -0
- data/{src → ext/gtk2}/rbgtkalignment.c +0 -0
- data/{src → ext/gtk2}/rbgtkallocation.c +0 -0
- data/{src → ext/gtk2}/rbgtkarrow.c +0 -0
- data/{src → ext/gtk2}/rbgtkaspectframe.c +0 -0
- data/{src → ext/gtk2}/rbgtkassistant.c +0 -0
- data/{src → ext/gtk2}/rbgtkbbox.c +0 -0
- data/{src → ext/gtk2}/rbgtkbin.c +0 -0
- data/{src → ext/gtk2}/rbgtkbindingset.c +0 -0
- data/{src → ext/gtk2}/rbgtkborder.c +0 -0
- data/{src → ext/gtk2}/rbgtkbox.c +0 -0
- data/{src → ext/gtk2}/rbgtkbuildable.c +0 -0
- data/{src → ext/gtk2}/rbgtkbuilder.c +0 -0
- data/{src → ext/gtk2}/rbgtkbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkcalendar.c +0 -0
- data/{src → ext/gtk2}/rbgtkcelleditable.c +0 -0
- data/{src → ext/gtk2}/rbgtkcelllayout.c +0 -0
- data/{src → ext/gtk2}/rbgtkcellrenderer.c +0 -0
- data/{src → ext/gtk2}/rbgtkcellrendereraccel.c +0 -0
- data/{src → ext/gtk2}/rbgtkcellrenderercombo.c +0 -0
- data/{src → ext/gtk2}/rbgtkcellrendererpixbuf.c +0 -0
- data/{src → ext/gtk2}/rbgtkcellrendererprogress.c +0 -0
- data/{src → ext/gtk2}/rbgtkcellrendererspin.c +0 -0
- data/{src → ext/gtk2}/rbgtkcellrenderertext.c +0 -0
- data/{src → ext/gtk2}/rbgtkcellrenderertoggle.c +0 -0
- data/{src → ext/gtk2}/rbgtkcellview.c +0 -0
- data/{src → ext/gtk2}/rbgtkcheckbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkcheckmenuitem.c +0 -0
- data/{src → ext/gtk2}/rbgtkclipboard.c +0 -0
- data/{src → ext/gtk2}/rbgtkcolorbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkcolorsel.c +0 -0
- data/{src → ext/gtk2}/rbgtkcolorselectiondialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkcombo.c +0 -0
- data/{src → ext/gtk2}/rbgtkcombobox.c +0 -0
- data/{src → ext/gtk2}/rbgtkcomboboxentry.c +0 -0
- data/{src → ext/gtk2}/rbgtkconst.c +0 -0
- data/{src → ext/gtk2}/rbgtkcontainer.c +0 -0
- data/{src → ext/gtk2}/rbgtkconversions.h +0 -0
- data/{src → ext/gtk2}/rbgtkcurve.c +0 -0
- data/{src → ext/gtk2}/rbgtkdialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkdrag.c +0 -0
- data/{src → ext/gtk2}/rbgtkdrawingarea.c +0 -0
- data/{src → ext/gtk2}/rbgtkeditable.c +0 -0
- data/{src → ext/gtk2}/rbgtkentry.c +0 -0
- data/{src → ext/gtk2}/rbgtkentrycompletion.c +0 -0
- data/{src → ext/gtk2}/rbgtkeventbox.c +0 -0
- data/{src → ext/gtk2}/rbgtkexpander.c +0 -0
- data/{src → ext/gtk2}/rbgtkfilechooser.c +0 -0
- data/{src → ext/gtk2}/rbgtkfilechooserbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkfilechooserdialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkfilechooserwidget.c +0 -0
- data/{src → ext/gtk2}/rbgtkfilefilter.c +0 -0
- data/{src → ext/gtk2}/rbgtkfilesel.c +0 -0
- data/{src → ext/gtk2}/rbgtkfixed.c +0 -0
- data/{src → ext/gtk2}/rbgtkfontbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkfontselection.c +0 -0
- data/{src → ext/gtk2}/rbgtkfontselectiondialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkframe.c +0 -0
- data/{src → ext/gtk2}/rbgtkgamma.c +0 -0
- data/{src → ext/gtk2}/rbgtkhandlebox.c +0 -0
- data/{src → ext/gtk2}/rbgtkhbbox.c +0 -0
- data/{src → ext/gtk2}/rbgtkhbox.c +0 -0
- data/{src → ext/gtk2}/rbgtkhpaned.c +0 -0
- data/{src → ext/gtk2}/rbgtkhruler.c +0 -0
- data/{src → ext/gtk2}/rbgtkhscale.c +0 -0
- data/{src → ext/gtk2}/rbgtkhscrollbar.c +0 -0
- data/{src → ext/gtk2}/rbgtkhseparator.c +0 -0
- data/{src → ext/gtk2}/rbgtkiconfactory.c +0 -0
- data/{src → ext/gtk2}/rbgtkiconinfo.c +0 -0
- data/{src → ext/gtk2}/rbgtkiconset.c +0 -0
- data/{src → ext/gtk2}/rbgtkiconsize.c +0 -0
- data/{src → ext/gtk2}/rbgtkiconsource.c +0 -0
- data/{src → ext/gtk2}/rbgtkicontheme.c +0 -0
- data/{src → ext/gtk2}/rbgtkiconview.c +0 -0
- data/{src → ext/gtk2}/rbgtkimage.c +0 -0
- data/{src → ext/gtk2}/rbgtkimagemenuitem.c +0 -0
- data/{src → ext/gtk2}/rbgtkimcontext.c +0 -0
- data/{src → ext/gtk2}/rbgtkimcontextsimple.c +0 -0
- data/{src → ext/gtk2}/rbgtkimmulticontext.c +0 -0
- data/{src → ext/gtk2}/rbgtkinits.c +2 -6
- data/{src → ext/gtk2}/rbgtkinputdialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkinvisible.c +0 -0
- data/{src → ext/gtk2}/rbgtkitem.c +0 -0
- data/{src → ext/gtk2}/rbgtkitemfactory.c +0 -0
- data/{src → ext/gtk2}/rbgtklabel.c +0 -0
- data/{src → ext/gtk2}/rbgtklayout.c +0 -0
- data/{src → ext/gtk2}/rbgtklinkbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkliststore.c +0 -0
- data/{src → ext/gtk2}/rbgtkmacros.h +0 -0
- data/{src → ext/gtk2}/rbgtkmain.c +0 -0
- data/{src → ext/gtk2}/rbgtkmenu.c +0 -0
- data/{src → ext/gtk2}/rbgtkmenubar.c +0 -0
- data/{src → ext/gtk2}/rbgtkmenuitem.c +0 -0
- data/{src → ext/gtk2}/rbgtkmenushell.c +0 -0
- data/{src → ext/gtk2}/rbgtkmenutoolbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkmessagedialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkmisc.c +0 -0
- data/{src → ext/gtk2}/rbgtknotebook.c +0 -0
- data/{src → ext/gtk2}/rbgtkobject.c +0 -0
- data/{src → ext/gtk2}/rbgtkoptionmenu.c +0 -0
- data/{src → ext/gtk2}/rbgtkpagesetup.c +0 -0
- data/{src → ext/gtk2}/rbgtkpagesetupunixdialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkpaned.c +0 -0
- data/{src → ext/gtk2}/rbgtkpapersize.c +0 -0
- data/{src → ext/gtk2}/rbgtkplug.c +0 -0
- data/{src → ext/gtk2}/rbgtkprintcontext.c +0 -0
- data/{src → ext/gtk2}/rbgtkprinter.c +0 -0
- data/{src → ext/gtk2}/rbgtkprintjob.c +0 -0
- data/{src → ext/gtk2}/rbgtkprintoperation.c +0 -0
- data/{src → ext/gtk2}/rbgtkprintoperationpreview.c +0 -0
- data/{src → ext/gtk2}/rbgtkprintsettings.c +0 -0
- data/{src → ext/gtk2}/rbgtkprintunixdialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkprogress.c +0 -0
- data/{src → ext/gtk2}/rbgtkprogressbar.c +0 -0
- data/{src → ext/gtk2}/rbgtkradioaction.c +0 -0
- data/{src → ext/gtk2}/rbgtkradiobutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkradiomenuitem.c +0 -0
- data/{src → ext/gtk2}/rbgtkradiotoolbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkrange.c +0 -0
- data/{src → ext/gtk2}/rbgtkrc.c +0 -0
- data/{src → ext/gtk2}/rbgtkrcstyle.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentaction.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentchooser.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentchooserdialog.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentchoosermenu.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentchooserwidget.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentdata.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentfilter.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentfilterinfo.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentinfo.c +0 -0
- data/{src → ext/gtk2}/rbgtkrecentmanager.c +0 -0
- data/{src → ext/gtk2}/rbgtkruler.c +0 -0
- data/{src → ext/gtk2}/rbgtkscale.c +0 -0
- data/{src → ext/gtk2}/rbgtkscalebutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkscrollbar.c +0 -0
- data/{src → ext/gtk2}/rbgtkscrolledwindow.c +0 -0
- data/{src → ext/gtk2}/rbgtkselection.c +0 -0
- data/{src → ext/gtk2}/rbgtkselectiondata.c +0 -0
- data/{src → ext/gtk2}/rbgtkseparator.c +0 -0
- data/{src → ext/gtk2}/rbgtkseparatormenuitem.c +0 -0
- data/{src → ext/gtk2}/rbgtkseparatortoolitem.c +0 -0
- data/{src → ext/gtk2}/rbgtksettings.c +0 -0
- data/{src → ext/gtk2}/rbgtksizegroup.c +0 -0
- data/{src → ext/gtk2}/rbgtksocket.c +0 -0
- data/{src → ext/gtk2}/rbgtkspinbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkstatusbar.c +0 -0
- data/{src → ext/gtk2}/rbgtkstatusicon.c +0 -0
- data/{src → ext/gtk2}/rbgtkstock.c +0 -0
- data/{src → ext/gtk2}/rbgtkstyle.c +0 -0
- data/{src → ext/gtk2}/rbgtktable.c +0 -0
- data/{src → ext/gtk2}/rbgtktargetlist.c +0 -0
- data/{src → ext/gtk2}/rbgtktearoffmenuitem.c +0 -0
- data/{src → ext/gtk2}/rbgtktextappearance.c +0 -0
- data/{src → ext/gtk2}/rbgtktextattributes.c +0 -0
- data/{src → ext/gtk2}/rbgtktextbuffer.c +0 -0
- data/{src → ext/gtk2}/rbgtktextchild.c +0 -0
- data/{src → ext/gtk2}/rbgtktextiter.c +0 -0
- data/{src → ext/gtk2}/rbgtktextmark.c +0 -0
- data/{src → ext/gtk2}/rbgtktexttag.c +0 -0
- data/{src → ext/gtk2}/rbgtktexttagtable.c +0 -0
- data/{src → ext/gtk2}/rbgtktextview.c +0 -0
- data/{src → ext/gtk2}/rbgtktoggleaction.c +0 -0
- data/{src → ext/gtk2}/rbgtktogglebutton.c +0 -0
- data/{src → ext/gtk2}/rbgtktoggletoolbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtktoolbar.c +0 -0
- data/{src → ext/gtk2}/rbgtktoolbutton.c +0 -0
- data/{src → ext/gtk2}/rbgtktoolitem.c +0 -0
- data/{src → ext/gtk2}/rbgtktooltip.c +0 -0
- data/{src → ext/gtk2}/rbgtktooltips.c +0 -0
- data/{src → ext/gtk2}/rbgtktreedragdest.c +0 -0
- data/{src → ext/gtk2}/rbgtktreedragsource.c +0 -0
- data/{src → ext/gtk2}/rbgtktreeiter.c +0 -0
- data/{src → ext/gtk2}/rbgtktreemodel.c +0 -0
- data/{src → ext/gtk2}/rbgtktreemodelfilter.c +0 -0
- data/{src → ext/gtk2}/rbgtktreemodelsort.c +0 -0
- data/{src → ext/gtk2}/rbgtktreepath.c +0 -0
- data/{src → ext/gtk2}/rbgtktreerowreference.c +0 -0
- data/{src → ext/gtk2}/rbgtktreeselection.c +0 -0
- data/{src → ext/gtk2}/rbgtktreesortable.c +0 -0
- data/{src → ext/gtk2}/rbgtktreestore.c +0 -0
- data/{src → ext/gtk2}/rbgtktreeview.c +0 -0
- data/{src → ext/gtk2}/rbgtktreeviewcolumn.c +0 -0
- data/{src → ext/gtk2}/rbgtkuimanager.c +0 -0
- data/{src → ext/gtk2}/rbgtkvbbox.c +0 -0
- data/{src → ext/gtk2}/rbgtkvbox.c +0 -0
- data/{src → ext/gtk2}/rbgtkviewport.c +0 -0
- data/{src → ext/gtk2}/rbgtkvolumebutton.c +0 -0
- data/{src → ext/gtk2}/rbgtkvpaned.c +0 -0
- data/{src → ext/gtk2}/rbgtkvruler.c +0 -0
- data/{src → ext/gtk2}/rbgtkvscale.c +0 -0
- data/{src → ext/gtk2}/rbgtkvscrollbar.c +0 -0
- data/{src → ext/gtk2}/rbgtkvseparator.c +0 -0
- data/{src → ext/gtk2}/rbgtkwidget.c +0 -0
- data/{src → ext/gtk2}/rbgtkwindow.c +0 -0
- data/{src → ext/gtk2}/rbgtkwindowgroup.c +0 -0
- data/extconf.rb +48 -113
- data/{src/lib → lib}/gtk2.rb +0 -0
- data/{src/lib → lib}/gtk2/base.rb +12 -1
- data/sample/gtk-demo/README +7 -0
- data/sample/gtk-demo/alphatest.png +0 -0
- data/sample/gtk-demo/apple-red.png +0 -0
- data/sample/gtk-demo/appwindow.rb +233 -0
- data/sample/gtk-demo/background.jpg +0 -0
- data/sample/gtk-demo/builder.rb +51 -0
- data/sample/gtk-demo/button_box.rb +84 -0
- data/sample/gtk-demo/cairo-arc-negative.rb +41 -0
- data/sample/gtk-demo/cairo-arc.rb +41 -0
- data/sample/gtk-demo/cairo-clip-image.rb +51 -0
- data/sample/gtk-demo/cairo-clip-rectangle.rb +35 -0
- data/sample/gtk-demo/cairo-clip.rb +35 -0
- data/sample/gtk-demo/cairo-curve-rectangle.rb +76 -0
- data/sample/gtk-demo/cairo-curve-to.rb +43 -0
- data/sample/gtk-demo/cairo-dash.rb +39 -0
- data/sample/gtk-demo/cairo-fill-and-stroke.rb +32 -0
- data/sample/gtk-demo/cairo-fill-and-stroke2.rb +38 -0
- data/sample/gtk-demo/cairo-gradient.rb +35 -0
- data/sample/gtk-demo/cairo-image-pattern.rb +39 -0
- data/sample/gtk-demo/cairo-image.rb +49 -0
- data/sample/gtk-demo/cairo-line-cap.rb +53 -0
- data/sample/gtk-demo/cairo-line-join.rb +41 -0
- data/sample/gtk-demo/cairo-long-lines.rb +41 -0
- data/sample/gtk-demo/cairo-operator.rb +83 -0
- data/sample/gtk-demo/cairo-path.rb +28 -0
- data/sample/gtk-demo/cairo-pattern-fill.rb +88 -0
- data/sample/gtk-demo/cairo-self-intersect.rb +32 -0
- data/sample/gtk-demo/cairo-text-align-center.rb +45 -0
- data/sample/gtk-demo/cairo-text-extents.rb +46 -0
- data/sample/gtk-demo/cairo-text.rb +43 -0
- data/sample/gtk-demo/changedisplay.rb +408 -0
- data/sample/gtk-demo/clipboard.rb +72 -0
- data/sample/gtk-demo/colorsel.rb +84 -0
- data/sample/gtk-demo/common.rb +88 -0
- data/sample/gtk-demo/demo.ui +258 -0
- data/sample/gtk-demo/dialog.rb +137 -0
- data/sample/gtk-demo/drawingarea.rb +226 -0
- data/sample/gtk-demo/editable_cells.rb +172 -0
- data/sample/gtk-demo/entry_completion.rb +63 -0
- data/sample/gtk-demo/expander.rb +40 -0
- data/sample/gtk-demo/floppybuddy.gif +0 -0
- data/sample/gtk-demo/gnome-applets.png +0 -0
- data/sample/gtk-demo/gnome-calendar.png +0 -0
- data/sample/gtk-demo/gnome-foot.png +0 -0
- data/sample/gtk-demo/gnome-fs-directory.png +0 -0
- data/sample/gtk-demo/gnome-fs-regular.png +0 -0
- data/sample/gtk-demo/gnome-gimp.png +0 -0
- data/sample/gtk-demo/gnome-gmush.png +0 -0
- data/sample/gtk-demo/gnome-gsame.png +0 -0
- data/sample/gtk-demo/gnu-keys.png +0 -0
- data/sample/gtk-demo/gtk-logo-rgb.gif +0 -0
- data/sample/gtk-demo/hypertext.rb +211 -0
- data/sample/gtk-demo/iconview.rb +109 -0
- data/sample/gtk-demo/images.rb +197 -0
- data/sample/gtk-demo/item_factory.rb +94 -0
- data/sample/gtk-demo/list_store.rb +138 -0
- data/sample/gtk-demo/main.rb +380 -0
- data/sample/gtk-demo/menus.rb +172 -0
- data/sample/gtk-demo/panes.rb +156 -0
- data/sample/gtk-demo/pixbufs.rb +176 -0
- data/sample/gtk-demo/printing.rb +128 -0
- data/sample/gtk-demo/rotated_text.rb +84 -0
- data/sample/gtk-demo/ruby-gnome2-logo.png +0 -0
- data/sample/gtk-demo/sizegroup.rb +118 -0
- data/sample/gtk-demo/stock_browser.rb +235 -0
- data/sample/gtk-demo/textview.rb +435 -0
- data/sample/gtk-demo/tree_store.rb +270 -0
- data/sample/misc/aboutdialog.rb +42 -0
- data/sample/misc/aboutdialog2.rb +42 -0
- data/sample/misc/alpha-demo.rb +70 -0
- data/sample/misc/assistant.rb +347 -0
- data/sample/misc/bindings.rb +107 -0
- data/sample/misc/button.rb +69 -0
- data/sample/misc/button2.rb +28 -0
- data/sample/misc/buttonbox.rb +93 -0
- data/sample/misc/cairo-pong.rb +215 -0
- data/sample/misc/calendar.rb +62 -0
- data/sample/misc/checkbutton.rb +46 -0
- data/sample/misc/colorselection.rb +25 -0
- data/sample/misc/combo_check.rb +71 -0
- data/sample/misc/combobox.rb +86 -0
- data/sample/misc/composited-windows.rb +113 -0
- data/sample/misc/cursor.rb +32 -0
- data/sample/misc/dialog.rb +44 -0
- data/sample/misc/dialog2.rb +39 -0
- data/sample/misc/dnd.rb +65 -0
- data/sample/misc/dndtreeview.rb +56 -0
- data/sample/misc/drag-move.rb +131 -0
- data/sample/misc/drawing.rb +90 -0
- data/sample/misc/entry.rb +34 -0
- data/sample/misc/entrycompletion.rb +39 -0
- data/sample/misc/expander.rb +27 -0
- data/sample/misc/filechooser.rb +49 -0
- data/sample/misc/fileselection.rb +26 -0
- data/sample/misc/frame.rb +69 -0
- data/sample/misc/gc.rb +59 -0
- data/sample/misc/gdkscreen.rb +32 -0
- data/sample/misc/gnome-logo-icon.png +0 -0
- data/sample/misc/helloworld.rb +35 -0
- data/sample/misc/iconview.rb +38 -0
- data/sample/misc/image.rb +42 -0
- data/sample/misc/itemfactory.rb +73 -0
- data/sample/misc/itemfactory2.rb +74 -0
- data/sample/misc/keyboard_grab.rb +29 -0
- data/sample/misc/label.rb +33 -0
- data/sample/misc/linkbutton.rb +42 -0
- data/sample/misc/listview.rb +92 -0
- data/sample/misc/menu.rb +81 -0
- data/sample/misc/misc_button.rb +59 -0
- data/sample/misc/mouse-gesture.rb +465 -0
- data/sample/misc/pangorenderer.rb +66 -0
- data/sample/misc/pointer_grab.rb +34 -0
- data/sample/misc/print.rb +247 -0
- data/sample/misc/properties.rb +85 -0
- data/sample/misc/radiobutton.rb +47 -0
- data/sample/misc/recentchooserdialog.rb +59 -0
- data/sample/misc/rgtk+cairo.rb +44 -0
- data/sample/misc/scalebutton.rb +25 -0
- data/sample/misc/settings.rb +41 -0
- data/sample/misc/statusicon.rb +123 -0
- data/sample/misc/stock.rb +36 -0
- data/sample/misc/style_property.rb +67 -0
- data/sample/misc/style_property.rc +19 -0
- data/sample/misc/t-gtkplug.rb +58 -0
- data/sample/misc/t-gtksocket.rb +65 -0
- data/sample/misc/test.xpm +92 -0
- data/sample/misc/textbuffer_serialize.rb +130 -0
- data/sample/misc/threads.rb +72 -0
- data/sample/misc/to_drawable.rb +42 -0
- data/sample/misc/togglebutton.rb +34 -0
- data/sample/misc/toolbar.rb +55 -0
- data/sample/misc/tooltips.rb +204 -0
- data/sample/misc/tree_combo.rb +85 -0
- data/sample/misc/tree_progress.rb +69 -0
- data/sample/misc/treemodelfilter.rb +55 -0
- data/sample/misc/treeview.rb +71 -0
- data/sample/misc/uimanager.rb +148 -0
- data/sample/misc/uimanager2.rb +91 -0
- data/sample/misc/uimanager2.xml +36 -0
- data/sample/misc/window.rb +24 -0
- data/sample/misc/xbm_cursor.rb +43 -0
- data/sample/testgtk/3DRings.xpm +116 -0
- data/sample/testgtk/FilesQueue.xpm +98 -0
- data/sample/testgtk/Modeller.xpm +117 -0
- data/sample/testgtk/README +14 -0
- data/sample/testgtk/button.rb +133 -0
- data/sample/testgtk/buttonbox.rb +108 -0
- data/sample/testgtk/check-n.xpm +21 -0
- data/sample/testgtk/check-y.xpm +21 -0
- data/sample/testgtk/checkbutton.rb +67 -0
- data/sample/testgtk/circles.xbm +46 -0
- data/sample/testgtk/colorselect.rb +33 -0
- data/sample/testgtk/dialog.rb +47 -0
- data/sample/testgtk/entry.rb +73 -0
- data/sample/testgtk/filesel.rb +67 -0
- data/sample/testgtk/fontselection.rb +56 -0
- data/sample/testgtk/gammacurve.rb +70 -0
- data/sample/testgtk/labels.rb +73 -0
- data/sample/testgtk/layout.rb +108 -0
- data/sample/testgtk/marble.xpm +408 -0
- data/sample/testgtk/menu.rb +79 -0
- data/sample/testgtk/notebook.rb +281 -0
- data/sample/testgtk/pixmap.rb +58 -0
- data/sample/testgtk/progressbar.rb +181 -0
- data/sample/testgtk/radiobutton.rb +61 -0
- data/sample/testgtk/range.rb +65 -0
- data/sample/testgtk/reparent.rb +91 -0
- data/sample/testgtk/rulers.rb +46 -0
- data/sample/testgtk/sample.rb +80 -0
- data/sample/testgtk/savedposition.rb +87 -0
- data/sample/testgtk/scrolledwindow.rb +67 -0
- data/sample/testgtk/shapedwindow.rb +99 -0
- data/sample/testgtk/spinbutton.rb +181 -0
- data/sample/testgtk/statusbar.rb +89 -0
- data/sample/testgtk/test.xpm +92 -0
- data/sample/testgtk/testgtk.rb +179 -0
- data/sample/testgtk/testgtkrc +146 -0
- data/sample/testgtk/testgtkrc2 +21 -0
- data/sample/testgtk/togglebutton.rb +53 -0
- data/sample/testgtk/toolbar.rb +82 -0
- data/sample/testgtk/tooltips.rb +41 -0
- data/sample/testgtk/wmhints.rb +40 -0
- data/test/run-test.rb +10 -8
- data/test/test_gtk_builder.rb +1 -1
- metadata +495 -334
- data/src/makeinits.rb +0 -57
- data/src/makekeysyms.rb +0 -5
@@ -0,0 +1,148 @@
|
|
1
|
+
=begin
|
2
|
+
uimanager.rb -
|
3
|
+
|
4
|
+
Copyright (C) 2004-2006 Masao Mutoh
|
5
|
+
|
6
|
+
Original version is demos/gtk-demo/ui_manager.c.
|
7
|
+
|
8
|
+
This program is licenced under the same licence as Ruby-GNOME2.
|
9
|
+
|
10
|
+
$Id: uimanager.rb,v 1.6 2007/07/12 14:53:09 ggc Exp $
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'gtk2'
|
14
|
+
|
15
|
+
if str = Gtk.check_version(2, 4, 0)
|
16
|
+
puts "This sample requires GTK+ 2.4.0 or later"
|
17
|
+
puts str
|
18
|
+
exit
|
19
|
+
end
|
20
|
+
|
21
|
+
if not Gtk.check_version(2, 12, 0)
|
22
|
+
recentmenuitem = "<menuitem name='recent' action='recent'/>"
|
23
|
+
else
|
24
|
+
recentmenuitem = ""
|
25
|
+
end
|
26
|
+
|
27
|
+
ui_info = %Q[
|
28
|
+
<ui>
|
29
|
+
<menubar name='MenuBar'>
|
30
|
+
<menu action='FileMenu'>
|
31
|
+
<menuitem action='New'/>
|
32
|
+
<menuitem action='Open'/>
|
33
|
+
#{recentmenuitem}
|
34
|
+
<menuitem action='Save'/>
|
35
|
+
<menuitem action='SaveAs'/>
|
36
|
+
<separator/>
|
37
|
+
<menuitem action='Quit'/>
|
38
|
+
</menu>
|
39
|
+
<menu action='PreferencesMenu'>
|
40
|
+
<menu action='ColorMenu'>
|
41
|
+
<menuitem action='Red'/>
|
42
|
+
<menuitem action='Green'/>
|
43
|
+
<menuitem action='Blue'/>
|
44
|
+
</menu>
|
45
|
+
<menu action='ShapeMenu'>
|
46
|
+
<menuitem action='Square'/>
|
47
|
+
<menuitem action='Rectangle'/>
|
48
|
+
<menuitem action='Oval'/>
|
49
|
+
</menu>
|
50
|
+
<menuitem action='Bold'/>
|
51
|
+
</menu>
|
52
|
+
<menu action='HelpMenu'>
|
53
|
+
<menuitem action='About'/>
|
54
|
+
</menu>
|
55
|
+
</menubar>
|
56
|
+
<toolbar name='ToolBar'>
|
57
|
+
<toolitem action='Open'/>
|
58
|
+
<toolitem action='Quit'/>
|
59
|
+
<separator action='Sep1'/>
|
60
|
+
<toolitem action='Logo'/>
|
61
|
+
</toolbar>
|
62
|
+
</ui>]
|
63
|
+
|
64
|
+
callback = Proc.new {|actiongroup, action|
|
65
|
+
puts "`#{action.name}' is clicked. "
|
66
|
+
if action.is_a? Gtk::ToggleAction
|
67
|
+
puts "active? = #{action.active?}"
|
68
|
+
end
|
69
|
+
}
|
70
|
+
|
71
|
+
callback_quit = Proc.new {
|
72
|
+
p "Quit is called."
|
73
|
+
Gtk.main_quit
|
74
|
+
}
|
75
|
+
|
76
|
+
callback_radio = Proc.new {|action, current|
|
77
|
+
puts "action = `#{action.name}'"
|
78
|
+
puts "current = `#{current.name}'"
|
79
|
+
}
|
80
|
+
|
81
|
+
actions = [
|
82
|
+
["FileMenu", nil, "_File"],
|
83
|
+
["PreferencesMenu", nil, "_Preferences"],
|
84
|
+
["ColorMenu", nil, "_Color"],
|
85
|
+
["ShapeMenu", nil, "_Shape"],
|
86
|
+
["HelpMenu", nil, "_Help"],
|
87
|
+
["New", Gtk::Stock::NEW, "_New", "<control>N", "Create a new file", callback],
|
88
|
+
["Open", Gtk::Stock::OPEN, "_Open", "<control>O", "Open a file", callback],
|
89
|
+
["Save", Gtk::Stock::SAVE, "_Save", "<control>S", "Save current file", callback],
|
90
|
+
["SaveAs", Gtk::Stock::SAVE, "Save _As...", nil, "Save to a file", callback],
|
91
|
+
["Quit", Gtk::Stock::QUIT, "_Quit", "<control>Q", "Quit", callback_quit],
|
92
|
+
["About", nil, "_About", "<control>A", "About", callback],
|
93
|
+
["Logo", "demo-gtk-logo", nil, nil, "GTK+", callback]
|
94
|
+
]
|
95
|
+
|
96
|
+
toggle_actions = [
|
97
|
+
["Bold", Gtk::Stock::BOLD, "_Bold", "<control>B", "Bold", callback, true]
|
98
|
+
]
|
99
|
+
|
100
|
+
color_radio_actions = [
|
101
|
+
["Red", nil, "_Red", "<control>R", "Blood", 0],
|
102
|
+
["Green", nil, "_Green", "<control>G", "Grass", 1],
|
103
|
+
["Blue", nil, "_Blue", "<control>B", "Sky", 2]
|
104
|
+
]
|
105
|
+
|
106
|
+
shape_radio_actions = [
|
107
|
+
["Square", nil, "_Square", "<control>S", "Square", 0],
|
108
|
+
["Rectangle", nil, "_Rectangle", "<control>R", "Rectangle", 1],
|
109
|
+
["Oval", nil, "_Oval", "<control>O", "Egg", 2]
|
110
|
+
]
|
111
|
+
|
112
|
+
window = Gtk::Window.new("Gtk::UIManager sample")
|
113
|
+
|
114
|
+
actiongroup = Gtk::ActionGroup.new("Actions")
|
115
|
+
actiongroup.add_actions(actions)
|
116
|
+
actiongroup.add_toggle_actions(toggle_actions)
|
117
|
+
actiongroup.add_radio_actions(color_radio_actions, 1) do |action, current|
|
118
|
+
puts "action = `#{action.name}'"
|
119
|
+
puts "current = `#{current.name}'"
|
120
|
+
end
|
121
|
+
actiongroup.add_radio_actions(shape_radio_actions, 2, callback_radio)
|
122
|
+
|
123
|
+
if not Gtk.check_version(2, 12, 0)
|
124
|
+
action = Gtk::RecentAction.new('recent', 'Open Recent', nil, 'gtk-open')
|
125
|
+
[ 'item-activated', 'activate' ].each { |signal|
|
126
|
+
action.signal_connect(signal) { |action|
|
127
|
+
puts "`Recent' #{signal}, uri=#{action.current_uri || 'no item selected'}"
|
128
|
+
}
|
129
|
+
}
|
130
|
+
actiongroup.add_action(action)
|
131
|
+
end
|
132
|
+
|
133
|
+
uimanager = Gtk::UIManager.new
|
134
|
+
uimanager.insert_action_group(actiongroup, 0)
|
135
|
+
window.add_accel_group(uimanager.accel_group)
|
136
|
+
|
137
|
+
uimanager.add_ui(ui_info)
|
138
|
+
|
139
|
+
vbox = Gtk::VBox.new
|
140
|
+
vbox.pack_start(uimanager["/MenuBar"], false, false)
|
141
|
+
vbox.pack_start(Gtk::Label.new("Gtk::UIManager Sample"))
|
142
|
+
window.add(vbox)
|
143
|
+
window.set_default_size(100, 100).show_all
|
144
|
+
|
145
|
+
window.signal_connect("destroy"){Gtk.main_quit}
|
146
|
+
|
147
|
+
Gtk.main
|
148
|
+
|
@@ -0,0 +1,91 @@
|
|
1
|
+
=begin
|
2
|
+
uimanager2.rb -
|
3
|
+
|
4
|
+
Copyright (C) 2004-2006 Masao Mutoh
|
5
|
+
|
6
|
+
This program is licenced under the same licence as Ruby-GNOME2.
|
7
|
+
|
8
|
+
$Id: uimanager2.rb,v 1.5 2006/06/17 13:18:12 mutoh Exp $
|
9
|
+
=end
|
10
|
+
require 'gtk2'
|
11
|
+
|
12
|
+
if str = Gtk.check_version(2, 4, 0)
|
13
|
+
puts "This sample requires GTK+ 2.4.0 or later"
|
14
|
+
puts str
|
15
|
+
exit
|
16
|
+
end
|
17
|
+
|
18
|
+
callback = Proc.new {|actiongroup, action|
|
19
|
+
puts "`#{action.name}' is clicked. "
|
20
|
+
if action.is_a? Gtk::ToggleAction
|
21
|
+
puts "active? = #{action.active?}"
|
22
|
+
end
|
23
|
+
}
|
24
|
+
|
25
|
+
callback_quit = Proc.new {
|
26
|
+
p "Quit is called."
|
27
|
+
Gtk.main_quit
|
28
|
+
}
|
29
|
+
|
30
|
+
callback_radio = Proc.new {|action, current|
|
31
|
+
puts "action = `#{action.name}'"
|
32
|
+
puts "current = `#{current.name}'"
|
33
|
+
}
|
34
|
+
|
35
|
+
actions = [
|
36
|
+
["FileMenu", nil, "_File"],
|
37
|
+
["PreferencesMenu", nil, "_Preferences"],
|
38
|
+
["ColorMenu", nil, "_Color"],
|
39
|
+
["ShapeMenu", nil, "_Shape"],
|
40
|
+
["HelpMenu", nil, "_Help"],
|
41
|
+
["New", Gtk::Stock::NEW, "_New", "<control>N", "Create a new file", callback],
|
42
|
+
["Open", Gtk::Stock::OPEN, "_Open", "<control>O", "Open a file", callback],
|
43
|
+
["Save", Gtk::Stock::SAVE, "_Save", "<control>S", "Save current file", callback],
|
44
|
+
["SaveAs", Gtk::Stock::SAVE, "Save _As...", nil, "Save to a file", callback],
|
45
|
+
["Quit", Gtk::Stock::QUIT, "_Quit", "<control>Q", "Quit", callback_quit],
|
46
|
+
["About", nil, "_About", "<control>A", "About", callback],
|
47
|
+
["Logo", "demo-gtk-logo", nil, nil, "GTK+", callback]
|
48
|
+
]
|
49
|
+
|
50
|
+
toggle_actions = [
|
51
|
+
["Bold", Gtk::Stock::BOLD, "_Bold", "<control>B", "Bold", callback, true]
|
52
|
+
]
|
53
|
+
|
54
|
+
color_radio_actions = [
|
55
|
+
["Red", nil, "_Red", "<control>R", "Blood", 0],
|
56
|
+
["Green", nil, "_Green", "<control>G", "Grass", 1],
|
57
|
+
["Blue", nil, "_Blue", "<control>B", "Sky", 2]
|
58
|
+
]
|
59
|
+
|
60
|
+
shape_radio_actions = [
|
61
|
+
["Square", nil, "_Square", "<control>S", "Square", 0],
|
62
|
+
["Rectangle", nil, "_Rectangle", "<control>R", "Rectangle", 1],
|
63
|
+
["Oval", nil, "_Oval", "<control>O", "Egg", 2]
|
64
|
+
]
|
65
|
+
|
66
|
+
window = Gtk::Window.new("Gtk::UIManager sample2")
|
67
|
+
window.signal_connect("destroy"){Gtk.main_quit}
|
68
|
+
|
69
|
+
actiongroup = Gtk::ActionGroup.new("Actions")
|
70
|
+
actiongroup.add_actions(actions)
|
71
|
+
actiongroup.add_toggle_actions(toggle_actions)
|
72
|
+
actiongroup.add_radio_actions(color_radio_actions, 1) do |action, current|
|
73
|
+
puts "action = `#{action.name}'"
|
74
|
+
puts "current = `#{current.name}'"
|
75
|
+
end
|
76
|
+
actiongroup.add_radio_actions(shape_radio_actions, 2, callback_radio)
|
77
|
+
|
78
|
+
uimanager = Gtk::UIManager.new
|
79
|
+
uimanager.insert_action_group(actiongroup, 0)
|
80
|
+
window.add_accel_group(uimanager.accel_group)
|
81
|
+
|
82
|
+
uimanager.add_ui("./uimanager2.xml")
|
83
|
+
|
84
|
+
vbox = Gtk::VBox.new
|
85
|
+
vbox.pack_start(uimanager["/MenuBar"], false, false)
|
86
|
+
vbox.pack_start(Gtk::Label.new("Gtk::UIManager Sample"))
|
87
|
+
window.add(vbox)
|
88
|
+
window.set_default_size(100, 100).show_all
|
89
|
+
|
90
|
+
Gtk.main
|
91
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<ui>
|
3
|
+
<menubar name='MenuBar'>
|
4
|
+
<menu action='FileMenu'>
|
5
|
+
<menuitem action='New'/>
|
6
|
+
<menuitem action='Open'/>
|
7
|
+
<menuitem action='Save'/>
|
8
|
+
<menuitem action='SaveAs'/>
|
9
|
+
<separator/>
|
10
|
+
<menuitem action='Quit'/>
|
11
|
+
</menu>
|
12
|
+
<menu action='PreferencesMenu'>
|
13
|
+
<menu action='ColorMenu'>
|
14
|
+
<menuitem action='Red'/>
|
15
|
+
<menuitem action='Green'/>
|
16
|
+
<menuitem action='Blue'/>
|
17
|
+
</menu>
|
18
|
+
<menu action='ShapeMenu'>
|
19
|
+
<menuitem action='Square'/>
|
20
|
+
<menuitem action='Rectangle'/>
|
21
|
+
<menuitem action='Oval'/>
|
22
|
+
</menu>
|
23
|
+
<menuitem action='Bold'/>
|
24
|
+
</menu>
|
25
|
+
<menu action='HelpMenu'>
|
26
|
+
<menuitem action='About'/>
|
27
|
+
</menu>
|
28
|
+
</menubar>
|
29
|
+
<toolbar name='ToolBar'>
|
30
|
+
<toolitem action='Open'/>
|
31
|
+
<toolitem action='Quit'/>
|
32
|
+
<separator action='Sep1'/>
|
33
|
+
<toolitem action='Logo'/>
|
34
|
+
</toolbar>
|
35
|
+
</ui>
|
36
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
=begin
|
3
|
+
window.rb - Gtk::Window sample.
|
4
|
+
|
5
|
+
Copyright (c) 2002-2006 Ruby-GNOME2 Project Team
|
6
|
+
This program is licenced under the same licence as Ruby-GNOME2.
|
7
|
+
|
8
|
+
$Id: window.rb,v 1.9 2006/10/21 16:58:00 mutoh Exp $
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'gtk2'
|
12
|
+
|
13
|
+
window = Gtk::Window.new("Gtk::Window sample")
|
14
|
+
window.signal_connect("destroy"){Gtk.main_quit}
|
15
|
+
|
16
|
+
button = Gtk::Button.new("Hello World")
|
17
|
+
button.signal_connect("clicked") do
|
18
|
+
puts "hello world"
|
19
|
+
Gtk.main_quit
|
20
|
+
end
|
21
|
+
window.add(button)
|
22
|
+
window.show_all
|
23
|
+
|
24
|
+
Gtk.main
|
@@ -0,0 +1,43 @@
|
|
1
|
+
=begin
|
2
|
+
xbm_cursor.rb - Gdk::Cursor sample script.
|
3
|
+
|
4
|
+
Copyright (C) 2001-2006 Masao Mutoh
|
5
|
+
This program is licenced under the same licence as Ruby-GNOME2.
|
6
|
+
|
7
|
+
$Date: 2006/06/17 13:18:12 $
|
8
|
+
$Id: xbm_cursor.rb,v 1.6 2006/06/17 13:18:12 mutoh Exp $
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'gtk2'
|
12
|
+
|
13
|
+
cursor_bits = [
|
14
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
15
|
+
0xf0, 0x3f, 0x00, 0xe0, 0x78, 0x00, 0xe0, 0x70, 0x00, 0xe0, 0x70, 0x00,
|
16
|
+
0xe0, 0x38, 0x00, 0xe0, 0x1f, 0x00, 0xe0, 0x1d, 0x00, 0xe0, 0x38, 0x00,
|
17
|
+
0xe0, 0x78, 0x00, 0xe0, 0xf0, 0x00, 0xf0, 0xf3, 0x01, 0xf0, 0xe3, 0x01,
|
18
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00].pack("c*")
|
19
|
+
|
20
|
+
cursor_mask_bits = [
|
21
|
+
0x63, 0x8e, 0x0f, 0x67, 0x8e, 0x0f, 0x06, 0xc6, 0x07, 0x04, 0x00, 0x00,
|
22
|
+
0xf0, 0x3f, 0x08, 0xe7, 0x78, 0x0e, 0xe7, 0x70, 0x0f, 0xe4, 0x70, 0x03,
|
23
|
+
0xe0, 0x38, 0x00, 0xe7, 0x1f, 0x0c, 0xe7, 0x1d, 0x0f, 0xe0, 0x38, 0x0e,
|
24
|
+
0xe0, 0x78, 0x08, 0xe7, 0xf0, 0x00, 0xf7, 0xf3, 0x01, 0xf0, 0xe3, 0x01,
|
25
|
+
0x04, 0x00, 0x00, 0x46, 0x24, 0x06, 0x67, 0x66, 0x0e, 0x67, 0x66, 0x0e].pack("c*")
|
26
|
+
|
27
|
+
window = Gtk::Window.new("Gdk::Cursor sample")
|
28
|
+
window.signal_connect("destroy"){Gtk.main_quit}
|
29
|
+
window.realize
|
30
|
+
|
31
|
+
source = Gdk::Pixmap.create_from_data(window.window, cursor_bits, 19, 19)
|
32
|
+
mask = Gdk::Pixmap.create_from_data(window.window, cursor_mask_bits, 19, 19)
|
33
|
+
|
34
|
+
fg = Gdk::Color.new(65535, 0, 0)
|
35
|
+
bg = Gdk::Color.new(65535, 65535, 0)
|
36
|
+
|
37
|
+
cursor = Gdk::Cursor.new(source, mask, fg, bg, 10, 10)
|
38
|
+
|
39
|
+
window.window.set_cursor(cursor)
|
40
|
+
window.add(Gtk::Label.new("Put your cursor on this window."))
|
41
|
+
window.set_default_size(200, 100).show_all
|
42
|
+
|
43
|
+
Gtk.main
|
@@ -0,0 +1,116 @@
|
|
1
|
+
/* XPM */
|
2
|
+
static char * DRings_xpm[] = {
|
3
|
+
"48 48 65 1",
|
4
|
+
" c None",
|
5
|
+
". c #104010404103",
|
6
|
+
"X c #1040208130C2",
|
7
|
+
"o c #104014515144",
|
8
|
+
"O c #000010402081",
|
9
|
+
"+ c #1040104030C2",
|
10
|
+
"@ c #208120815144",
|
11
|
+
"# c #28A241035965",
|
12
|
+
"$ c #30C230C26185",
|
13
|
+
"% c #208130C24103",
|
14
|
+
"& c #104010402081",
|
15
|
+
"* c #104000002081",
|
16
|
+
"= c #000010401040",
|
17
|
+
"- c #492441036185",
|
18
|
+
"; c #596559659E79",
|
19
|
+
": c #30C220815144",
|
20
|
+
"> c #0820186128A2",
|
21
|
+
", c #000000001040",
|
22
|
+
"< c #2081104030C2",
|
23
|
+
"1 c #514459659658",
|
24
|
+
"2 c #514455556185",
|
25
|
+
"3 c #104000001040",
|
26
|
+
"4 c #000008200000",
|
27
|
+
"5 c #618569A6AEBA",
|
28
|
+
"6 c #618569A69658",
|
29
|
+
"7 c #410345148E38",
|
30
|
+
"8 c #104020814103",
|
31
|
+
"9 c #79E782079658",
|
32
|
+
"0 c #208120814103",
|
33
|
+
"q c #596571C69E79",
|
34
|
+
"w c #4103514471C6",
|
35
|
+
"e c #2081208130C2",
|
36
|
+
"r c #6185618571C6",
|
37
|
+
"t c #28A228A25965",
|
38
|
+
"y c #596561858617",
|
39
|
+
"u c #96589E79BEFB",
|
40
|
+
"i c #28A230C271C6",
|
41
|
+
"p c #38E345145144",
|
42
|
+
"a c #79E78207A699",
|
43
|
+
"s c #30C2492469A6",
|
44
|
+
"d c #410330C25965",
|
45
|
+
"f c #410351446185",
|
46
|
+
"g c #AEBAAAAAD75C",
|
47
|
+
"h c #38E338E34103",
|
48
|
+
"j c #EFBEEBADEFBE",
|
49
|
+
"k c #208130C25144",
|
50
|
+
"l c #9658A289DF7D",
|
51
|
+
"z c #208110404103",
|
52
|
+
"x c #28A228A26185",
|
53
|
+
"c c #8E388A28BEFB",
|
54
|
+
"v c #208118612081",
|
55
|
+
"b c #38E3451479E7",
|
56
|
+
"n c #4924618579E7",
|
57
|
+
"m c #86178617B6DA",
|
58
|
+
"M c #30C220814103",
|
59
|
+
"N c #104030C25144",
|
60
|
+
"B c #4103410371C6",
|
61
|
+
"V c #86178A28D75C",
|
62
|
+
"C c #DF7DDB6CE79D",
|
63
|
+
"Z c #BEFBC30BD75C",
|
64
|
+
"A c #410330C271C6",
|
65
|
+
"S c #30C228A230C2",
|
66
|
+
"D c #082008201861",
|
67
|
+
"F c #186130C238E3",
|
68
|
+
"G c #0000208130C2",
|
69
|
+
" .Xo ",
|
70
|
+
" O+O@#$% ",
|
71
|
+
" &*=+X-;: ",
|
72
|
+
" >&=,=<11#2 ",
|
73
|
+
" +O34,X567& ",
|
74
|
+
" 8X+=,90q9w. ",
|
75
|
+
" +e<>3r tyu-& ",
|
76
|
+
" Xi%.= paus+ ",
|
77
|
+
" Od-@= fga$h ",
|
78
|
+
" @y7X, Xrjak ",
|
79
|
+
" 2:eaw+ $ag;@ ",
|
80
|
+
" .X@8@k@o@X+ +pl9tO ",
|
81
|
+
" +zX@x$$isikt8o02crv ",
|
82
|
+
" 8@%ip7757ywbs$Ohn6#. ",
|
83
|
+
" &0%$p7r215ybw1pzp2-0= ",
|
84
|
+
" 8tk$#yw21665n;1+%-p$O ",
|
85
|
+
" O<e7pbryq5am9ay6XMpM>3& ",
|
86
|
+
" 9.NtpBw16amclVcm1t%kX*88 ",
|
87
|
+
" +&etd7r6y9ulgglm6>e>3s@83 ",
|
88
|
+
" +0k$y-y69cgCCCZVam%+#ik8X ",
|
89
|
+
" O&oi$d725amgCjCZu962ybtx8+p ",
|
90
|
+
" &X0x$sBym9VZCCCZca;yBbi%08& ",
|
91
|
+
" =++@sApMy5muZZgum6y2wds:>+& ",
|
92
|
+
" #tp;1;yB#i25cVucma5;w-pti@8& ",
|
93
|
+
" .#2alumnBp:@1r59y9y6ywBS$%0X+= ",
|
94
|
+
" %$wmZVu;#tX8X07r1656y2wbp$k@%@OD ",
|
95
|
+
" 0Byc9a;h%0>&D&hBrr2r1bwB-AF:0<&*= ",
|
96
|
+
" kBf;yr#@X+&<%MkhsBwBwpsB#Bktkt8+Oh ",
|
97
|
+
" xt7B-t8*,3O.X00:$i#dBd#bptFek0X.+* ",
|
98
|
+
" Xt#b#@=, =&O+X0Ft%ibsp$p$ki%l5sX&= ",
|
99
|
+
" &<kvX&4 +O*&<X0e:%$pAti%:edugn0= ",
|
100
|
+
" +X@&+, V,O&>+Xt>tktktv0%@k;Cls+ ",
|
101
|
+
" =+O*4*X:p;9cy3&&8ve0FMtt$ee0>z7cZ6k ",
|
102
|
+
" D=D4,=.k$sBs$ee=+X0Fk%-#t%0X&O0nu9bG ",
|
103
|
+
" ,,434*&ze@F<eeeeee><tdhdSMe<&&XAaawx ",
|
104
|
+
" 4,4,=+><peeeeee&=<%M%$hSF0X&O&kw5r%Z ",
|
105
|
+
" D&vSFMF<>&D =0S-2i& ",
|
106
|
+
" +>puB> >0h7s. ",
|
107
|
+
" SM5VqM &0t#$8 ",
|
108
|
+
" XpVV70 &0kMk. ",
|
109
|
+
" XdyB%z *X<%@+ ",
|
110
|
+
" &k$b0X+=8X08o ",
|
111
|
+
" &e:e+=*X.X+& ",
|
112
|
+
" +X.O+X0O.=, ",
|
113
|
+
" +>&+0>3&* ",
|
114
|
+
" &X0k+O, ",
|
115
|
+
" >v,3 ",
|
116
|
+
" "};
|