From: Daniel W. <dm...@lu...> - 2013-02-15 01:57:34
|
diffing dir... Sun Oct 7 05:08:13 BST 2012 Hamish Mackenzie <ham...@go...> * More Gtk 3 fixes and OS X support for Gtk 3 Ignore-this: c57ad051ed4ef676dae81f344622bb78 hunk ./gtk/Graphics/UI/Gtk.chs 50 + module Graphics.UI.Gtk.General.Settings, hunk ./gtk/Graphics/UI/Gtk.chs 282 +import Graphics.UI.Gtk.General.Settings hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 66 +#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 68 +#endif hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 89 -#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 90 -#endif hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 123 + widgetGetWindow, hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 234 + widgetGetAllocatedWidth, + widgetGetAllocatedHeight, hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 424 -import Graphics.UI.Gtk.Gdk.Enums (EventMask(..), ExtensionMode(..)) +import Graphics.UI.Gtk.Gdk.Enums (EventMask(..) +#if GTK_MAJOR_VERSION < 3 + , ExtensionMode(..)) +#endif + ) hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 530 -#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 537 -#endif hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 1306 +#if GTK_CHECK_VERSION(2,14,0) +-- | Returns the widget's window if it is realized, Nothing otherwise +-- +-- * Available since Gtk+ version 2.14 +-- +widgetGetWindow :: WidgetClass self => self -> IO (Maybe DrawWindow) +widgetGetWindow self = + maybeNull (makeNewGObject mkDrawWindow) $ + {# call gtk_widget_get_window #} + (toWidget self) +#endif + hunk ./gtk/Graphics/UI/Gtk/Abstract/Widget.chs 2303 +-- | Returns the width that has currently been allocated to widget. This function is intended +-- | to be used when implementing handlers for the "draw" function. +widgetGetAllocatedWidth :: WidgetClass self => self -> IO Int +widgetGetAllocatedWidth widget = + liftM fromIntegral $ {#call widget_get_allocated_width#} (toWidget widget) + +-- | Returns the height that has currently been allocated to widget. This function is intended +-- | to be used when implementing handlers for the "draw" function. +widgetGetAllocatedHeight :: WidgetClass self => self -> IO Int +widgetGetAllocatedHeight widget = + liftM fromIntegral $ {#call widget_get_allocated_height#} (toWidget widget) + hunk ./gtk/Graphics/UI/Gtk/Embedding/Embedding.hsc 30 -#if !defined(WIN32) || GTK_CHECK_VERSION(2,8,0) +#if defined(HAVE_PLUG_AND_SOCKET) && (!defined(WIN32) || GTK_CHECK_VERSION(2,8,0)) hunk ./gtk/Graphics/UI/Gtk/Embedding/Embedding.hsc 38 -#if !defined(WIN32) || GTK_CHECK_VERSION(2,8,0) +#if defined(HAVE_PLUG_AND_SOCKET) && (!defined(WIN32) || GTK_CHECK_VERSION(2,8,0)) hunk ./gtk/Graphics/UI/Gtk/Embedding/Plug.chs 51 -#if !defined(WIN32) || GTK_CHECK_VERSION(2,8,0) +#if defined(HAVE_PLUG_AND_SOCKET) && (!defined(WIN32) || GTK_CHECK_VERSION(2,8,0)) hunk ./gtk/Graphics/UI/Gtk/Embedding/Plug.chs 95 -#if !defined(WIN32) || GTK_CHECK_VERSION(2,8,0) +#if defined(HAVE_PLUG_AND_SOCKET) && (!defined(WIN32) || GTK_CHECK_VERSION(2,8,0)) hunk ./gtk/Graphics/UI/Gtk/Embedding/Socket.chs 85 -#if !defined(WIN32) || GTK_CHECK_VERSION(2,8,0) +#if defined(HAVE_PLUG_AND_SOCKET) && (!defined(WIN32) || GTK_CHECK_VERSION(2,8,0)) hunk ./gtk/Graphics/UI/Gtk/Embedding/Socket.chs 131 -#if !defined(WIN32) || GTK_CHECK_VERSION(2,8,0) +#if defined(HAVE_PLUG_AND_SOCKET) && (!defined(WIN32) || GTK_CHECK_VERSION(2,8,0)) hunk ./gtk/Graphics/UI/Gtk/Gdk/Enums.chs 34 - ExtensionMode(..), hunk ./gtk/Graphics/UI/Gtk/Gdk/Enums.chs 46 + ExtensionMode(..), hunk ./gtk/Graphics/UI/Gtk/Gdk/Enums.chs 169 +#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/Gdk/Enums.chs 176 -#if GTK_MAJOR_VERSION < 3 addfile ./gtk/Graphics/UI/Gtk/General/Settings.chs hunk ./gtk/Graphics/UI/Gtk/General/Settings.chs 1 +{-# LANGUAGE CPP #-} +-- -*-haskell-*- +-- GIMP Toolkit (GTK) Clipboard +-- +-- Author : Axel Simon +-- +-- Created: 26 March 2007 +-- +-- Copyright (C) 2007 Axel Simon +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public +-- License as published by the Free Software Foundation; either +-- version 2.1 of the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- I removed all definitions for the clipboard by Juergen Nicklisch since +-- the way the clipboards were selected didn't tie in with the Selection +-- module. +-- +-- | +-- Maintainer : gtk...@li... +-- Stability : provisional +-- Portability : portable (depends on GHC) +-- +-- Storing data on clipboards +-- +module Graphics.UI.Gtk.General.Settings ( + +-- * Class Hierarchy +-- +-- | +-- @ +-- | 'GObject' +-- | +----Settings +-- @ + +-- * Types + Settings, + SettingsClass, + castToSettings, gTypeSettings, + toSettings, + +-- * Methods + settingsGetDefault, +#if GTK_CHECK_VERSION(2,2,0) + settingsGetForScreen, +#endif + settingsSetLongProperty, + settingsSetStringProperty + ) where + +import System.Glib.FFI +import System.Glib.UTFString +{#import Graphics.UI.Gtk.Types#} +{#import Graphics.UI.Gtk.General.DNDTypes#} (SelectionTag, TargetTag, + atomNew, Atom(..)) +{#import Graphics.UI.Gtk.General.Selection#} (InfoId, SelectionDataM) +import Graphics.UI.Gtk.General.Structs ( + selectionPrimary, + selectionSecondary, + selectionClipboard, + withTargetEntries) +import Control.Monad ( liftM ) +import Control.Monad.Trans ( liftIO ) +import Control.Monad.Reader (runReaderT, ask) +import Data.IORef ( newIORef, readIORef, writeIORef ) + +{# context lib="gtk" prefix="gtk" #} + + +-------------------- +-- Methods + +-- | Gets the Settings object for the default GDK screen, creating +-- it if necessary. See 'settingsGetForScreen'. +-- +settingsGetDefault :: + IO (Maybe Settings) -- ^ returns a Settings. If there is no default + -- screen, then returns Nothing. +settingsGetDefault = + maybeNull (makeNewGObject mkSettings) + {# call gtk_settings_get_default #} + +#if GTK_CHECK_VERSION(2,2,0) +-- | Gets the Settings object for screen, creating it if necessary. +-- +settingsGetForScreen :: + ScreenClass screen + => screen + -> IO Settings +settingsGetForScreen screen = + makeNewGObject mkSettings $ + {# call gtk_settings_get_for_screen #} + (toScreen screen) +#endif + +settingsSetLongProperty :: + SettingsClass settings + => settings + -> String + -> Int + -> String + -> IO () +settingsSetLongProperty settings name value origin = + withUTFString name $ \namePtr -> + withUTFString origin $ \originPtr -> + {# call gtk_settings_set_long_property #} + (toSettings settings) + namePtr + (fromIntegral value) + originPtr + +settingsSetStringProperty :: + SettingsClass settings + => settings + -> String + -> String + -> String + -> IO () +settingsSetStringProperty settings name value origin = + withUTFString name $ \namePtr -> + withUTFString value $ \valuePtr -> + withUTFString origin $ \originPtr -> + {# call gtk_settings_set_string_property #} + (toSettings settings) + namePtr + valuePtr + originPtr + hunk ./gtk/Graphics/UI/Gtk/General/Structs.hsc 182 +#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/General/Structs.hsc 185 +#endif hunk ./gtk/Graphics/UI/Gtk/General/Structs.hsc 188 +#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/General/Structs.hsc 201 -#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/General/Structs.hsc 605 -#elif GTK_MAJOR_VERSION < 3 || (!defined(WIN32) && !HAVE_QUARTZ_GTK) -#if GTK_MAJOR_VERSION < 3 -newtype NativeWindowId = NativeWindowId #{gtk2hs_type GdkNativeWindow} deriving (Eq, Show) +#elif defined(HAVE_QUARTZ_GTK) +newtype NativeWindowId = NativeWindowId (Maybe DrawWindow) deriving (Eq) +unNativeWindowId :: NativeWindowId -> Maybe DrawWindow +unNativeWindowId (NativeWindowId id) = id +toNativeWindowId :: Maybe DrawWindow -> NativeWindowId +toNativeWindowId = NativeWindowId +fromNativeWindowId :: NativeWindowId -> Maybe DrawWindow +fromNativeWindowId = unNativeWindowId +nativeWindowIdNone :: NativeWindowId +nativeWindowIdNone = NativeWindowId Nothing hunk ./gtk/Graphics/UI/Gtk/General/Structs.hsc 616 -newtype NativeWindowId = NativeWindowId #{type Window} deriving (Eq, Show) -#endif +newtype NativeWindowId = NativeWindowId #{gtk2hs_type GdkNativeWindow} deriving (Eq, Show) hunk ./gtk/Graphics/UI/Gtk/General/Structs.hsc 670 - error "drawableGetID: not supported with a GTK using a Quartz backend" + return $ Just (DrawWindow drawable) conflictor {{ |: hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 104 + menuItemActivatedItem, + menuItemActivated, |: hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 104 +#if GTK_MAJOR_VERSION < 3 }} [] |hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 104 |+#if GTK_MAJOR_VERSION < 3 |: hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 104 -#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 110 +#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 354 -#if GTK_MAJOR_VERSION < 3 conflictor {{ |: hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 359 +menuItemActivatedItem :: MenuItemClass self => Signal self (IO ()) +menuItemActivatedItem = Signal (connect_NONE__NONE "activate-item") + +-- | Deprecated. See 'menuItemActivatedItem'. |: hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 359 +-- Removed in Gtk3. }} [] |hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 359 |+-- Removed in Gtk3. |: hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 359 --- Removed in Gtk3. hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 364 --- Removed in Gtk3. -menuItemSelect :: ItemClass i => Signal i (IO ()) +menuItemSelect :: MenuItemClass i => Signal i (IO ()) hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 369 --- Removed in Gtk3. -menuItemDeselect :: ItemClass i => Signal i (IO ()) +menuItemDeselect :: MenuItemClass i => Signal i (IO ()) hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 374 --- Removed in Gtk3. -menuItemToggle :: ItemClass i => Signal i (IO ()) +menuItemToggle :: MenuItemClass i => Signal i (IO ()) hunk ./gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs 377 +#if GTK_MAJOR_VERSION < 3 hunk ./gtk/Graphics/UI/Gtk/Windows/Dialog.chs 112 - dialogGetActionArea, hunk ./gtk/Graphics/UI/Gtk/Windows/Dialog.chs 113 + dialogGetContentArea, + dialogGetActionArea, hunk ./gtk/Graphics/UI/Gtk/Windows/Dialog.chs 375 +#if GTK_MAJOR_VERSION >= 3 +-- | Returns the content area of dialog. +dialogGetContentArea :: DialogClass self => self -> IO Widget +dialogGetContentArea self = + makeNewObject mkWidget $ + {#call gtk_dialog_get_content_area #} + (toDialog self) + +-- | Returns the action area of dialog. +-- +-- * This is useful to add some special widgets that cannot be added with +-- dialogAddActionWidget. +-- +dialogGetActionArea :: DialogClass self => self -> IO Widget +dialogGetActionArea self = + makeNewObject mkWidget $ + {#call gtk_dialog_get_content_area #} + (toDialog self) +#else +dialogGetContentArea = dialogGetUpper +#endif + hunk ./gtk/Graphics/UI/Gtk/Windows/Dialog.chs 475 + hunk ./gtk/Graphics/UI/Gtk/Windows/Window.chs 153 +#if GTK_MAJOR_VERSION >= 3 hunk ./gtk/Graphics/UI/Gtk/Windows/Window.chs 155 +#endif + windowHasResizeGrip, hunk ./gtk/Graphics/UI/Gtk/Windows/Window.chs 216 +#if GTK_MAJOR_VERSION >= 3 + windowSetHasResizeGrip, + windowGetHasResizeGrip, +#endif hunk ./gtk/Graphics/UI/Gtk/Windows/Window.chs 372 +#if GTK_MAJOR_VERSION >= 3 +-- | Sets whether the window has a resize grip. @True@ by default. +-- +windowSetHasResizeGrip :: WindowClass self => self -> Bool -> IO () +windowSetHasResizeGrip self setting = + {# call window_set_has_resize_grip #} + (toWindow self) + (fromBool setting) + +-- | Returns whether the window has a resize grip. +-- +windowGetHasResizeGrip :: WindowClass self => self -> IO Bool +windowGetHasResizeGrip self = + liftM toBool $ + {# call unsafe window_get_has_resize_grip #} + (toWindow self) +#endif + hunk ./gtk/Graphics/UI/Gtk/Windows/Window.chs 2030 +-- | If @True@, window has a resize grip. +-- +-- Default value: @True@ +-- +windowHasResizeGrip :: WindowClass self => Attr self Bool +windowHasResizeGrip = newAttr + windowGetHasResizeGrip + windowSetHasResizeGrip + hunk ./gtk/gtk.cabal 222 + Graphics.UI.Gtk.General.Settings hunk ./gtk/gtk.cabal 382 - x-c2hs-Header: wingtk.h hunk ./gtk/gtk.cabal 384 - else [_$_] - if flag(gtk3) - x-c2hs-Header: gtk2hsX.h - else - x-c2hs-Header: gtk/gtk.h + [_$_] + x-c2hs-Header: hsgtk.h hunk ./gtk/gtk.cabal 392 - x-Types-Tag: default plugNsocket + if os(windows) || flag(have-quartz-gtk) + x-Types-Tag: default + else + x-Types-Tag: default plugNsocket + cpp-options: -DHAVE_PLUG_AND_SOCKET + addfile ./gtk/hierarchy3.list hunk ./gtk/hierarchy3.list 1 +# This list is the result of a copy-and-paste from the GtkObject hierarchy +# html documentation. Deprecated widgets are uncommented. Some additional +# object have been defined at the end of the copied list. + +# The Gtk prefix of every object is removed, the other prefixes are +# kept. The indentation implies the object hierarchy. In case the +# type query function cannot be derived from the name or the type name +# is different, an alternative name and type query function can be +# specified by appending 'as typename, <query_func>'. In case this +# function is not specified, the <name> is converted to +# gtk_<name'>_get_type where <name'> is <name> where each upperscore +# letter is converted to an underscore and lowerletter. The underscore +# is omitted if an upperscore letter preceeded: GtkHButtonBox -> +# gtk_hbutton_box_get_type. The generation of a type can be +# conditional by appending 'if <tag>'. Such types are only produces if +# --tag=<tag> is given on the command line of TypeGenerator. + +# Before these conditions, two additional properties may be given: +# * noDestr : ignores the destructor given by the --destructor +# command line argument and uses 'objectUnref' +# * noEq : do not make this type an instance of Eq; used +# if a different equality instance is manually +# defined later + GObject [_$_] + AtkObject + GtkAccessible[_^I_][_^I_][_$_] + GdkKeymap[_^I_][_^I_][_^I_][_^I_][_$_] + GdkDisplayManager[_^I_][_^I_][_$_] + GdkAppLaunchContext[_^I_][_^I_][_$_] + GtkPrintSettings[_^I_][_^I_][_$_] + GtkPrintOperation[_^I_][_^I_][_$_] + GtkPrintOperationPreview [_$_] + GtkPageSetup[_^I_][_^I_][_^I_][_$_] + GtkPrintContext[_^I_][_^I_][_^I_][_$_] + GtkRecentChooser[_^I_][_^I_][_$_] + GtkRecentManager[_^I_] [_$_] + GdkWindow as DrawWindow, gdk_window_get_type + GdkGLPixmap if gtkglext + GdkGLWindow if gtkglext + GdkScreen[_^I_][_^I_][_$_] + GdkDisplay[_^I_][_^I_][_$_] + GdkVisual + GdkDevice + GtkSettings + GtkTextBuffer + GtkSourceBuffer if sourceview + GtkSourceBuffer if gtksourceview2 + GtkTextTag + GtkSourceTag if sourceview + GtkTextTagTable + GtkSourceTagTable if sourceview + GtkStyle + GtkRcStyle + GdkDragContext + GdkPixbuf noDestr + GdkPixbufAnimation noDestr + GdkPixbufSimpleAnim noDestr + GdkPixbufAnimationIter noDestr + GtkTextChildAnchor + GtkTextMark + GtkSourceMarker if sourceview + GtkSourceMark if gtksourceview2 + GtkRecentFilter[_^I_][_^I_][_$_] + GtkWidget + GtkHSV as HSV, gtk_hsv_get_type [_$_] + GtkMisc + GtkLabel + GtkAccelLabel + GtkArrow + GtkImage + GtkContainer + GtkToolPalette[_^I_][_^I_][_$_] + GtkToolItemGroup[_^I_][_$_] + WebKitWebView as WebView, webkit_web_view_get_type if webkit [_$_] + GtkBin + GtkAlignment + GtkFrame + GtkAspectFrame + GtkButton + GtkScaleButton[_^I_][_^I_][_$_] + GtkVolumeButton[_^I_][_^I_][_$_] + GtkLinkButton[_^I_][_^I_][_$_] + GtkToggleButton + GtkCheckButton + GtkRadioButton + GtkColorButton[_^I_][_^I_][_$_] + GtkFontButton[_^I_][_^I_][_$_] + GtkMenuItem + GtkCheckMenuItem + GtkRadioMenuItem + GtkTearoffMenuItem + GtkImageMenuItem + GtkSeparatorMenuItem + GtkWindow + GtkAssistant[_^I_][_^I_][_$_] + GtkOffscreenWindow[_^I_][_$_] + GtkDialog + GtkAboutDialog[_^I_][_^I_][_$_] + GtkColorSelectionDialog + GtkFileChooserDialog[_^I_][_$_] + GtkFontSelectionDialog + GtkMessageDialog + GtkPlug if plugNsocket + GtkEventBox + GtkHandleBox + GtkScrolledWindow + GtkViewport + GtkExpander[_^I_][_^I_][_^I_][_$_] + GtkComboBox[_^I_][_^I_][_^I_][_$_] + GtkToolItem[_^I_][_^I_][_^I_][_$_] + GtkToolButton[_^I_][_^I_][_$_] + GtkMenuToolButton[_^I_][_$_] + GtkToggleToolButton[_^I_][_$_] + GtkRadioToolButton[_^I_][_$_] + GtkSeparatorToolItem[_^I_][_$_] + GtkMozEmbed if mozembed + VteTerminal as Terminal if vte + GtkBox + GtkButtonBox + GtkHButtonBox + GtkVButtonBox + GtkVBox + GtkRecentChooserWidget[_^I_][_^I_][_$_] + GtkColorSelection + GtkFontSelection + GtkFileChooserWidget[_^I_][_$_] + GtkHBox + GtkInfoBar [_$_] + GtkFileChooserButton[_^I_][_$_] + GtkStatusbar + GtkFixed + GtkPaned + GtkHPaned + GtkVPaned + GtkIconView[_^I_][_^I_][_$_] + GtkLayout + GtkMenuShell + GtkMenu + GtkRecentChooserMenu[_^I_][_^I_][_$_] + GtkMenuBar + GtkNotebook + GtkSocket if plugNsocket + GtkTable + GtkTextView + GtkSourceView if sourceview + GtkSourceView if gtksourceview2 + GtkToolbar + GtkTreeView + GtkCalendar + GtkCellView[_^I_][_^I_][_$_] + GtkDrawingArea + GtkSpinner[_^I_][_^I_][_$_] + GtkEntry + GtkSpinButton + GtkRange + GtkScale + GtkHScale + GtkVScale + GtkScrollbar + GtkHScrollbar + GtkVScrollbar + GtkSeparator + GtkHSeparator + GtkVSeparator + GtkInvisible + GtkProgressBar + GtkAdjustment + GtkIMContext + GtkIMMulticontext + GtkIMContextSimple +[_^I_][_^I_][_^I_][_$_] +# These object were added by hand because they do not show up in the hierarchy +# chart. +# These are derived from GtkObject: + GtkTreeViewColumn + GtkCellRenderer + GtkCellRendererSpinner[_^I_][_^I_][_$_] + GtkCellRendererPixbuf + GtkCellRendererText + GtkCellRendererAccel [_$_] + GtkCellRendererSpin [_$_] + GtkCellRendererCombo[_^I_][_$_] + GtkCellRendererToggle + GtkCellRendererProgress[_^I_][_$_] + GtkFileFilter + GtkBuilder [_$_] +# These are actually interfaces, but all objects that implement it are at +# least GObjects. + GtkCellLayout[_^I_][_^I_][_^I_][_$_] + GtkTreeSortable[_^I_][_^I_][_^I_][_$_] + GtkTooltip[_^I_][_^I_][_^I_][_^I_][_$_] +# These are derived from GObject: + GtkStatusIcon [_$_] + GtkTreeSelection + GtkTreeModel + GtkTreeStore + GtkListStore + GtkTreeModelSort + GtkTreeModelFilter + GtkIconFactory + GtkIconTheme + GtkSizeGroup + GtkClipboard[_^I_][_^I_][_^I_][_$_] + GtkAccelGroup + GtkAccelMap[_^I_][_^I_][_^I_][_$_] + GtkEntryCompletion[_^I_][_^I_][_$_] + GtkEntryBuffer[_^I_][_^I_][_$_] + GtkAction[_^I_][_^I_][_^I_][_$_] + GtkRecentAction[_^I_][_^I_][_$_] + GtkToggleAction[_^I_][_^I_][_$_] + GtkRadioAction[_^I_][_^I_][_$_] + GtkActionGroup[_^I_][_^I_][_^I_][_$_] + GtkUIManager[_^I_][_^I_][_^I_][_$_] + GtkWindowGroup + GtkSourceLanguage if sourceview + GtkSourceLanguage if gtksourceview2 + GtkSourceLanguagesManager if sourceview + GtkSourceLanguageManager if gtksourceview2 + GladeXML as GladeXML, glade_xml_get_type if libglade + GConfClient as GConf if gconf +# These ones are actualy interfaces, but interface implementations are GObjects + GtkCellEditable + GtkEditable + GtkSourceStyle as SourceStyleObject if gtksourceview2 + GtkSourceStyleScheme if sourceview + GtkSourceStyleScheme if gtksourceview2 + GtkSourceStyleSchemeManager if gtksourceview2 + GtkFileChooser[_^I_][_^I_][_^I_][_$_] +## These are Pango structures + PangoContext as PangoContext, pango_context_get_type if pango + PangoLayout as PangoLayoutRaw, pango_layout_get_type if pango + PangoFont as Font, pango_font_get_type if pango + PangoFontFamily as FontFamily, pango_font_family_get_type if pango + PangoFontFace as FontFace, pango_font_face_get_type if pango + PangoFontMap as FontMap, pango_font_face_get_type if pango + PangoFontset as FontSet, pango_fontset_get_type if pango +## This type is only available for PANGO_ENABLE_BACKEND compiled source +## PangoFontsetSimple as FontSetSimple, pango_fontset_simple_get_type + +## GtkGlExt classes + GdkGLContext if gtkglext + GdkGLConfig if gtkglext + GdkGLDrawable if gtkglext + +## GnomeVFS classes + GnomeVFSVolume as Volume, gnome_vfs_volume_get_type if gnomevfs + GnomeVFSDrive as Drive, gnome_vfs_drive_get_type if gnomevfs + GnomeVFSVolumeMonitor as VolumeMonitor, gnome_vfs_volume_monitor_get_type if gnomevfs + +## GIO classes +# Note on all the "as" clauses: the prefix G is unfortunate since it leads +# to two consecutive upper case letters which are not translated with an +# underscore each (e.g. GConf -> gconf, GtkHButtonBox -> gtk_hbutton_box). +# GUnixMountMonitor as UnixMountMonitor, g_unix_mount_monitor_get_type if gio + GOutputStream as OutputStream, g_output_stream_get_type if gio + GFilterOutputStream as FilterOutputStream, g_filter_output_stream_get_type if gio + GDataOutputStream as DataOutputStream, g_data_output_stream_get_type if gio + GBufferedOutputStream as BufferedOutputStream, g_buffered_output_stream_get_type if gio +# GUnixOutputStream as UnixOutputStream, g_unix_output_stream_get_type if gio + GFileOutputStream as FileOutputStream, g_file_output_stream_get_type if gio + GMemoryOutputStream as MemoryOutputStream, g_memory_output_stream_get_type if gio + GInputStream as InputStream, g_input_stream_get_type if gio +# GUnixInputStream as UnixInputStream, g_unix_input_stream_get_type if gio + GMemoryInputStream as MemoryInputStream, g_memory_input_stream_get_type if gio + GFilterInputStream as FilterInputStream, g_filter_input_stream_get_type if gio + GBufferedInputStream as BufferedInputStream, g_buffered_input_stream_get_type if gio + GDataInputStream as DataInputStream, g_data_input_stream_get_type if gio + GFileInputStream as FileInputStream, g_file_input_stream_get_type if gio +# GDesktopAppInfo as DesktopAppInfo, g_desktop_app_info_get_type if gio + GFileMonitor as FileMonitor, g_file_monitor_get_type if gio + GVfs as Vfs, g_vfs_get_type if gio + GMountOperation as MountOperation, g_mount_operation_get_type if gio + GThemedIcon as ThemedIcon, g_themed_icon_get_type if gio + GEmblem as Emblem, g_emblem_get_type if gio + GEmblemedIcon as EmblemedIcon, g_emblemed_icon_get_type if gio + GFileEnumerator as FileEnumerator, g_file_enumerator_get_type if gio + GFilenameCompleter as FilenameCompleter, g_filename_completer_get_type if gio + GFileIcon as FileIcon, g_file_icon_get_type if gio + GVolumeMonitor as VolumeMonitor, g_volume_monitor_get_type if gio + GCancellable as Cancellable, g_cancellable_get_type if gio + GSimpleAsyncResult as SimpleAsyncResult, g_async_result_get_type if gio + GFileInfo as FileInfo, g_file_info_get_type if gio + GAppLaunchContext as AppLaunchContext, g_app_launch_context_get_type if gio +## these are actually GInterfaces + GIcon as Icon, g_icon_get_type if gio + GSeekable as Seekable, g_seekable_get_type if gio + GAppInfo as AppInfo, g_app_info_get_type if gio + GVolume as Volume, g_volume_get_type if gio + GAsyncResult as AsyncResult, g_async_result_get_type if gio + GLoadableIcon as LoadableIcon, g_loadable_icon_get_type if gio + GDrive as Drive, g_drive_get_type if gio + GFile noEq as File, g_file_get_type if gio + GMount as Mount, g_mount_get_type if gio + +## GStreamer classes + GstObject as Object, gst_object_get_type if gstreamer + GstPad as Pad, gst_pad_get_type if gstreamer + GstGhostPad as GhostPad, gst_ghost_pad_get_type if gstreamer + GstPluginFeature as PluginFeature, gst_plugin_feature_get_type if gstreamer + GstElementFactory as ElementFactory, gst_element_factory_get_type if gstreamer + GstTypeFindFactory as TypeFindFactory, gst_type_find_factory_get_type if gstreamer + GstIndexFactory as IndexFactory, gst_index_factory_get_type if gstreamer + GstElement as Element, gst_element_get_type if gstreamer + GstBin as Bin, gst_bin_get_type if gstreamer + GstPipeline as Pipeline, gst_pipeline_get_type if gstreamer + GstImplementsInterface as ImplementsInterface, gst_implements_interface_get_type if gstreamer + GstTagSetter as TagSetter, gst_tag_setter_get_type if gstreamer + GstBaseSrc as BaseSrc, gst_base_src_get_type if gstreamer + GstPushSrc as PushSrc, gst_push_src_get_type if gstreamer + GstBaseSink as BaseSink, gst_base_sink_get_type if gstreamer + GstBaseTransform as BaseTransform, gst_base_transform_get_type if gstreamer + GstPlugin as Plugin, gst_plugin_get_type if gstreamer + GstRegistry as Registry, gst_registry_get_type if gstreamer + GstBus as Bus, gst_bus_get_type if gstreamer + GstClock as Clock, gst_clock_get_type if gstreamer + GstAudioClock as AudioClock, gst_audio_clock_get_type if gstreamer + GstSystemClock as SystemClock, gst_system_clock_get_type if gstreamer + GstNetClientClock as NetClientClock, gst_net_client_clock_get_type if gstreamer + GstIndex as Index, gst_index_get_type if gstreamer + GstPadTemplate as PadTemplate, gst_pad_template_get_type if gstreamer + GstTask as Task, gst_task_get_type if gstreamer + GstXML as XML, gst_xml_get_type if gstreamer + GstChildProxy as ChildProxy, gst_child_proxy_get_type if gstreamer + GstCollectPads as CollectPads, gst_collect_pads_get_type if gstreamer +## these are actually GInterfaces + GstURIHandler as URIHandler, gst_uri_handler_get_type if gstreamer + GstAdapter as Adapter, gst_adapter_get_type if gstreamer + GstController as Controller, gst_controller_get_type if gstreamer + + WebKitWebFrame as WebFrame, webkit_web_frame_get_type if webkit [_$_] + WebKitWebSettings as WebSettings, webkit_web_settings_get_type if webkit + WebKitNetworkRequest as NetworkRequest, webkit_network_request_get_type if webkit + WebKitNetworkResponse as NetworkResponse, webkit_network_response_get_type if webkit + WebKitDownload as Download, webkit_download_get_type if webkit + WebKitWebBackForwardList as WebBackForwardList, webkit_web_back_forward_list_get_type if webkit + WebKitWebHistoryItem as WebHistoryItem, webkit_web_history_item_get_type if webkit + WebKitWebInspector as WebInspector, webkit_web_inspector_get_type if webkit + WebKitHitTestResult as HitTestResult, webkit_hit_test_result_get_type if webkit + WebKitSecurityOrigin as SecurityOrigin, webkit_security_origin_get_type if webkit + WebKitSoupAuthDialog as SoupAuthDialog, webkit_soup_auth_dialog_get_type if webkit + WebKitWebDatabase as WebDatabase, webkit_web_database_get_type if webkit + WebKitWebDataSource as WebDataSource, webkit_web_data_source_get_type if webkit + WebKitWebNavigationAction as WebNavigationAction, webkit_web_navigation_action_get_type if webkit + WebKitWebPolicyDecision as WebPolicyDecision, webkit_web_policy_decision_get_type if webkit + WebKitWebResource as WebResource, webkit_web_resource_get_type if webkit + WebKitWebWindowFeatures as WebWindowFeatures, webkit_web_window_features_get_type if webkit + addfile ./gtk/hsgtk.h hunk ./gtk/hsgtk.h 1 +#include <gtk/gtk.h> +/* these are necessary on Win32 to circumvent the strcuture size check */ +#undef gtk_init_check +#undef gtk_init + + hunk ./gtk/wingtk.h 1 -#include <gtk/gtk.h> -/* these are necessary on Win32 to circumvent the strcuture size check */ -#undef gtk_init_check -#undef gtk_init - rmfile ./gtk/wingtk.h |