You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
(68) |
Aug
(4) |
Sep
|
Oct
(23) |
Nov
(95) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(3) |
Feb
|
Mar
|
Apr
(51) |
May
(81) |
Jun
(2) |
Jul
(86) |
Aug
(143) |
Sep
(3) |
Oct
(31) |
Nov
(63) |
Dec
(90) |
2005 |
Jan
(277) |
Feb
(157) |
Mar
(99) |
Apr
(195) |
May
(151) |
Jun
(148) |
Jul
(98) |
Aug
(123) |
Sep
(20) |
Oct
(174) |
Nov
(155) |
Dec
(26) |
2006 |
Jan
(51) |
Feb
(19) |
Mar
(16) |
Apr
(12) |
May
(5) |
Jun
|
Jul
(11) |
Aug
(7) |
Sep
(10) |
Oct
(31) |
Nov
(174) |
Dec
(56) |
2007 |
Jan
(45) |
Feb
(52) |
Mar
(10) |
Apr
(5) |
May
(47) |
Jun
(16) |
Jul
(80) |
Aug
(29) |
Sep
(14) |
Oct
(59) |
Nov
(46) |
Dec
(16) |
2008 |
Jan
(10) |
Feb
(1) |
Mar
|
Apr
|
May
(49) |
Jun
(26) |
Jul
(8) |
Aug
(4) |
Sep
(25) |
Oct
(53) |
Nov
(9) |
Dec
(1) |
2009 |
Jan
(66) |
Feb
(11) |
Mar
(1) |
Apr
(14) |
May
(8) |
Jun
(1) |
Jul
(2) |
Aug
(2) |
Sep
(9) |
Oct
(23) |
Nov
(35) |
Dec
|
2010 |
Jan
(7) |
Feb
(2) |
Mar
(39) |
Apr
(19) |
May
(161) |
Jun
(19) |
Jul
(32) |
Aug
(65) |
Sep
(113) |
Oct
(120) |
Nov
(2) |
Dec
|
2012 |
Jan
|
Feb
(5) |
Mar
(4) |
Apr
(7) |
May
(9) |
Jun
(14) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
(12) |
Dec
(2) |
2013 |
Jan
(1) |
Feb
(17) |
Mar
(4) |
Apr
(4) |
May
(9) |
Jun
|
Jul
(8) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
From: Andy S. <And...@co...> - 2010-06-01 14:50:51
|
diffing dir... Tue Jun 1 09:18:28 EDT 2010 Andy Stewart <laz...@gm...> * Add Tooltip.chs (The new module to replace Tooltips.chs) Ignore-this: ca64d1d45d3c526494a41fb537d16c6c { hunk ./gtk/Graphics/UI/Gtk.chs 197 + module Graphics.UI.Gtk.Misc.Tooltip, hunk ./gtk/Graphics/UI/Gtk.chs 390 +import Graphics.UI.Gtk.Misc.Tooltip addfile ./gtk/Graphics/UI/Gtk/Misc/Tooltip.chs hunk ./gtk/Graphics/UI/Gtk/Misc/Tooltip.chs 1 +{-# LANGUAGE CPP #-} +-- -*-haskell-*- +-- GIMP Toolkit (GTK) Widget Tooltip +-- +-- Author : Andy Stewart +-- +-- Created: 24 Mar 2010 +-- +-- Copyright (C) 2010 Andy Stewart +-- +-- 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. +-- +-- | +-- Maintainer : gtk...@li... +-- Stability : provisional +-- Portability : portable (depends on GHC) +-- +-- Add tips to your widgets +-- +-- * Module available since Gtk+ version 2.12 +-- +module Graphics.UI.Gtk.Misc.Tooltip ( + +-- * Detail +-- +-- | 'Tooltip' belongs to the new tooltips API that was introduced in Gtk+ +-- 2.12 and which deprecates the old 'Tooltips' API. +-- +-- Basic tooltips can be realized simply by using 'widgetSetTooltipText' or +-- 'widgetSetTooltipMarkup' without any explicit tooltip object. +-- +-- When you need a tooltip with a little more fancy contents, like adding an +-- image, or you want the tooltip to have different contents per 'TreeView' row +-- or cell, you will have to do a little more work: +-- +-- * Set the 'hasTooltip' property to 'True', this will make GTK+ monitor the widget for motion and +-- related events which are needed to determine when and where to show a tooltip. +-- [_$_] +-- * Connect to the 'queryTooltip' signal. This signal will be emitted when a tooltip is supposed to +-- be shown. One of the arguments passed to the signal handler is a 'Tooltip' object. This is the +-- object that we are about to display as a tooltip, and can be manipulated in your callback using +-- functions like 'tooltipSetIcon'. There are functions for setting the tooltip's markup, +-- setting an image from a stock icon, or even putting in a custom widget. +-- [_$_] +-- * Return 'True' from your query-tooltip handler. This causes the tooltip to be show. If you return +-- 'False', it will not be shown. +-- [_$_] +-- In the probably rare case where you want to have even more control over the tooltip that is about to +-- be shown, you can set your own 'Window' which will be used as tooltip window. This works as +-- follows: +-- [_$_] +-- * Set 'hasTooltip' and connect to 'queryTooltip' as before. +-- [_$_] +-- * Use 'widgetSetTooltipWindow' to set a 'Window' created by you as tooltip window. +-- [_$_] +-- * In the 'queryTooltip' callback you can access your window using 'widgetGetTooltipWindow' +-- and manipulate as you wish. The semantics of the return value are exactly as before, return 'True' +-- to show the window, 'False' to not show it. + +-- * Class Hierarchy +-- +-- | +-- @ +-- | 'GObject' +-- | +----Tooltip +-- @ + +#if GTK_CHECK_VERSION(2,12,0) +-- * Types + Tooltip, + TooltipClass, + castToTooltip, + toTooltip, + +-- * Methods + tooltipSetMarkup, + tooltipSetText, + tooltipSetIcon, + tooltipSetIconFromStock, +#if GTK_CHECK_VERSION(2,14,0) + tooltipSetIconFromIconName, +#endif + tooltipSetCustom, + tooltipTriggerTooltipQuery, + tooltipSetTipArea, +#endif + ) where + +import Control.Monad (liftM) +import Data.Maybe (fromMaybe) + +import System.Glib.FFI +import System.Glib.UTFString +import System.Glib.GObject (constructNewGObject,makeNewGObject) +import Graphics.UI.Gtk.General.Structs (IconSize(..), Rectangle) +{#import Graphics.UI.Gtk.Types#} + +{# context lib="gtk" prefix="gtk" #} + +#if GTK_CHECK_VERSION(2,12,0) +-------------------- +-- Methods + +-- | Sets the text of the tooltip to be @markup@, which is marked up with the +-- Pango text markup language. If @markup@ is 'Nothing', the label will be hidden. +-- +tooltipSetMarkup :: TooltipClass self => self + -> Maybe String -- ^ @markup@ - a markup string (see Pango markup format) or 'Nothing' + -> IO () +tooltipSetMarkup self markup = + maybeWith withUTFString markup $ \markupPtr -> + {# call gtk_tooltip_set_markup #} + (toTooltip self) + markupPtr + +-- | Sets the text of the tooltip to be @text@. If @text@ is 'Nothing' +-- the label will be hidden. See also 'tooltipSetMarkup'. +-- +tooltipSetText :: TooltipClass self => self + -> Maybe String -- ^ @text@ - a text string or 'Nothing' + -> IO () +tooltipSetText self text = + maybeWith withUTFString text $ \textPtr -> + {# call gtk_tooltip_set_text #} + (toTooltip self) + textPtr + +-- | Sets the icon of the tooltip (which is in front of the text) to be +-- @pixbuf@. If @pixbuf@ is 'Nothing' the image will be hidden. +-- +tooltipSetIcon :: TooltipClass self => self + -> Maybe Pixbuf -- ^ @pixbuf@ - a 'Pixbuf' or 'Nothing' + -> IO () +tooltipSetIcon self pixbuf = + {#call tooltip_set_icon#} + (toTooltip self) + (fromMaybe (Pixbuf nullForeignPtr) pixbuf) + +-- | Sets the icon of the tooltip (which is in front of the text) to be the +-- stock item indicated by @stockId@ with the size indicated by @size@. If +-- @stockId@ is 'Nothing' the image will be hidden. +-- +tooltipSetIconFromStock :: TooltipClass self => self + -> Maybe String -- ^ @id@ a stock id, or 'Nothing' [_$_] + -> IconSize -- ^ @size@ a stock icon size [_$_] + -> IO () +tooltipSetIconFromStock self id size = + maybeWith withUTFString id $ \ idPtr -> [_$_] + {#call tooltip_set_icon_from_stock#} + (toTooltip self) + idPtr + ((fromIntegral . fromEnum) size) + +#if GTK_CHECK_VERSION(2,14,0) +-- | Sets the icon of the tooltip (which is in front of the text) to be the +-- icon indicated by @iconName@ with the size indicated by @size@. If +-- @iconName@ is 'Nothing' the image will be hidden. +-- +-- * Available since Gtk+ version 2.14 +-- +tooltipSetIconFromIconName :: TooltipClass self => self + -> Maybe String -- ^ @iconName@ an icon name, or 'Nothing' [_$_] + -> IconSize -- ^ @size@ a stock icon size [_$_] + -> IO () +tooltipSetIconFromIconName self iconName size = + maybeWith withUTFString iconName $ \ iconPtr -> [_$_] + {#call tooltip_set_icon_from_icon_name#} + (toTooltip self) + iconPtr + ((fromIntegral . fromEnum) size) +#endif + +-- | Replaces the widget packed into the tooltip with @customWidget@. +-- @customWidget@ does not get destroyed when the tooltip goes away. By default +-- a box with a 'Image' and 'Label' is embedded in the tooltip, which can be +-- configured using 'tooltipSetMarkup' and 'tooltipSetIcon'. +-- +tooltipSetCustom :: (TooltipClass self, WidgetClass widget) => self [_$_] + -> Maybe widget -- ^ @customWidget@ a 'Widget', or 'Nothing' to unset the old custom widget. [_$_] + -> IO () +tooltipSetCustom self customWidget = + {#call tooltip_set_custom#} [_$_] + (toTooltip self) + (maybe (Widget nullForeignPtr) toWidget customWidget) + +-- | Triggers a new tooltip query on @display@, in order to update the current +-- visible tooltip, or to show\/hide the current tooltip. This function is +-- useful to call when, for example, the state of the widget changed by a key +-- press. +-- +tooltipTriggerTooltipQuery :: + Display -- ^ @display@ - a 'Display' + -> IO () +tooltipTriggerTooltipQuery display = + {# call gtk_tooltip_trigger_tooltip_query #} + display + +-- | Sets the area of the widget, where the contents of this tooltip apply, to +-- be @rect@ (in widget coordinates). This is especially useful for properly +-- setting tooltips on 'TreeView' rows and cells, 'IconView' +-- +-- For setting tooltips on 'TreeView', please refer to the convenience +-- functions for this: 'treeViewSetTooltipRow' and 'treeViewSetTooltipCell'. +-- +tooltipSetTipArea :: TooltipClass self => self -> Rectangle -> IO () +tooltipSetTipArea self rect = + with rect $ \ rectPtr -> [_$_] + {#call tooltip_set_tip_area#} + (toTooltip self) + (castPtr rectPtr) +#endif hunk ./gtk/gtk.cabal 238 + Graphics.UI.Gtk.Misc.Tooltip hunk ./tools/hierarchyGen/hierarchy.list 186 + GtkTooltip if gtk-2.12 } |
From: Andy S. <And...@co...> - 2010-06-01 12:43:24
|
diffing dir... Tue Jun 1 08:21:13 EDT 2010 Andy Stewart <laz...@gm...> * Clean bootstrap.sh Ignore-this: f59b5f9bf21945c39258a39432621a03 hunk ./bootstrap.sh 5 -for pkg in tools glib gio cairo pango gtk gconf glade gnomevfs gstreamer gtkglext gtksourceview2 soegtk svgcairo vte webkit; do [_$_] +for pkg in tools glib gio cairo pango gtk; do [_$_] |
From: Axel S. <si...@co...> - 2010-05-27 18:14:04
|
diffing dir... Thu May 27 14:13:10 EDT 2010 Axe...@in... * Note that Cabal 1.8 is required for ghci support under Windows. Ignore-this: 1c5fc3bb7ad83f5d1094e0083ddd9913 { hunk ./INSTALL 76 -install MinGW nor MSys but it does not hurt if they are installed on your -system. Install the binaries by unpacking them into a directory without +install MinGW nor MSys (but it does not hurt if they are installed on your +system). Install the binaries by unpacking them into a directory without hunk ./INSTALL 98 +ghci and Gtk2Hs on Windows + +Due to the way cabal registers packages with ghc, it is quite difficult to perform the +renaming of libraries which is necessary for the binary Windows bundle to work. As a +consequence, the cabal package can do this renaming only with Cabal 1.8 (shipped with ghc +6.12). If you use ghc 6.10 or earlier, you need to upgrade your Cabal system to 1.8 if you +want to build Gtk2Hs with ghci support. Note that it is always possible to build executables +on Windows. + } |
From: Axel S. <si...@co...> - 2010-05-27 16:35:49
|
diffing dir... Thu May 27 12:34:35 EDT 2010 Axe...@in... * Do not query g_object_get_type as it only exists in newer Gtk+ versions. Ignore-this: 70d62f66a2eb159c7fd3e23079c5debf { hunk ./glib/System/Glib/GObject.chs 69 +import System.Glib.GTypeConstants ( object ) hunk ./glib/System/Glib/GObject.chs 106 -gTypeGObject = - {# call fun unsafe g_object_get_type #} +gTypeGObject = object } |
From: Andy S. <And...@co...> - 2010-05-27 12:51:30
|
diffing dir... Thu May 27 08:47:28 EDT 2010 Andy Stewart <laz...@gm...> * Remove gnomevfs sourceview mozembed since those packages has deprecated. Ignore-this: a1dfda3669b7417a7b09c3b4acfaa2d Below are backup repositories for those deprecated packages: * gnomevfs : http://www2.in.tum.de/~simona/gnomevfs/ * sourceview : http://www2.in.tum.de/~simona/sourceview/ * mozembed : http://www2.in.tum.de/~simona/mozembed/ { hunk ./sourceview/Graphics/UI/Gtk/SourceView.hs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) Widget SourceView --- --- Author : Duncan Coutts --- derived from GtkTextView bindings by Axel Simon --- --- Created: 14 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView ( - module Graphics.UI.Gtk.SourceView.SourceView, - module Graphics.UI.Gtk.SourceView.SourceBuffer, - module Graphics.UI.Gtk.SourceView.SourceLanguage, - module Graphics.UI.Gtk.SourceView.SourceLanguagesManager, - module Graphics.UI.Gtk.SourceView.SourceTag, - module Graphics.UI.Gtk.SourceView.SourceTagTable, - module Graphics.UI.Gtk.SourceView.SourceTagStyle, - module Graphics.UI.Gtk.SourceView.SourceStyleScheme, - module Graphics.UI.Gtk.SourceView.SourceIter -) where - -import Graphics.UI.Gtk.SourceView.SourceView -import Graphics.UI.Gtk.SourceView.SourceBuffer -import Graphics.UI.Gtk.SourceView.SourceLanguage -import Graphics.UI.Gtk.SourceView.SourceLanguagesManager -import Graphics.UI.Gtk.SourceView.SourceStyleScheme -import Graphics.UI.Gtk.SourceView.SourceTag -import Graphics.UI.Gtk.SourceView.SourceTagTable -import Graphics.UI.Gtk.SourceView.SourceTagStyle -import Graphics.UI.Gtk.SourceView.SourceIter rmfile ./sourceview/Graphics/UI/Gtk/SourceView.hs hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceBuffer.chs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) SourceBuffer --- --- Author : Duncan Coutts --- derived from GtkTextView bindings by Axel Simon --- --- Created: 15 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView.SourceBuffer ( - SourceBuffer, - SourceBufferClass, - castToSourceBuffer, - sourceBufferNew, - sourceBufferNewWithLanguage, - sourceBufferSetCheckBrackets, - sourceBufferGetCheckBrackets, - sourceBufferSetBracketsMatchStyle, - sourceBufferSetHighlight, - sourceBufferGetHighlight, - sourceBufferSetMaxUndoLevels, - sourceBufferGetMaxUndoLevels, - sourceBufferSetLanguage, - sourceBufferGetLanguage, - sourceBufferSetEscapeChar, - sourceBufferGetEscapeChar, - sourceBufferCanUndo, - sourceBufferCanRedo, - sourceBufferUndo, - sourceBufferRedo, - sourceBufferBeginNotUndoableAction, - sourceBufferEndNotUndoableAction, - sourceBufferCreateMarker, - sourceBufferMoveMarker, - sourceBufferDeleteMarker, - sourceBufferGetMarker, - sourceBufferGetMarkersInRegion, - sourceBufferGetFirstMarker, - sourceBufferGetLastMarker, - sourceBufferGetIterAtMarker, - sourceBufferGetNextMarker, - sourceBufferGetPrevMarker -) where - -import Control.Monad (liftM) -import Data.Maybe (fromMaybe) - -import System.Glib.FFI -import System.Glib.GList (fromGSList) -import System.Glib.GObject (constructNewGObject, - makeNewGObject) -import Graphics.UI.Gtk.Abstract.Object (makeNewObject) -{#import Graphics.UI.Gtk.Types#} -{#import Graphics.UI.Gtk.SourceView.Types#} -{#import Graphics.UI.Gtk.Signals#} -import Graphics.UI.Gtk.SourceView.SourceTagStyle -import Graphics.UI.Gtk.SourceView.SourceMarker -{#import Graphics.UI.Gtk.Multiline.Types#} -{#import Graphics.UI.Gtk.Multiline.TextIter#} - -{# context lib="gtk" prefix="gtk" #} - --- methods - --- | Create a new 'SourceBuffer', possibly --- taking a 'SourceTagTable'. --- -sourceBufferNew :: Maybe SourceTagTable -> IO SourceBuffer -sourceBufferNew tt = constructNewGObject mkSourceBuffer $ - {#call unsafe source_buffer_new#} [_$_] - (fromMaybe (SourceTagTable nullForeignPtr) tt) - --- | Create a new 'SourceBuffer' --- with a 'SourceLanguage'. --- -sourceBufferNewWithLanguage :: SourceLanguage -> IO SourceBuffer -sourceBufferNewWithLanguage lang = constructNewGObject mkSourceBuffer $ - {#call unsafe source_buffer_new_with_language#} lang - --- | [_$_] --- -sourceBufferSetCheckBrackets :: SourceBuffer -> Bool -> IO () -sourceBufferSetCheckBrackets sb newVal = - {#call unsafe source_buffer_set_check_brackets#} sb (fromBool newVal) - [_$_] --- | [_$_] --- -sourceBufferGetCheckBrackets :: SourceBuffer -> IO Bool [_$_] -sourceBufferGetCheckBrackets sb = liftM toBool $ - {#call unsafe source_buffer_get_check_brackets#} sb - --- | [_$_] --- -sourceBufferSetBracketsMatchStyle :: SourceBuffer -> SourceTagStyle -> IO () [_$_] -sourceBufferSetBracketsMatchStyle sb ts = - alloca $ \tsPtr -> do - poke tsPtr ts - {#call unsafe source_buffer_set_bracket_match_style#} sb (castPtr tsPtr) - --- | [_$_] --- -sourceBufferSetHighlight :: SourceBuffer -> Bool -> IO () -sourceBufferSetHighlight sb newVal = - {#call unsafe source_buffer_set_highlight#} sb (fromBool newVal) - [_$_] --- | [_$_] --- -sourceBufferGetHighlight :: SourceBuffer -> IO Bool [_$_] -sourceBufferGetHighlight sb = liftM toBool $ - {#call unsafe source_buffer_get_highlight#} sb - --- | [_$_] --- -sourceBufferSetMaxUndoLevels :: SourceBuffer -> Int -> IO () -sourceBufferSetMaxUndoLevels sb newVal = - {#call unsafe source_buffer_set_max_undo_levels#} sb (fromIntegral newVal) - [_$_] --- | [_$_] --- -sourceBufferGetMaxUndoLevels :: SourceBuffer -> IO Int -sourceBufferGetMaxUndoLevels sb = liftM fromIntegral $ - {#call unsafe source_buffer_get_max_undo_levels#} sb - --- | [_$_] --- -sourceBufferSetLanguage :: SourceBuffer -> SourceLanguage -> IO () -sourceBufferSetLanguage sb lang = - {#call unsafe source_buffer_set_language#} sb lang - [_$_] --- | [_$_] --- -sourceBufferGetLanguage :: SourceBuffer -> IO SourceLanguage -sourceBufferGetLanguage sb = makeNewGObject mkSourceLanguage $ - {#call unsafe source_buffer_get_language#} sb - --- | [_$_] --- -sourceBufferSetEscapeChar :: SourceBuffer -> Char -> IO () -sourceBufferSetEscapeChar sb char = - {#call unsafe source_buffer_set_escape_char#} sb ((toEnum . fromEnum) char) - [_$_] --- | [_$_] --- -sourceBufferGetEscapeChar :: SourceBuffer -> IO Char -sourceBufferGetEscapeChar sb = liftM (toEnum . fromEnum) $ - {#call unsafe source_buffer_get_escape_char#} sb - --- | [_$_] --- -sourceBufferCanUndo :: SourceBuffer -> IO Bool -sourceBufferCanUndo sb = liftM toBool $ - {#call unsafe source_buffer_can_undo#} sb - [_$_] --- | [_$_] --- -sourceBufferCanRedo :: SourceBuffer -> IO Bool -sourceBufferCanRedo sb = liftM toBool $ - {#call unsafe source_buffer_can_redo#} sb - --- | [_$_] --- -sourceBufferUndo :: SourceBuffer -> IO () -sourceBufferUndo sb = - {#call source_buffer_undo#} sb - [_$_] --- | [_$_] --- -sourceBufferRedo :: SourceBuffer -> IO () -sourceBufferRedo sb = - {#call source_buffer_redo#} sb - --- | [_$_] --- -sourceBufferBeginNotUndoableAction :: SourceBuffer -> IO () -sourceBufferBeginNotUndoableAction sb = - {#call source_buffer_begin_not_undoable_action#} sb - [_$_] --- | [_$_] --- -sourceBufferEndNotUndoableAction :: SourceBuffer -> IO () -sourceBufferEndNotUndoableAction sb = - {#call source_buffer_end_not_undoable_action#} sb - --- | Creates a marker in the buffer of the given type. --- --- * A marker is --- semantically very similar to a 'Graphics.UI.Gtk.Multiline.TextMark', --- except it has a type --- which is used by the 'SourceView' displaying the buffer to show a --- pixmap on the left margin, at the line the marker is in. Because --- of this, a marker is generally associated to a line and not a --- character position. Markers are also accessible through a position --- or range in the buffer. --- --- * Markers are implemented using 'Graphics.UI.Gtk.Multiline.TextMark', --- so all characteristics --- and restrictions to marks apply to markers too. These includes --- life cycle issues and 'Graphics.UI.Gtk.Multiline.TextMark.onMarkSet' --- and 'Graphics.UI.Gtk.Multiline.TextMark.onMarkDeleted' signal --- emissions. --- --- * Like a 'Graphics.UI.Gtk.Multiline.TextMark', a 'SourceMarker' --- can be anonymous if the --- passed name is @Nothing@. Also, the buffer owns the markers so you --- shouldn't unreference it. - -sourceBufferCreateMarker :: SourceBuffer -- the buffer - -> Maybe String -- the name of the marker - -> String -- the type of the marker - -> TextIter -> IO SourceMarker -sourceBufferCreateMarker sb name markerType iter = - makeNewGObject mkSourceMarker $ - maybeWith withCString name $ \strPtr1 -> - withCString markerType $ \strPtr2 -> - {#call source_buffer_create_marker#} sb strPtr1 strPtr2 iter - --- | [_$_] --- -sourceBufferMoveMarker :: SourceBuffer -> SourceMarker -> TextIter -> IO () -sourceBufferMoveMarker sb mark iter = - {#call source_buffer_move_marker#} sb mark iter - --- | [_$_] --- -sourceBufferDeleteMarker :: SourceBuffer -> SourceMarker -> IO () -sourceBufferDeleteMarker sb mark = - {#call source_buffer_delete_marker#} sb mark - --- | [_$_] --- -sourceBufferGetMarker :: SourceBuffer -> String -> IO (Maybe SourceMarker) -sourceBufferGetMarker sb name = - maybeNull (makeNewGObject mkSourceMarker) $ - withCString name $ \strPtr1 -> - {#call unsafe source_buffer_get_marker#} sb strPtr1 - --- | Returns an /ordered/ (by position) list of 'SourceMarker's inside the --- region delimited by the two 'TextIter's. The iterators may be in any --- order. --- -sourceBufferGetMarkersInRegion :: SourceBuffer -> TextIter -> TextIter -> IO [SourceMarker] -sourceBufferGetMarkersInRegion sb begin end = do - gList <- {#call unsafe source_buffer_get_markers_in_region#} sb begin end - wList <- fromGSList gList - mapM (makeNewGObject mkSourceMarker) (map return wList) - --- | Returns the first (nearest to the top of the buffer) marker. --- -sourceBufferGetFirstMarker :: SourceBuffer -> IO (Maybe SourceMarker) -sourceBufferGetFirstMarker sb = - maybeNull (makeNewGObject mkSourceMarker) $ - {#call unsafe source_buffer_get_first_marker#} sb - --- | Returns the last (nearest to the bottom of the buffer) marker. --- -sourceBufferGetLastMarker :: SourceBuffer -> IO (Maybe SourceMarker) -sourceBufferGetLastMarker sb = - maybeNull (makeNewGObject mkSourceMarker) $ - {#call unsafe source_buffer_get_last_marker#} sb - --- | [_$_] --- -sourceBufferGetIterAtMarker :: SourceBuffer -> SourceMarker -> IO TextIter -sourceBufferGetIterAtMarker sb mark = do - iter <- makeEmptyTextIter - {#call unsafe source_buffer_get_iter_at_marker#} sb iter mark - return iter - --- | Returns the nearest marker to the right of the given iterator. --- If there are --- multiple markers at the same position, this function will always --- return the first one (from the internal linked list), even if --- starting the search exactly at its location. You can get the --- others using 'sourceMarkerNext'. --- -sourceBufferGetNextMarker :: SourceBuffer -> TextIter -> IO (Maybe SourceMarker) -sourceBufferGetNextMarker sb iter = maybeNull (makeNewGObject mkSourceMarker) $ - {#call unsafe source_buffer_get_next_marker#} sb iter - --- | Returns the nearest marker to the left of the given iterator. --- If there are --- multiple markers at the same position, this function will always --- return the last one (from the internal linked list), even if --- starting the search exactly at its location. You can get the --- others using 'sourceMarkerPrev'. --- -sourceBufferGetPrevMarker :: SourceBuffer -> TextIter -> IO (Maybe SourceMarker) -sourceBufferGetPrevMarker sb iter = maybeNull (makeNewGObject mkSourceMarker) $ - {#call unsafe source_buffer_get_prev_marker#} sb iter rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceBuffer.chs hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceIter.chs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) SourceIter --- --- Author : Duncan Coutts --- --- Created: 15 April 2004 --- --- Copyright (C) 2004-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- --- Adds extra useful methods for "TextIter" for searching forwards and --- backwards within a region in the buffer and matching brackets. --- --- * There is no SourceIter object, just extra methods for "TextIter" --- -module Graphics.UI.Gtk.SourceView.SourceIter ( - - sourceIterForwardSearch, - sourceIterBackwardSearch, - sourceIterFindMatchingBracket -) where - -import Control.Monad (liftM) -import Data.Maybe (fromMaybe) - -import System.Glib.FFI -import System.Glib.Flags (Flags, fromFlags) -import System.Glib.UTFString -import Graphics.UI.Gtk.Abstract.Object (makeNewObject) -{#import Graphics.UI.Gtk.Types#} -{#import Graphics.UI.Gtk.SourceView.Types#} -{#import Graphics.UI.Gtk.Multiline.Types#} -{#import Graphics.UI.Gtk.Multiline.TextIter#} - -{# context lib="gtk" prefix="gtk" #} - -{# enum SourceSearchFlags {underscoreToCase} deriving(Bounded) #} - -instance Flags SourceSearchFlags - --- methods - --- | same as 'textIterForwardSearch' but allows --- case insensitive search and possibly in the future regular expressions. --- -sourceIterForwardSearch :: TextIter -> String -> [SourceSearchFlags] -> [_$_] - Maybe TextIter -> IO (Maybe (TextIter, TextIter)) -sourceIterForwardSearch ti str flags limit = do - start <- makeEmptyTextIter - end <- makeEmptyTextIter - found <- liftM toBool $ withUTFString str $ \cStr -> - {#call unsafe source_iter_forward_search#} ti cStr - ((fromIntegral.fromFlags) flags) start end - (fromMaybe (TextIter nullForeignPtr) limit) - return $ if found then Just (start,end) else Nothing - --- | same as 'textIterForwardSearch' but allows --- case insensitive search and possibly in the future regular expressions. --- -sourceIterBackwardSearch :: TextIter -> String -> [SourceSearchFlags] -> [_$_] - Maybe TextIter -> IO (Maybe (TextIter, TextIter)) -sourceIterBackwardSearch ti str flags limit = do - start <- makeEmptyTextIter - end <- makeEmptyTextIter - found <- liftM toBool $ withUTFString str $ \cStr -> - {#call unsafe source_iter_backward_search#} ti cStr - ((fromIntegral.fromFlags) flags) start end - (fromMaybe (TextIter nullForeignPtr) limit) - return $ if found then Just (start,end) else Nothing - --- | Tries to match the bracket character --- currently at the given iter with its opening\/closing counterpart, and if --- found moves iter to the position where it was found. --- --- * the 'TextIter' must belong to a 'SourceBuffer' --- -sourceIterFindMatchingBracket :: TextIter -> IO Bool -sourceIterFindMatchingBracket ti = - liftM toBool $ {# call unsafe source_iter_find_matching_bracket #} ti rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceIter.chs hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceLanguage.chs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) Widget SourceView --- --- Author : Duncan Coutts --- derived from GtkTextView bindings by Axel Simon --- --- Created: 14 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView.SourceLanguage ( - SourceLanguage, - castToSourceLanguage, - sourceLanguageGetName, - sourceLanguageGetSection, - sourceLanguageGetTags, - sourceLanguageGetEscapeChar, - sourceLanguageGetMimeTypes, - sourceLanguageSetMimeTypes, - sourceLanguageGetStyleScheme, - sourceLanguageSetStyleScheme, - sourceLanguageGetTagStyle, - sourceLanguageSetTagStyle, - sourceLanguageGetTagDefaultStyle -) where - -import Control.Monad (liftM) - -import System.Glib.FFI -import System.Glib.UTFString -import System.Glib.GList (fromGSList, toGSList) -import System.Glib.GObject (makeNewGObject) -import Graphics.UI.Gtk.Abstract.Object (makeNewObject) -{#import Graphics.UI.Gtk.Types#} -{#import Graphics.UI.Gtk.SourceView.Types#} -{#import Graphics.UI.Gtk.Signals#} -import Graphics.UI.Gtk.SourceView.SourceStyleScheme -import Graphics.UI.Gtk.SourceView.SourceTagStyle - -{# context lib="gtk" prefix="gtk" #} - - --- methods - --- | [_$_] --- -sourceLanguageGetName :: SourceLanguage -> IO String -sourceLanguageGetName sl = - {#call unsafe source_language_get_name#} sl >>= peekUTFString - --- | [_$_] --- -sourceLanguageGetSection :: SourceLanguage -> IO String -sourceLanguageGetSection sl = - {#call unsafe source_language_get_section#} sl >>= peekUTFString - --- | [_$_] --- -sourceLanguageGetTags :: SourceLanguage -> IO [SourceTag] -sourceLanguageGetTags sl = do - gList <- {#call unsafe source_language_get_tags#} sl - wList <- fromGSList gList - mapM (makeNewGObject mkSourceTag) (map return wList) - --- | [_$_] --- -sourceLanguageGetEscapeChar :: SourceLanguage -> IO Char -sourceLanguageGetEscapeChar sl = liftM (toEnum . fromEnum) $ - {#call unsafe source_language_get_escape_char#} sl - -sourceLanguageGetMimeTypes :: SourceLanguage -> IO [String] -sourceLanguageGetMimeTypes sl = do - mimeTypesList <- {#call unsafe source_language_get_mime_types#} sl - mimeTypesPtrs <- fromGSList mimeTypesList - mapM peekUTFString mimeTypesPtrs - -sourceLanguageSetMimeTypes :: SourceLanguage -> [String] -> IO () -sourceLanguageSetMimeTypes sl mimeTypes = do - mimeTypesPtrs <- mapM newUTFString mimeTypes - mimeTypesList <- toGSList mimeTypesPtrs - {#call unsafe source_language_set_mime_types#} sl mimeTypesList - {#call unsafe g_slist_free#} mimeTypesList - --- | [_$_] --- -sourceLanguageGetStyleScheme :: SourceLanguage -> IO SourceStyleScheme -sourceLanguageGetStyleScheme sl = makeNewGObject mkSourceStyleScheme $ - {#call unsafe source_language_get_style_scheme#} sl - --- | [_$_] --- -sourceLanguageSetStyleScheme :: SourceLanguage -> SourceStyleScheme -> IO () -sourceLanguageSetStyleScheme sl ss = - {#call unsafe source_language_set_style_scheme#} sl ss - --- | [_$_] --- -sourceLanguageGetTagStyle :: SourceLanguage -> String -> IO SourceTagStyle -sourceLanguageGetTagStyle sl tag = - withCString tag $ \strPtr1 -> do - sts <- {#call unsafe source_language_get_tag_style#} sl strPtr1 - peek (castPtr sts) - --- | [_$_] --- -sourceLanguageSetTagStyle :: SourceLanguage -> String -> SourceTagStyle -> IO () -sourceLanguageSetTagStyle sl tag sts = [_$_] - withCString tag $ \strPtr1 -> - alloca $ \sts' -> do - poke sts' sts - {#call unsafe source_language_set_tag_style#} sl strPtr1 (castPtr sts') - --- | [_$_] --- -sourceLanguageGetTagDefaultStyle :: SourceLanguage -> String -> IO SourceTagStyle -sourceLanguageGetTagDefaultStyle sl tag = - withCString tag $ \strPtr1 -> do - sts <- {#call unsafe source_language_get_tag_default_style#} sl strPtr1 - peek (castPtr sts) rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceLanguage.chs hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceLanguagesManager.chs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) SourceLanguagesManager --- --- Author : Duncan Coutts --- derived from GtkTextView bindings by Axel Simon --- --- Created: 14 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView.SourceLanguagesManager ( - SourceLanguagesManager, - castToSourceLanguagesManager, - sourceLanguagesManagerNew, - sourceLanguagesManagerGetAvailableLanguages, - sourceLanguagesManagerGetLanguageFromMimeType, - sourceLanguagesManagerGetLangFilesDirs - ) where - -import Control.Monad (liftM, mapM) - -import System.Glib.FFI -import System.Glib.UTFString -import System.Glib.GList (readGSList) -import System.Glib.GObject (makeNewGObject, constructNewGObject) -{#import Graphics.UI.Gtk.Types#} -{#import Graphics.UI.Gtk.SourceView.Types#} -{#import Graphics.UI.Gtk.Signals#} - -{# context lib="gtk" prefix="gtk" #} - - --- methods - --- | Create a new 'SourceLanguagesManager'. --- -sourceLanguagesManagerNew :: IO SourceLanguagesManager -sourceLanguagesManagerNew = constructNewGObject mkSourceLanguagesManager - {#call source_languages_manager_new#} [_$_] - --- | Gets a list of available languages for the given language manager. --- [_$_] -sourceLanguagesManagerGetAvailableLanguages :: SourceLanguagesManager -> [_$_] - IO [SourceLanguage] -sourceLanguagesManagerGetAvailableLanguages lm = do - gList <- {#call source_languages_manager_get_available_languages#} lm - wList <- readGSList gList - mapM (makeNewGObject mkSourceLanguage) (map return wList) - --- | Gets the 'SourceLanguage' which is associated with the given mime type --- in the language manager. --- [_$_] -sourceLanguagesManagerGetLanguageFromMimeType :: SourceLanguagesManager -> String -> IO (Maybe SourceLanguage) -sourceLanguagesManagerGetLanguageFromMimeType lm mimeType = do - langPtr <- withCString mimeType $ \strPtr -> - {#call source_languages_manager_get_language_from_mime_type#} lm strPtr - if langPtr==nullPtr then return Nothing else liftM Just $ - makeNewGObject mkSourceLanguage (return langPtr) - --- | Retrieve filenames with language specifications. --- [_$_] -sourceLanguagesManagerGetLangFilesDirs :: SourceLanguagesManager -> [_$_] - IO [FilePath] -sourceLanguagesManagerGetLangFilesDirs lm = do - gsList <- {#call source_languages_manager_get_lang_files_dirs#} lm - -- The returned structure is private and nothing is to be freed. - dirList <- readGSList gsList - mapM peekUTFString dirList - rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceLanguagesManager.chs hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceMarker.chs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) SourceMarker --- --- Author : Duncan Coutts --- derived from GtkTextView bindings by Axel Simon --- --- Created: 26 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView.SourceMarker ( - SourceMarker, - castToSourceMarker, - sourceMarkerSetMarkerType, - sourceMarkerGetMarkerType, - sourceMarkerGetLine, - sourceMarkerGetName, - sourceMarkerGetBuffer, - sourceMarkerNext, - sourceMarkerPrev -) where - -import Control.Monad (liftM) - -import System.Glib.FFI -import System.Glib.UTFString -import System.Glib.GObject (makeNewGObject) -{#import Graphics.UI.Gtk.Types#} -{#import Graphics.UI.Gtk.SourceView.Types#} - -{# context lib="gtk" prefix="gtk" #} - --- methods - --- | [_$_] --- [_$_] -sourceMarkerSetMarkerType :: SourceMarker -> String -> IO () -sourceMarkerSetMarkerType mark markType = - withCString markType $ \strPtr1 -> - {#call unsafe source_marker_set_marker_type#} mark strPtr1 - --- | [_$_] --- [_$_] -sourceMarkerGetMarkerType :: SourceMarker -> IO String -sourceMarkerGetMarkerType mark = do - strPtr <- {#call unsafe source_marker_get_marker_type#} mark - markType <- peekUTFString strPtr - {#call unsafe g_free#} (castPtr strPtr) - return markType - --- | [_$_] --- [_$_] -sourceMarkerGetLine :: SourceMarker -> IO Int -sourceMarkerGetLine mark = liftM fromIntegral $ - {#call unsafe source_marker_get_line#} mark - --- | [_$_] --- [_$_] -sourceMarkerGetName :: SourceMarker -> IO String -sourceMarkerGetName mark = - {#call unsafe source_marker_get_name#} mark >>= peekUTFString - --- | [_$_] --- [_$_] -sourceMarkerGetBuffer :: SourceMarker -> IO SourceBuffer -sourceMarkerGetBuffer mark = makeNewGObject mkSourceBuffer $ - {#call unsafe source_marker_get_buffer#} mark - --- | [_$_] --- [_$_] -sourceMarkerNext :: SourceMarker -> IO SourceMarker -sourceMarkerNext mark = makeNewGObject mkSourceMarker $ - {#call unsafe source_marker_next#} mark - --- | [_$_] --- [_$_] -sourceMarkerPrev :: SourceMarker -> IO SourceMarker -sourceMarkerPrev mark = makeNewGObject mkSourceMarker $ - {#call unsafe source_marker_prev#} mark rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceMarker.chs hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceStyleScheme.chs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) SourceStyleScheme --- --- Author : Duncan Coutts --- derived from the GtkTextView bindings by Axel Simon --- --- Created: 22 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView.SourceStyleScheme ( - SourceStyleScheme, - castToSourceStyleScheme, - sourceStyleSchemeGetTagStyle, - sourceStyleSchemeGetName, - sourceStyleSchemeGetDefault -) where - -import Control.Monad (liftM) - -import System.Glib.FFI -import System.Glib.UTFString -import System.Glib.GObject (constructNewGObject) -{#import Graphics.UI.Gtk.Types#} -{#import Graphics.UI.Gtk.SourceView.Types#} -import Graphics.UI.Gtk.SourceView.SourceTagStyle - -{# context lib="gtk" prefix="gtk" #} - --- methods - --- | [_$_] --- [_$_] -sourceStyleSchemeGetTagStyle :: SourceStyleScheme -> String -> IO SourceTagStyle -sourceStyleSchemeGetTagStyle ss styleName = - withCString styleName $ \strPtr -> do - tsPtr <- {#call source_style_scheme_get_tag_style#} ss strPtr - ts <- peek (castPtr tsPtr) - {#call unsafe g_free#} tsPtr - return ts - --- | [_$_] --- [_$_] -sourceStyleSchemeGetName :: SourceStyleScheme -> IO String -sourceStyleSchemeGetName ss = - {#call source_style_scheme_get_name#} ss >>= peekUTFString - --- | [_$_] --- [_$_] -sourceStyleSchemeGetDefault :: IO SourceStyleScheme -sourceStyleSchemeGetDefault = - constructNewGObject mkSourceStyleScheme $ liftM castPtr $ - {#call source_style_scheme_get_default#} rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceStyleScheme.chs hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceTag.chs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) SourceTag --- --- Author : Duncan Coutts --- derived from GtkTextView bindings by Axel Simon --- --- Created: 22 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView.SourceTag ( - SourceTag, - castToSourceTag, - syntaxTagNew, - patternTagNew, - keywordListTagNew, - blockCommentTagNew, - lineCommentTagNew, - stringTagNew, - sourceTagGetStyle, - sourceTagSetStyle - ) where - -import Control.Monad (liftM) - -import System.Glib.FFI -import System.Glib.UTFString -import System.Glib.GList (withGSList) -import System.Glib.GObject (constructNewGObject) -{#import Graphics.UI.Gtk.Types#} -{#import Graphics.UI.Gtk.SourceView.Types#} -import Graphics.UI.Gtk.SourceView.SourceTagStyle - -{# context lib="gtk" prefix="gtk" #} - --- methods - --- | Create a new 'SourceTag' --- -syntaxTagNew :: String -> String -> String -> String -> IO SourceTag -syntaxTagNew id name patternStart patternEnd = - constructNewGObject mkSourceTag $ liftM castPtr $ - withCString id $ \strPtr1 -> [_$_] - withCString name $ \strPtr2 -> [_$_] - withCString patternStart $ \strPtr3 -> [_$_] - withCString patternEnd $ \strPtr4 -> [_$_] - {#call syntax_tag_new#} strPtr1 strPtr2 strPtr3 strPtr4 - --- | Create a new 'SourceTag' --- -patternTagNew :: String -> String -> String -> IO SourceTag -patternTagNew id name pattern = - constructNewGObject mkSourceTag $ liftM castPtr $ - withCString id $ \strPtr1 -> [_$_] - withCString name $ \strPtr2 -> [_$_] - withCString pattern $ \strPtr3 -> [_$_] - {#call unsafe pattern_tag_new#} strPtr1 strPtr2 strPtr3 - - --- | Create a new 'SourceTag'. --- -keywordListTagNew :: String -> String -> [String] -> Bool -> Bool -> Bool -> - String -> String -> IO SourceTag -keywordListTagNew id name keywords - caseSensitive - matchEmptyStringAtBeginning - matchEmptyStringAtEnd - beginningRegex - endRegex = - withUTFStrings keywords $ \keywordPtrs -> - withGSList keywordPtrs $ \keywordList -> - constructNewGObject mkSourceTag $ liftM castPtr $ - withCString id $ \idPtr -> [_$_] - withCString name $ \namePtr -> [_$_] - withCString beginningRegex $ \beginPtr -> [_$_] - withCString endRegex $ \endPtr -> - {# call unsafe keyword_list_tag_new #} - idPtr namePtr keywordList (fromBool caseSensitive) - (fromBool matchEmptyStringAtBeginning) (fromBool matchEmptyStringAtEnd) - beginPtr endPtr - --- | Create a new 'SourceTag' --- -blockCommentTagNew :: String -> String -> String -> String -> IO SourceTag -blockCommentTagNew = syntaxTagNew --in the C header this is just a macro - --- | Create a new 'SourceTag' --- -lineCommentTagNew :: String -> String -> String -> IO SourceTag -lineCommentTagNew id name pattern = - constructNewGObject mkSourceTag $ liftM castPtr $ - withCString id $ \strPtr1 -> - withCString name $ \strPtr2 -> - withCString pattern $ \strPtr3 -> - {#call unsafe line_comment_tag_new#} strPtr1 strPtr2 strPtr3 - --- | Create a new 'SourceTag' --- -stringTagNew :: String -> String -> String -> String -> Bool -> IO SourceTag -stringTagNew id name patternStart patternEnd endAtLineEnd = - constructNewGObject mkSourceTag $ liftM castPtr $ - withCString id $ \strPtr1 -> [_$_] - withCString name $ \strPtr2 -> [_$_] - withCString patternStart $ \strPtr3 -> [_$_] - withCString patternEnd $ \strPtr4 -> [_$_] - {#call unsafe string_tag_new#} strPtr1 strPtr2 strPtr3 strPtr4 (fromBool endAtLineEnd) - - --- | [_$_] --- [_$_] -sourceTagGetStyle :: SourceTag -> IO SourceTagStyle -sourceTagGetStyle tag = do - tsPtr <- {#call unsafe source_tag_get_style#} tag - ts <- peek (castPtr tsPtr) - {#call unsafe g_free#} tsPtr - return ts - --- | [_$_] --- [_$_] -sourceTagSetStyle :: SourceTag -> SourceTagStyle -> IO () -sourceTagSetStyle tag ts = alloca $ \tsPtr -> do - poke tsPtr ts - {#call unsafe source_tag_set_style#} tag (castPtr tsPtr) - rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceTag.chs hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceTagStyle.hsc 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) SourceTagStyle --- --- Author : Duncan Coutts --- derived from GtkTextView bindings by Axel Simon --- --- Created: 20 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView.SourceTagStyle ( - SourceTagStyle(..), -) where - -import Data.Maybe (isJust, fromMaybe) -import Data.Bits (testBit, bit, (.|.)) - -import System.Glib.FFI -import Graphics.UI.Gtk.General.Structs (Color(..)) - -#include <gtksourceview/gtksourcetagstyle.h> - -data SourceTagStyleMask = SourceTagStyleUseBackground - | SourceTagStyleUseForeground - deriving (Eq) - -instance Enum SourceTagStyleMask where - fromEnum SourceTagStyleUseBackground = 1 - fromEnum SourceTagStyleUseForeground = 2 - [_$_] - toEnum 1 = SourceTagStyleUseBackground - toEnum 2 = SourceTagStyleUseForeground - toEnum unmatched = error ("SourceTagStyleMask.toEnum: Cannot match " ++ show unmatched) - [_$_] -data SourceTagStyle = SourceTagStyle { - isDefault :: Bool, -- readonly - foreground :: Maybe Color, - background :: Maybe Color, - italic :: Bool, - bold :: Bool, - underline :: Bool, - strikethrough :: Bool - } - -instance Storable SourceTagStyle where - sizeOf _ = #{const sizeof(GtkSourceTagStyle)} - alignment _ = alignment (undefined::#type gboolean) - peek ptr = do - (isDefault'::#type gboolean) <- #{peek GtkSourceTagStyle, is_default} ptr - (mask::#type guint) <- #{peek GtkSourceTagStyle, mask} ptr - foreground' <- peek (#{ptr GtkSourceTagStyle, foreground} ptr) - background' <- peek (#{ptr GtkSourceTagStyle, background} ptr) - (italic'::#type gboolean) <- #{peek GtkSourceTagStyle, italic} ptr - (bold'::#type gboolean) <- #{peek GtkSourceTagStyle, bold} ptr - (underline'::#type gboolean) <- #{peek GtkSourceTagStyle, underline} ptr - (strikethrough'::#type gboolean) <- #{peek GtkSourceTagStyle, strikethrough} ptr - return SourceTagStyle { - isDefault = toBool isDefault', - foreground = if mask `testBit` (fromEnum SourceTagStyleUseForeground) then Just foreground' else Nothing, - background = if mask `testBit` (fromEnum SourceTagStyleUseBackground) then Just background' else Nothing, - italic = toBool italic', - bold = toBool bold', - underline = toBool underline', - strikethrough = toBool strikethrough' - } - poke ptr tag = do - #{poke GtkSourceTagStyle, is_default} ptr (fromBool $ isDefault tag ::#type gboolean) - #{poke GtkSourceTagStyle, mask} ptr ((if isJust (foreground tag) then bit (fromEnum SourceTagStyleUseForeground) else 0) - .|.(if isJust (background tag) then bit (fromEnum SourceTagStyleUseBackground) else 0) ::#type guint) - poke (#{ptr GtkSourceTagStyle, foreground} ptr) (fromMaybe (Color 0 0 0) (foreground tag)) - poke (#{ptr GtkSourceTagStyle, background} ptr) (fromMaybe (Color 0 0 0) (background tag)) - #{poke GtkSourceTagStyle, italic} ptr (fromBool $ italic tag ::#type gboolean) - #{poke GtkSourceTagStyle, bold} ptr (fromBool $ bold tag ::#type gboolean) - #{poke GtkSourceTagStyle, underline} ptr (fromBool $ underline tag ::#type gboolean) - #{poke GtkSourceTagStyle, strikethrough} ptr (fromBool $ strikethrough tag ::#type gboolean) rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceTagStyle.hsc hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceTagTable.chs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) SourceTagTable --- --- Author : Duncan Coutts --- derived from GtkTextView bindings by Axel Simon --- --- Created: 22 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView.SourceTagTable ( - SourceTagTable, - SourceTagTableClass, - castToSourceTagTable, - sourceTagTableNew, - sourceTagTableAddTags, - sourceTagTableRemoveSourceTags -) where - -import Control.Monad (liftM) - -import System.Glib.FFI -import System.Glib.GList (fromGSList, toGSList) -import System.Glib.GObject (constructNewGObject) -{#import Graphics.UI.Gtk.Types#} -{#import Graphics.UI.Gtk.SourceView.Types#} -{#import Graphics.UI.Gtk.Signals#} -import Graphics.UI.Gtk.SourceView.SourceTag - -{# context lib="gtk" prefix="gtk" #} - --- methods - --- | Create a new 'SourceTagTable' --- -sourceTagTableNew :: IO SourceTagTable -sourceTagTableNew = constructNewGObject mkSourceTagTable - {#call unsafe source_tag_table_new#} [_$_] - - --- | Add a list of tag to the table. --- [_$_] --- * The added tags are assigned the highest priority in the table. If a tag is --- already present in table or has the same name as an already-added tag, then --- it is not added to the table. --- [_$_] -sourceTagTableAddTags :: SourceTagTable -> [SourceTag] -> IO () -sourceTagTableAddTags tt tags = do - let tagForeignPtrs = map unSourceTag tags - tagList <- toGSList (map unsafeForeignPtrToPtr tagForeignPtrs) - {#call source_tag_table_add_tags#} tt tagList - -- destroy the list - fromGSList tagList - -- make sure the ForeignPtrs are not gc'd while we are still using the Ptrs - mapM_ touchForeignPtr tagForeignPtrs - --- | [_$_] --- [_$_] -sourceTagTableRemoveSourceTags :: SourceTagTable -> IO () -sourceTagTableRemoveSourceTags tt = - {#call source_tag_table_remove_source_tags#} tt [_$_] - --- | The source tag table has changed. --- -onTagChanged, afterTagChanged :: [_$_] - SourceTagTableClass stt => stt -> IO () -> IO (ConnectId stt) -onTagChanged = connect_NONE__NONE "changed" False -afterTagChanged = connect_NONE__NONE "changed" True rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceTagTable.chs hunk ./sourceview/Graphics/UI/Gtk/SourceView/SourceView.chs 1 --- -*-haskell-*- --- GIMP Toolkit (GTK) Widget SourceView --- --- Author : Duncan Coutts --- derived from GtkTextView bindings by Axel Simon --- --- Created: 14 October 2003 --- --- Copyright (C) 2003-2005 Duncan Coutts, 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. --- --- | --- Maintainer : gtk...@li... --- Stability : provisional --- Portability : portable (depends on GHC) --- -module Graphics.UI.Gtk.SourceView.SourceView ( - SourceView, - SourceViewClass, - castToSourceView, - sourceViewNew, - sourceViewNewWithBuffer, - sourceViewSetShowLineNumbers, - sourceViewGetShowLineNumbers, - sourceViewSetShowLineMarkers, - sourceViewGetShowLineMarkers, - sourceViewSetTabsWidth, - sourceViewGetTabsWidth, - sourceViewSetAutoIndent, - sourceViewGetAutoIndent, - sourceViewSetInsertSpacesInsteadOfTabs, - sourceViewGetInsertSpacesInsteadOfTabs, - sourceViewSetShowMargin, - sourceViewGetShowMargin, - sourceViewSetMargin, - sourceViewGetMargin, - sourceViewSetMarkerPixbuf, - sourceViewGetMarkerPixbuf, - sourceViewSetSmartHomeEnd, - sourceViewGetSmartHomeEnd, -) where - -import Control.Monad (liftM) - -import System.Glib.FFI -import Graphics.UI.Gtk.Abstract.Object (makeNewObject) -import System.Glib.GObject (constructNewGObject) -{#import Graphics.UI.Gtk.Types#} -{#import Graphics.UI.Gtk.SourceView.Types#} -{#import Graphics.UI.Gtk.Signals#} -import Graphics.UI.Gtk.SourceView.SourceBuffer - -{# context lib="gtk" prefix="gtk" #} - - --- methods - --- | Create a new 'SourceView' widget with a default 'SourceBuffer'. --- -sourceViewNew :: IO SourceView -sourceViewNew = makeNewObject mkSourceView $ liftM castPtr [_$_] - {#call unsafe source_view_new#} - --- | Create a new 'SourceView' --- widget with the given 'SourceBuffer'. --- -sourceViewNewWithBuffer :: SourceBuffer -> IO SourceView -sourceViewNewWithBuffer sb = makeNewObject mkSourceView $ liftM castPtr $ - {#call source_view_new_with_buffer#} sb - --- | [_$_] --- -sourceViewSetShowLineNumbers :: SourceViewClass sv => sv -> Bool -> IO () -sourceViewSetShowLineNumbers sv newVal = - {#call source_view_set_show_line_numbers#} (toSourceView sv) (fromBool newVal) - [_$_] --- | [_$_] --- -sourceViewGetShowLineNumbers :: SourceViewClass sv => sv -> IO Bool [_$_] -sourceViewGetShowLineNumbers sv = liftM toBool $ - {#call unsafe source_view_get_show_line_numbers#} (toSourceView sv) - --- | [_$_] --- -sourceViewSetShowLineMarkers :: SourceViewClass sv => sv -> Bool -> IO () -sourceViewSetShowLineMarkers sv newVal = - {#call source_view_set_show_line_markers#} (toSourceView sv) (fromBool newVal) - [_$_] --- | [_$_] --- -sourceViewGetShowLineMarkers :: SourceViewClass sv => sv -> IO Bool [_$_] -sourceViewGetShowLineMarkers sv = liftM toBool $ - {#call unsafe source_view_get_show_line_markers#} (toSourceView sv) - --- | [_$_] --- -sourceViewSetTabsWidth :: SourceViewClass sv => sv -> Int -> IO () -sourceViewSetTabsWidth sv width = - {#call source_view_set_tabs_width#} (toSourceView sv) (fromIntegral width) - [_$_] --- | [_$_] --- -sourceViewGetTabsWidth :: SourceViewClass sv => sv -> IO Int [_$_] -sourceViewGetTabsWidth sv = liftM fromIntegral $ - {#call unsafe source_view_get_tabs_width#} (toSourceView sv) - --- | [_$_] --- -sourceViewSetAutoIndent :: SourceViewClass sv => sv -> Bool -> IO () -sourceViewSetAutoIndent sv newVal = - {#call source_view_set_auto_indent#} (toSourceView sv) (fromBool newVal) - [_$_] --- | [_$_] --- -sourceViewGetAutoIndent :: SourceViewClass sv => sv -> IO Bool [_$_] -sourceViewGetAutoIndent sv = liftM toBool $ - {#call unsafe source_view_get_auto_indent#} (toSourceView sv) - --- | [_$_] --- -sourceViewSetInsertSpacesInsteadOfTabs :: SourceViewClass sv => sv -> Bool -> IO () -sourceViewSetInsertSpacesInsteadOfTabs sv newVal = - {#call source_view_set_insert_spaces_instead_of_tabs#} (toSourceView sv) (fromBool newVal) - [_$_] --- | [_$_] --- -sourceViewGetInsertSpacesInsteadOfTabs :: SourceViewClass sv => sv -> IO Bool [_$_] -sourceViewGetInsertSpacesInsteadOfTabs sv = liftM toBool $ - {#call unsafe source_view_get_insert_spaces_instead_of_tabs#} (toSourceView sv) - --- | [_$_] --- -sourceViewSetShowMargin :: SourceViewClass sv => sv -> Bool -> IO () -sourceViewSetShowMargin sv newVal = - {#call source_view_set_show_margin#} (toSourceView sv) (fromBool newVal) - [_$_] --- | [_$_] --- -sourceViewGetShowMargin :: SourceViewClass sv => sv -> IO Bool [_$_] -sourceViewGetShowMargin sv = liftM toBool $ - {#call unsafe source_view_get_show_margin#} (toSourceView sv) - --- | [_$_] --- -sourceViewSetMargin :: SourceViewClass sv => sv -> Int -> IO () -sourceViewSetMargin sv margin = - {#call source_view_set_margin#} (toSourceView sv) (fromIntegral margin) - [_$_] --- | [_$_] --- -sourceViewGetMargin :: SourceViewClass sv => sv -> IO Int [_$_] -sourceViewGetMargin sv = liftM fromIntegral $ - {#call unsafe source_view_get_margin#} (toSourceView sv) - --- | [_$_] --- -sourceViewSetMarkerPixbuf :: SourceViewClass sv => sv -> String -> Pixbuf -> IO () -sourceViewSetMarkerPixbuf sv markerType marker = withCString markerType $ \strPtr -> - {#call source_view_set_marker_pixbuf#} (toSourceView sv) strPtr marker - [_$_] --- | [_$_] --- -sourceViewGetMarkerPixbuf :: SourceViewClass sv => sv -> String -> IO Pixbuf [_$_] -sourceViewGetMarkerPixbuf sv markerType = withCString markerType $ \strPtr -> - constructNewGObject mkPixbuf $ - {#call unsafe source_view_get_marker_pixbuf#} (toSourceView sv) strPtr - --- | [_$_] --- -sourceViewSetSmartHomeEnd :: SourceViewClass sv => sv -> Bool -> IO () -sourceViewSetSmartHomeEnd sv newVal = - {#call source_view_set_smart_home_end#} (toSourceView sv) (fromBool newVal) - [_$_] --- | [_$_] --- -sourceViewGetSmartHomeEnd :: SourceViewClass sv => sv -> IO Bool [_$_] -sourceViewGetSmartHomeEnd sv = liftM toBool $ - {#call unsafe source_view_get_smart_home_end#} (toSourceView sv) rmfile ./sourceview/Graphics/UI/Gtk/SourceView/SourceView.chs rmdir ./sourceview/Graphics/UI/Gtk/SourceView rmdir ./sourceview/Graphics/UI/Gtk rmdir ./sourceview/Graphics/UI rmdir ./sourceview/Graphics hunk ./sourceview/sourceview.cabal.in 1 -name: sourceview -version: @PACKAGE_VERSION@ -license: LGPL -license-file: COPYING.LIB -maintainer: gtk...@li... -stability: provisional -homepage: http://haskell.org/gtk2hs/ -category: Graphics -build-depends: base-@PKG_BASE_VERSION@ gtk==@PACKAGE_VERSION@ -exposed-modules: ${modules} rmfile ./sourceview/sourceview.cabal.in hunk ./sourceview/sourceview.h 1 -#include <gtksourceview/gtksourceview.h> -#include <gtksourceview/gtksourcelanguagesmanager.h> -#include <gtksourceview/gtksourcetag.h> -#include <gtksourceview/gtksourceiter.h> rmfile ./sourceview/sourceview.h hunk ./sourceview/sourceview.package.conf.in 1 -name: sourceview -version: @PACKAGE_VERSION@ -id: sourceview-@PACKAGE_VERSION@ -license: LGPL -license-file: COPYING.LIB -maintainer: gtk...@li... -stability: provisional -homepage: http://haskell.org/gtk2hs/ -exposed: True -exposed-modules: ${modules} -import-dirs: "${pkglibdir}/imports/sourceview" -library-dirs: @SOURCEVIEW_LIBDIR_CQ@ -hs-libraries: HSsourceview -extra-libraries: @SOURCEVIEW_LIBS_CQ@ -include-dirs: @SOURCEVIEW_CFLAGS_CQ@ -includes: gtksourceview/gtksourcelanguagesmanager.h, - gtksourceview/gtksourcetag.h, - gtksourceview/gtksourceiter.h, - gtksourceview/gtksourceview.h -depends: @PKG_BASE_ID@ gtk-@PACKAGE_VERSION@ -ld-options: @SOURCEVIEW_LIBEXTRA_CQ@ rmfile ./sourceview/sourceview.package.conf.in rmdir ./sourceview hunk ./mozembed/demo/Makefile 1 - -PROG = testembedmoz -SOURCES = TestEmbedMoz.hs - -$(PROG) : $(SOURCES) - $(HC) --make $< -o $@ $(HCFLAGS) - -clean: - rm -f $(SOURCES:.hs=.hi) $(SOURCES:.hs=.o) $(PROG) - -HC=ghc rmfile ./mozembed/demo/Makefile hunk ./mozembed/demo/TestEmbedMoz.hs 1 --- A Test Program for the Gtk2 Mozilla Widget --- - -import Graphics.UI.Gtk -import Graphics.UI.Gtk.MozEmbed -import System (getArgs, getEnv, getProgName) - - -main :: IO () -main = do - initGUI - w <- windowNew - onDestroy w mainQuit - mozEmbedSetCompPath mozEmbedDefaultCompPath - - moz <- mozEmbedNew - widgetShow moz - - containerAdd w moz - - windowSetTitle w "TestEmbedMoz" - containerSetBorderWidth w 2 - widgetSetSizeRequest w 640 480 - widgetShowAll w - - onOpenConnectID <- onOpenURI moz - (\ s -> do putStrLn ("onOpenURI: " ++ s) - return False) - - args <- getArgs - case args of - file@(c:_) : _ -> let - (fr,dr) = span ('/' /=) $ reverse file - dir = reverse dr - in do - dir <- if c == '/' then return dir - else do pwd <- getEnv "PWD" - return (pwd ++ '/' : dir) - let dirSlash = case last dir of - '/' -> dir - _ -> dir ++ "/" - baseURI = "file://" ++ dirSlash - mozdata <- readFile file - mozEmbedRenderData moz mozdata baseURI mimeType - mainGUI - _ -> do p <- getProgName - putStrLn ("Usage: " ++ p ++ " <htmlfile>") - -mimeType = "text/html" - rmfile ./mozembed/demo/TestEmbedMoz.hs rmdir ./mozembed/demo hunk ./mozembed/Graphics/UI/Gtk/MozEmbed.chs 1 -{-# LANGUAGE CPP #-} --- -*-haskell-*- --- GIMP Toolkit (GTK) Widget embedding the Mozilla browser engine (Gecko) --- --- Author : Jonas Svensson --- --- Created: 26 February 2002 --- --- Copyright (c) 2002 Jonas Svensson --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Library General Public --- License as published by the Free Software Foundation; either --- version 2 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 --- Library General Public License for more details. --- --- Modified 2004 by Scott West for basic use in gtk2hs --- --- Further modified 2004 by Wolfram Kahl: --- * ported to gtk2hs/c2hs --- * added additional interface functions --- * circumvented render_data problem - --- cpp defines unix=1 which gets in the way here so we must undefine it [_$_] -#undef unix - --- | This widgets embeds Mozilla's browser engine (Gecko) into a Gtk+ widget. --- --- See <http://www.mozilla.org/unix/gtk-embedding.html> for a more detailed API --- reference. --- -module Graphics.UI.Gtk.MozEmbed ( --- * Types - MozEmbed, - --- * Constructors - mozEmbedNew, - mozEmbedSetCompPath, - mozEmbedDefaultCompPath, - mozEmbedSetProfilePath, - mozEmbedPushStartup, - mozEmbedPopStartup, - --- * Methods - mozEmbedLoadUrl, - mozEmbedStopLoad, - [_$_] - mozEmbedRenderData, - mozEmbedOpenStream, - mozEmbedAppendData, - mozEmbedCloseStream, - - mozEmbedGoBack, - mozEmbedGoForward, - mozEmbedCanGoBack, - mozEmbedCanGoForward, - mozEmbedGetTitle, - mozEmbedGetLocation, - mozEmbedGetLinkMessage, - mozEmbedGetJsStatus, - --- * Signals - onOpenURI, - onKeyDown, - onKeyPress, - onKeyUp, - onMouseDown, - onMouseUp, - onMouseClick, - onMouseDoubleClick, - onMouseOver, - onMouseOut, -) where - -import Control.Monad (liftM) - -import System.Glib.FFI -import System.Glib.UTFString -{#import Graphics.UI.Gtk.Abstract.Object#} (makeNewObject) -{#import Graphics.UI.Gtk.Signals#} (ConnectId, - connect_STRING__BOOL, ... [truncated message content] |
From: Andy S. <And...@co...> - 2010-05-27 10:28:43
|
diffing dir... Thu May 27 06:21:40 EDT 2010 Andy Stewart <laz...@gm...> * Fix IconTheme.chs docs. Ignore-this: 2f2b7ab508c688cc73f1b59012966d13 { hunk ./gtk/Graphics/UI/Gtk/General/IconTheme.chs 44 --- [_\e2_][_\97_][_\8f_] Stock images usually are used in conjunction with Stock Items, such as ''StockOk'' or +-- * Stock images usually are used in conjunction with Stock Items, such as ''StockOk'' or hunk ./gtk/Graphics/UI/Gtk/General/IconTheme.chs 48 --- [_\e2_][_\97_][_\8f_] Stock images can only be loaded at the symbolic sizes defined by the 'IconSize' enumeration, or +-- * Stock images can only be loaded at the symbolic sizes defined by the 'IconSize' enumeration, or hunk ./gtk/Graphics/UI/Gtk/General/IconTheme.chs 52 --- [_\e2_][_\97_][_\8f_] Because stock images are closely tied to stock items, and thus to actions in the user interface, +-- * Because stock images are closely tied to stock items, and thus to actions in the user interface, hunk ./gtk/Graphics/UI/Gtk/General/IconTheme.chs 67 --- + hunk ./gtk/Graphics/UI/Gtk/General/IconTheme.chs 69 --- } |
From: Andy S. <And...@co...> - 2010-05-27 10:02:52
|
diffing dir... Thu May 27 05:55:30 EDT 2010 Andy Stewart <laz...@gm...> * Fix Gtk2HsSetup.hs bug. Ignore-this: 1b65945da174e05d0ad2a1f01e2ee651 { hunk ./cairo/Gtk2HsSetup.hs 458 -extractDeps md@ModDep { mdLocation = Just f } = withFileContents f $ \con -> do +extractDeps md@ModDep { mdLocation = Just f } = withUTF8FileContents f $ \con -> do hunk ./gio/Gtk2HsSetup.hs 458 -extractDeps md@ModDep { mdLocation = Just f } = withFileContents f $ \con -> do +extractDeps md@ModDep { mdLocation = Just f } = withUTF8FileContents f $ \con -> do hunk ./glib/Gtk2HsSetup.hs 458 -extractDeps md@ModDep { mdLocation = Just f } = withFileContents f $ \con -> do +extractDeps md@ModDep { mdLocation = Just f } = withUTF8FileContents f $ \con -> do hunk ./gnomevfs/Gtk2HsSetup.hs 458 -extractDeps md@ModDep { mdLocation = Just f } = withFileContents f $ \con -> do +extractDeps md@ModDep { mdLocation = Just f } = withUTF8FileContents f $ \con -> do hunk ./gtk/Gtk2HsSetup.hs 458 -extractDeps md@ModDep { mdLocation = Just f } = withFileContents f $ \con -> do +extractDeps md@ModDep { mdLocation = Just f } = withUTF8FileContents f $ \con -> do hunk ./pango/Gtk2HsSetup.hs 458 -extractDeps md@ModDep { mdLocation = Just f } = withFileContents f $ \con -> do +extractDeps md@ModDep { mdLocation = Just f } = withUTF8FileContents f $ \con -> do } |
From: Axel S. <Axe...@in...> - 2010-05-27 08:49:55
|
On 27.05.2010, at 10:14, Andy Stewart wrote: > Axel Simon <Axe...@in...> writes: > >> For simplicity we could just add the Makefile. Creating a .cabal >> file is more work and nobody would >> want to install the demos anyway, so it's a bit overkill. > If don't use options "data-dir" and "data-files", how to make demo > directory > include in distribution package? Have better way? > No, that's fine. I'm just saying, why don't you add the 'Makefile' file as well. I was just saying, let's not have a separate .cabal file that builds just the demos. Cheers, Axel > I have found many gtk2hs newbie (#haskell) don't know how to start, > and > demo is really important for users. > > Cheers, > > -- Andy > >> >> A. >> On 27.05.2010, at 08:24, Andy Stewart wrote: >> >>> diffing dir... >>> Thu May 27 01:19:24 EDT 2010 Andy Stewart <laz...@gm... >>> > >>> * Add cairo demo directory. >>> Ignore-this: b1a70c2a24812fb84c899e4e8ce3ca6c >>> hunk ./cairo/cairo.cabal 22 >>> +Data-Dir: demo >>> +Data-Files: cairo-clock-icon.png >>> + CairoGhci.hs >>> + Clock.hs >>> + Drawing2.hs >>> + Drawing.hs >>> + Graph.hs >>> + Makefile >>> + StarAndRing.hs >>> + Text.hs >>> +[_^I_][_^I_][_^I_][_^I_][_$_] >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Gtk2hs-commit mailing list >>> Gtk...@li... >>> https://lists.sourceforge.net/lists/listinfo/gtk2hs-commit |
From: Andy S. <laz...@gm...> - 2010-05-27 08:38:30
|
Hi Axel, Axel Simon <Axe...@in...> writes: > For simplicity we could just add the Makefile. Creating a .cabal file is more work and nobody would > want to install the demos anyway, so it's a bit overkill. If we want cabal include those demos in distribution package, we must add them in "data-files". If you just add Makefile in "data-files", cabal won't include .hs file in demo directory. So i think current solution is best one. Cheers, -- Andy > > A. > On 27.05.2010, at 08:24, Andy Stewart wrote: > >> diffing dir... >> Thu May 27 01:19:24 EDT 2010 Andy Stewart <laz...@gm...> >> * Add cairo demo directory. >> Ignore-this: b1a70c2a24812fb84c899e4e8ce3ca6c >> hunk ./cairo/cairo.cabal 22 >> +Data-Dir: demo >> +Data-Files: cairo-clock-icon.png >> + CairoGhci.hs >> + Clock.hs >> + Drawing2.hs >> + Drawing.hs >> + Graph.hs >> + Makefile >> + StarAndRing.hs >> + Text.hs >> +[_^I_][_^I_][_^I_][_^I_][_$_] >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Gtk2hs-commit mailing list >> Gtk...@li... >> https://lists.sourceforge.net/lists/listinfo/gtk2hs-commit |
From: Andy S. <laz...@gm...> - 2010-05-27 08:14:29
|
Axel Simon <Axe...@in...> writes: > For simplicity we could just add the Makefile. Creating a .cabal file is more work and nobody would > want to install the demos anyway, so it's a bit overkill. If don't use options "data-dir" and "data-files", how to make demo directory include in distribution package? Have better way? I have found many gtk2hs newbie (#haskell) don't know how to start, and demo is really important for users. Cheers, -- Andy > > A. > On 27.05.2010, at 08:24, Andy Stewart wrote: > >> diffing dir... >> Thu May 27 01:19:24 EDT 2010 Andy Stewart <laz...@gm...> >> * Add cairo demo directory. >> Ignore-this: b1a70c2a24812fb84c899e4e8ce3ca6c >> hunk ./cairo/cairo.cabal 22 >> +Data-Dir: demo >> +Data-Files: cairo-clock-icon.png >> + CairoGhci.hs >> + Clock.hs >> + Drawing2.hs >> + Drawing.hs >> + Graph.hs >> + Makefile >> + StarAndRing.hs >> + Text.hs >> +[_^I_][_^I_][_^I_][_^I_][_$_] >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Gtk2hs-commit mailing list >> Gtk...@li... >> https://lists.sourceforge.net/lists/listinfo/gtk2hs-commit |
From: Axel S. <Axe...@in...> - 2010-05-27 07:46:58
|
For simplicity we could just add the Makefile. Creating a .cabal file is more work and nobody would want to install the demos anyway, so it's a bit overkill. A. On 27.05.2010, at 08:24, Andy Stewart wrote: > diffing dir... > Thu May 27 01:19:24 EDT 2010 Andy Stewart <laz...@gm...> > * Add cairo demo directory. > Ignore-this: b1a70c2a24812fb84c899e4e8ce3ca6c > hunk ./cairo/cairo.cabal 22 > +Data-Dir: demo > +Data-Files: cairo-clock-icon.png > + CairoGhci.hs > + Clock.hs > + Drawing2.hs > + Drawing.hs > + Graph.hs > + Makefile > + StarAndRing.hs > + Text.hs > +[_^I_][_^I_][_^I_][_^I_][_$_] > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gtk2hs-commit mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk2hs-commit |
From: Andy S. <And...@co...> - 2010-05-27 06:24:24
|
diffing dir... Thu May 27 02:12:34 EDT 2010 Andy Stewart <laz...@gm...> * Add gnomevfs demo directory. Ignore-this: 40c6dd74b460d7546937212dacf1f9e1 hunk ./gnomevfs/gnomevfs.cabal 27 +Data-Dir: demo +Data-Files: Makefile + TestDir.hs + TestDriveVolume.hs + TestSync.hs + TestVolumeMonitor.hs + TestXfer.hs +[_^I_][_^I_][_^I_][_^I_][_$_] |
From: Andy S. <And...@co...> - 2010-05-27 06:24:22
|
diffing dir... Thu May 27 02:10:41 EDT 2010 Andy Stewart <laz...@gm...> * Add gtk demo directory. Ignore-this: 876a827c6f1bac1a8b26a99cd68c6005 hunk ./gtk/gtk.cabal 30 +Data-Dir: demo +Data-Files: actionMenu/ActionMenu.hs + actionMenu/Makefile + [_$_] + buttonbox/ButtonBox.hs + buttonbox/Makefile + [_$_] + carsim/CarSim.hs + carsim/Makefile + [_$_] + concurrent/Makefile + concurrent/Progress.hs + concurrent/ProgressThreadedRTS.hs + [_$_] + embedded/Embedded.hs + embedded/Makefile + embedded/Notes.txt + embedded/Uzbl.hs + [_$_] + fastdraw/FastDraw.hs + fastdraw/Makefile + [_$_] + filechooser/FileChooserDemo.glade + filechooser/FileChooserDemo.hs + filechooser/Makefile + [_$_] + fonts/Fonts.hs + fonts/Makefile + [_$_] + graphic/Drawing.hs + graphic/Makefile + [_$_] + gtkbuilder/GtkBuilderTest.hs + gtkbuilder/Makefile + gtkbuilder/simple.ui + [_$_] + hello/Makefile + hello/World.hs + [_$_] + inputmethod/Layout.hs + inputmethod/Makefile + [_$_] + menu/ComboDemo.hs + menu/Makefile + menu/MenuDemo.hs + [_$_] + statusicon/Makefile + statusicon/StatusIcon.hs + [_$_] + treeList/Completion.hs + treeList/DirList.hs + treeList/FilterDemo.hs + treeList/ListDemo.hs + treeList/ListDND.hs + treeList/ListTest.glade + treeList/ListTest.hs + treeList/ListText.hs + treeList/Makefile + treeList/rgb.txt + treeList/TreeDemo.hs + treeList/TreeSort.hs + treeList/TreeTest.glade + treeList/TreeTest.hs + [_$_] + treeList/resListDND/desktop.png + treeList/resListDND/laptop.png + treeList/resListDND/laptopSmall.png + treeList/resListDND/printer.png + treeList/resListDND/server.png + treeList/resListDND/tower.png + [_$_] + unicode/Arabic.hs + unicode/Makefile +[_^I_][_^I_][_^I_][_^I_][_$_] + demos.txt +[_^I_][_^I_][_^I_][_^I_][_$_] |
From: Andy S. <And...@co...> - 2010-05-27 06:24:22
|
diffing dir... Thu May 27 01:12:05 EDT 2010 Andy Stewart <laz...@gm...> * Add pango demo directory. Ignore-this: af1ff611ab459ee2b6c5bc09a3f63c11 hunk ./pango/pango.cabal 28 +Data-Dir: demo +Data-Files: Layout.hs + Makefile +[_^I_][_^I_][_^I_][_^I_][_$_] |
From: Andy S. <And...@co...> - 2010-05-27 06:24:20
|
diffing dir... Thu May 27 01:19:24 EDT 2010 Andy Stewart <laz...@gm...> * Add cairo demo directory. Ignore-this: b1a70c2a24812fb84c899e4e8ce3ca6c hunk ./cairo/cairo.cabal 22 +Data-Dir: demo +Data-Files: cairo-clock-icon.png + CairoGhci.hs + Clock.hs + Drawing2.hs + Drawing.hs + Graph.hs + Makefile + StarAndRing.hs + Text.hs +[_^I_][_^I_][_^I_][_^I_][_$_] |
From: Andy S. <And...@co...> - 2010-05-27 03:58:44
|
diffing dir... Wed May 26 23:53:50 EDT 2010 Andy Stewart <laz...@gm...> * Fix the license of gnomevfs Ignore-this: 9ac7c768af168d6f0c7af8c8790e8643 hunk ./gnomevfs/gnomevfs.cabal 3 -License: GPL +License: LGPL-2.1 |
From: Axel S. <si...@co...> - 2010-05-26 15:25:51
|
diffing dir... Wed May 26 11:21:25 EDT 2010 Axe...@in... * Fix the license of gio. Ignore-this: 42fe27de2030e0395227f889ba5345d8 hunk ./gio/gio.cabal 3 -License: GPL +License: LGPL-2.1 |
From: Axel S. <si...@co...> - 2010-05-25 22:02:28
|
diffing dir... Thu May 14 08:29:33 EDT 2009 m....@gm... * Fix Trac #1164. toGSList was reversing lists. Ignore-this: c466eadbc5ae61ba71721fe15b44735a { hunk ./glib/System/Glib/GList.chs 47 +import Control.Monad (foldM) hunk ./glib/System/Glib/GList.chs 119 -toGList xs = makeList nullPtr xs +toGList = foldM prepend nullPtr . reverse hunk ./glib/System/Glib/GList.chs 121 - -- makeList :: GList -> [Ptr a] -> IO GList - makeList current (x:xs) = do - newHead <- {#call unsafe list_prepend#} current (castPtr x) - makeList newHead xs - makeList current [] = return current + -- prepend :: GList -> Ptr a -> IO GList + prepend l x = {#call unsafe list_prepend#} l (castPtr x) hunk ./glib/System/Glib/GList.chs 127 -toGSList xs = makeList nullPtr xs +toGSList = foldM prepend nullPtr . reverse hunk ./glib/System/Glib/GList.chs 129 - -- makeList :: GSList -> [Ptr a] -> IO GSList - makeList current (x:xs) = do - newHead <- {#call unsafe slist_prepend#} current (castPtr x) - makeList newHead xs - makeList current [] = return current + -- prepend :: GSList -> Ptr a -> IO GList + prepend l x = {#call unsafe slist_prepend#} l (castPtr x) } |
From: Axel S. <si...@co...> - 2010-05-25 22:02:25
|
diffing dir... Tue May 25 17:19:47 EDT 2010 Axe...@in... * Remove gconf glade gstreamer gtkglext gtksourceview2 soegtk svgcairo vte webkit since these all now have their own repos. { hunk ./gconf/COPYING 1 - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. -[_^L_][_$_] - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. -[_^L_][_$_] - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - [_$_] - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. -[_^L_][_$_] - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. -[_^L_][_$_] - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. -[_^L_][_$_] - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. -[_^L_][_$_] - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. -[_^L_][_$_] - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. -[_^L_][_$_] - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS -[_^L_][_$_] - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - <one line to give the library's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - 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. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - <signature of Ty Coon>, 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! - - rmfile ./gconf/COPYING hunk ./gconf/Gtk2HsSetup.hs 1 -{-# LANGUAGE CPP #-} - -#define CABAL_VERSION_ENCODE(major, minor, micro) ( \ - ((major) * 10000) \ - + ((minor) * 100) \ - + ((micro) * 1)) - -#define CABAL_VERSION_CHECK(major,minor,micro) \ - (CABAL_VERSION >= CABAL_VERSION_ENCODE(major,minor,micro)) - --- now, this is bad, but Cabal doesn't seem to actually pass any information about --- its version to CPP, so guess the version depending on the version of GHC -#ifdef CABAL_VERSION_MINOR -#ifndef CABAL_VERSION_MAJOR -#define CABAL_VERSION_MAJOR 1 -#endif -#ifndef CABAL_VERSION_MICRO -#define CABAL_VERSION_MICRO 0 -#endif -#define CABAL_VERSION CABAL_VERSION_ENCODE( \ - CABAL_VERSION_MAJOR, \ - CABAL_VERSION_MINOR, \ - CABAL_VERSION_MICRO) -#else -#warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command) -#if (__GLASGOW_HASKELL__ >= 612) -#define CABAL_VERSION CABAL_VERSION_ENCODE(1,8,0) -#else -#define CABAL_VERSION CABAL_VERSION_ENCODE(1,6,0) -#endif -#endif - --- | Build a Gtk2hs package. --- -module Gtk2HsSetup ( gtk2hsUserHooks, getPkgConfigPackages ) where - -import Distribution.Simple -import Distribution.Simple.PreProcess -import Distribution.InstalledPackageInfo ( importDirs, - showInstalledPackageInfo, - libraryDirs, - extraLibraries, - extraGHCiLibraries ) -import Distribution.Simple.PackageIndex ( -#if CABAL_VERSION_CHECK(1,8,0) - lookupInstalledPackageId -#else - lookupPackageId -#endif - ) -import Distribution.PackageDescription as PD ( PackageDescription(..), - updatePackageDescription, - BuildInfo(..), - emptyBuildInfo, allBuildInfo, - Library(..), - libModules, hasLibs) -import Distribution.Simple.LocalBuildInfo (LocalBuildInfo(..), - InstallDirs(..), -#if CABAL_VERSION_CHECK(1,8,0) - componentPackageDeps, -#else - packageDeps, -#endif - absoluteInstallDirs) -import Distribution.Simple.Compiler ( Compiler(..) ) -import Distribution.Simple.Program ( - Program(..), ConfiguredProgram(..), - rawSystemProgramConf, rawSystemProgramStdoutConf, - c2hsProgram, pkgConfigProgram, requireProgram, ghcPkgProgram, - simpleProgram, lookupProgram, rawSystemProgramStdout, ProgArg) -import Distribution.ModuleName ( ModuleName, components, toFilePath ) -import Distribution.Simple.Utils -import Distribution.Simple.Setup (CopyFlags(..), InstallFlags(..), CopyDest(..), - defaultCopyFlags, ConfigFlags(configVerbosity), - fromFlag, toFlag, RegisterFlags(..), flagToMaybe, - fromFlagOrDefault, defaultRegisterFlags) -import Distribution.Simple.BuildPaths ( autogenModulesDir ) -import Distribution.Simple.Install ( install ) -#if CABAL_VERSION_CHECK(1,8,0) -import Distribution.Simple.Register ( generateRegistrationInfo, registerPackage ) -#else -import qualified Distribution.Simple.Register as Register ( register ) -#endif -import Distribution.Text ( simpleParse, display ) -import System.FilePath -import System.Directory ( doesFileExist ) -import Distribution.Version (Version(..)) -import Distribution.Verbosity -import Control.Monad (when, unless, filterM) -import Data.Maybe ( isJust, isNothing, fromMaybe, maybeToList ) -import Data.List (isPrefixOf, isSuffixOf, nub) -import Data.Char (isAlpha) -import qualified Data.Map as M -import qualified Data.Set as S - -import Control.Applicative ((<$>)) -import System.Directory (getDirectoryContents, doesDirectoryExist) - --- the name of the c2hs pre-compiled header file -precompFile = "precompchs.bin" - -gtk2hsUserHooks = simpleUserHooks { - hookedPrograms = [typeGenProgram, signalGenProgram, c2hsLocal], - hookedPreProcessors = [("chs", ourC2hs)], - confHook = \pd cf -> - confHook simpleUserHooks pd cf >>= return . adjustLocalBuildInfo, - postConf = \args cf pd lbi -> do - genSynthezisedFiles (fromFlag (configVerbosity cf)) pd lbi - postConf simpleUserHooks args cf pd lbi, - buildHook = \pd lbi uh bf -> fixDeps pd >>= \pd -> - (buildHook simpleUserHooks) pd lbi uh bf, - copyHook = \pd lbi uh flags -> (copyHook simpleUserHooks) pd lbi uh flags >> - installCHI pd lbi (fromFlag (copyVerbosity flags)) (fromFlag (copyDest flags)), - instHook = \pd lbi uh flags -> -#if defined(mingw32_HOST_OS) || defined(__MINGW32__) - installHook pd lbi uh flags >> - installCHI pd lbi (fromFlag (installVerbosity flags)) NoCopyDest, - regHook = registerHook -#else - instHook simpleUserHooks pd lbi uh flags >> - installCHI pd lbi (fromFlag (installVerbosity flags)) NoCopyDest -#endif - } - ------------------------------------------------------------------------------- --- Lots of stuff for windows ghci support ------------------------------------------------------------------------------- - -getDlls :: [FilePath] -> IO [FilePath] -getDlls dirs = filter ((== ".dll") . takeExtension) . concat <$> - mapM getDirectoryContents dirs - -fixLibs :: [FilePath] -> [String] -> [String] -fixLibs dlls = concatMap $ \ lib -> - case filter (("lib" ++ lib) `isPrefixOf`) dlls of - dll:_ -> [dropExtension dll] - _ -> if lib == "z" then [] else [lib] - --- The following code is a big copy-and-paste job from the sources of --- Cabal 1.8 just to be able to fix a field in the package file. Yuck. - -#if CABAL_VERSION_CHECK(1,8,0) - [_$_] -installHook :: PackageDescription -> LocalBuildInfo - -> UserHooks -> InstallFlags -> IO () -installHook pkg_descr localbuildinfo _ flags = do - let copyFlags = defaultCopyFlags { - copyDistPref = installDistPref flags, - copyDest = toFlag NoCopyDest, - copyVerbosity = installVerbosity flags - } - install pkg_descr localbuildinfo copyFlags - let registerFlags = defaultRegisterFlags { - regDistPref = installDistPref flags, - regInPlace = installInPlace flags, - regPackageDB = installPackageDB flags, - regVerbosity = installVerbosity flags - } - when (hasLibs pkg_descr) $ register pkg_descr localbuildinfo registerFlags - -registerHook :: PackageDescription -> LocalBuildInfo - -> UserHooks -> RegisterFlags -> IO () -registerHook pkg_descr localbuildinfo _ flags = - if hasLibs pkg_descr - then register pkg_descr localbuildinfo flags - else setupMessage verbosity - "Package contains no library to register:" (packageId pkg_descr) - where verbosity = fromFlag (regVerbosity flags) - -register :: PackageDescription -> LocalBuildInfo - -> RegisterFlags -- ^Install in the user's database?; verbose - -> IO () -register pkg@PackageDescription { library = Just lib } - lbi@LocalBuildInfo { libraryConfig = Just clbi } regFlags - = do - - installedPkgInfoRaw <- generateRegistrationInfo - verbosity pkg lib lbi clbi inplace distPref - - dllsInScope <- getSearchPath >>= (filterM doesDirectoryExist) >>= getDlls - let libs = fixLibs dllsInScope (extraLibraries installedPkgInfoRaw) - installedPkgInfo = installedPkgInfoRaw { - extraGHCiLibraries = libs } - - -- Three different modes: - case () of - _ | modeGenerateRegFile -> die "Generate Reg File not supported" - | modeGenerateRegScript -> die "Generate Reg Script not supported" - | otherwise -> registerPackage verbosity - installedPkgInfo pkg lbi inplace packageDb - - where - modeGenerateRegFile = isJust (flagToMaybe (regGenPkgConf regFlags)) - modeGenerateRegScript = fromFlag (regGenScript regFlags) - inplace = fromFlag (regInPlace regFlags) - packageDb = case flagToMaybe (regPackageDB regFlags) of - Just db -> db - Nothing -> registrationPackageDB (withPackageDB lbi) - distPref = fromFlag (regDistPref regFlags) - verbosity = fromFlag (regVerbosity regFlags) - -register _ _ regFlags = notice verbosity "No package to register" - where - verbosity = fromFlag (regVerbosity regFlags) - -#else -installHook :: PackageDescription -> LocalBuildInfo - -> UserHooks -> InstallFlags -> IO () -installHook pkg_descr localbuildinfo _ flags = do - let copyFlags = defaultCopyFlags { - copyDistPref = installDistPref flags, - copyInPlace = installInPlace flags, - copyUseWrapper = installUseWrapper flags, - copyDest = toFlag NoCopyDest, - copyVerbosity = installVerbosity flags - } - install pkg_descr localbuildinfo copyFlags - let registerFlags = defaultRegisterFlags { - regDistPref = installDistPref flags, - regInPlace = installInPlace flags, - regPackageDB = installPackageDB flags, - regVerbosity = installVerbosity flags - } - when (hasLibs pkg_descr) $ register pkg_descr localbuildinfo registerFlags - -registerHook :: PackageDescription -> LocalBuildInfo - -> UserHooks -> RegisterFlags -> IO () -registerHook pkg_descr localbuildinfo _ flags = - if hasLibs pkg_descr - then register pkg_descr localbuildinfo flags - else setupMessage verbosity - "Package contains no library to register:" (packageId pkg_descr) - where verbosity = fromFlag (regVerbosity flags) - -register :: PackageDescription -> LocalBuildInfo - -> RegisterFlags -- ^Install in the user's database?; verbose - -> IO () -register pkg_descr lbi regFlags = do - let verbosity = fromFlag (regVerbosity regFlags) - warn verbosity "Cannot register ghci libraries with Cabal 1.6 (need 1.8)." - Register.register pkg_descr lbi regFlags - [_$_] -#endif - ------------------------------------------------------------------------------- --- This is a hack for Cabal-1.8, It is not needed in Cabal-1.9.1 or later ------------------------------------------------------------------------------- - -adjustLocalBuildInfo :: LocalBuildInfo -> LocalBuildInfo -adjustLocalBuildInfo lbi = - let extra = (Just libBi, []) - libBi = emptyBuildInfo { includeDirs = [ autogenModulesDir lbi - , buildDir lbi ] } - in lbi { localPkgDescr = updatePackageDescription extra (localPkgDescr lbi) } - ------------------------------------------------------------------------------- --- Processing .chs files with our local c2hs. ------------------------------------------------------------------------------- - -ourC2hs :: BuildInfo -> LocalBuildInfo -> PreProcessor -ourC2hs bi lbi = PreProcessor { - platformIndependent = False, - runPreProcessor = runC2HS bi lbi -} - -runC2HS :: BuildInfo -> LocalBuildInfo -> - (FilePath, FilePath) -> (FilePath, FilePath) -> Verbosity -> IO () -runC2HS bi lbi (inDir, inFile) (outDir, outFile) verbosity = do - -- have the header file name if we don't have the precompiled header yet - header <- case lookup "x-c2hs-header" (customFieldsBI bi) of - Just h -> return h - Nothing -> die ("Need x-c2hs-Header definition in the .cabal Library section "++ - "that sets the C header file to process .chs.pp files.") - - -- c2hs will output files in out dir, removing any leading path of the input file. - -- Thus, append the dir of the input file to the output dir. - let (outFileDir, newOutFile) = splitFileName outFile - let newOutDir = outDir </> outFileDir - -- additional .chi files might be needed that other packages have installed; - -- we assume that these are installed in the same place as .hi files - let chiDirs = [ dir | -#if CABAL_VERSION_CHECK(1,8,0) - ipi <- maybe [] (map fst . componentPackageDeps) (libraryConfig lbi), - dir <- maybe [] importDirs (lookupInstalledPackageId (installedPkgs lbi) ipi) ] -#else - ipi <- packageDeps lbi, - dir <- maybe [] importDirs (lookupPackageId (installedPkgs lbi) ipi) ] -#endif - rawSystemProgramConf verbosity c2hsLocal (withPrograms lbi) $ - map ("--include=" ++) (outDir:chiDirs) - ++ ["--cppopts=" ++ opt | opt <- getCppOptions bi lbi] - ++ ["--output-dir=" ++ newOutDir, - "--output=" ++ newOutFile, - "--precomp=" ++ buildDir lbi </> precompFile, - header, inDir </> inFile] - -getCppOptions :: BuildInfo -> LocalBuildInfo -> [String] -getCppOptions bi lbi - = nub $ - ["-I" ++ dir | dir <- PD.includeDirs bi] - ++ [opt | opt@('-':c:_) <- (PD.cppOptions bi ++ PD.ccOptions bi), c `elem` "DIU"] - -installCHI :: PackageDescription -- ^information from the .cabal file - -> LocalBuildInfo -- ^information from the configure step - -> Verbosity -> CopyDest -- ^flags sent to copy or install - -> IO () -installCHI pk...@PD...ckageDescription { library = Just lib } lbi verbosity copydest = do - let InstallDirs { libdir = libPref } = absoluteInstallDirs pkg lbi copydest - -- cannot use the recommended 'findModuleFiles' since it fails if there exists - -- a modules that does not have a .chi file - mFiles <- mapM (findFileWithExtension' ["chi"] [buildDir lbi]) - (map toFilePath -#if CABAL_VERSION_CHECK(1,8,0) - (PD.libModules lib) -#else - (PD.libModules pkg) -#endif - ) - let files = [ f | Just f <- mFiles ] -#if CABAL_VERSION_CHECK(1,8,0) - installOrdinaryFiles verbosity libPref files -#else - copyFiles verbosity libPref files -#endif - - [_$_] -installCHI _ _ _ _ = return () - ------------------------------------------------------------------------------- --- Generating the type hierarchy and signal callback .hs files. ------------------------------------------------------------------------------- - -typeGenProgram :: Program -typeGenProgram = (simpleProgram "gtk2hsTypeGen") - -signalGenProgram :: Program -signalGenProgram = (simpleProgram "gtk2hsHookGenerator") - -c2hsLocal :: Program -c2hsLocal = (simpleProgram "gtk2hsC2hs") - -genSynthezisedFiles :: Verbosity -> PackageDescription -> LocalBuildInfo -> IO () -genSynthezisedFiles verb pd lbi = do - - cPkgs <- getPkgConfigPackages verb lbi pd - - let xList = maybe [] (customFieldsBI . libBuildInfo) (library pd) - ++customFieldsPD pd - typeOpts :: String -> [ProgArg] - typeOpts tag = concat [ map (\val -> '-':'-':drop (length tag) field++'=':val) (words content) - | (field,content) <- xList, - tag `isPrefixOf` field, - field /= (tag++"file")] - ++ [ "--tag=" ++ tag - | PackageIdentifier name (Version (major:minor:_) _) <- cPkgs - , let name' = filter isAlpha (display name) - , tag <- name' - : [ name' ++ "-" ++ show major ++ "." ++ show digit - | digit <- [0,2..minor] ] - ] - - signalsOpts :: [ProgArg] - signalsOpts = concat [ map (\val -> '-':'-':drop 10 field++'=':val) (words content) - | (field,content) <- xList, - "x-signals-" `isPrefixOf` field, - field /= "x-signals-file"] - - genFile :: Program -> [ProgArg] -> FilePath -> IO () - genFile prog args outFile = do - res <- rawSystemProgramStdoutConf verb prog (withPrograms lbi) args - rewriteFile outFile res - - (flip mapM_) (filter (\(tag,_) -> "x-types-" `isPrefixOf` tag && "file" `isSuffixOf` tag) xList) $ - \(fileTag, f) -> do - let tag = reverse (drop 4 (reverse fileTag)) - info verb ("Ensuring that class hierarchy in "++f++" is up-to-date.") - genFile typeGenProgram (typeOpts tag) f - - case lookup "x-signals-file" xList of - Nothing -> return () - Just f -> do - info verb ("Ensuring that callback hooks in "++f++" are up-to-date.") - genFile signalGenProgram signalsOpts f - ---FIXME: Cabal should tell us the selected pkg-config package versions in the --- LocalBuildInfo or equivalent. --- In the mean time, ask pkg-config again. - -getPkgConfigPackages :: Verbosity -> LocalBuildInfo -> PackageDescription -> IO [PackageId] -getPkgConfigPackages verbosity lbi pkg = - sequence - [ do version <- pkgconfig ["--modversion", display pkgname] - case simpleParse version of - Nothing -> die $ "parsing output of pkg-config --modversion failed" - Just v -> return (PackageIdentifier pkgname v) - | Dependency pkgname _ <- concatMap pkgconfigDepends (allBuildInfo pkg) ] - where - pkgconfig = rawSystemProgramStdoutConf verbosity - pkgConfigProgram (withPrograms lbi) - ------------------------------------------------------------------------------- --- Dependency calculation amongst .chs files. ------------------------------------------------------------------------------- - --- Given all files of the package, find those that end in .chs and extract the --- .chs files they depend upon. Then return the PackageDescription with these --- files rearranged so that they are built in a sequence that files that are --- needed by other files are built first. -fixDeps :: PackageDescription -> IO PackageDescription -fixDeps pd...@PD...ckageDescription { - PD.library = Just li...@PD...brary { - PD.exposedModules = expMods, - PD.libBuildInfo = bi@PD.BuildInfo { - PD.hsSourceDirs = srcDirs, - PD.otherModules = othMods - }}} = do - let findModule m = findFileWithExtension [".chs.pp",".chs"] srcDirs - (joinPath (components m)) - mExpFiles <- mapM findModule expMods - mOthFiles <- mapM findModule othMods - - -- tag all exposed files with True so we throw an error if we need to build - -- an exposed module before an internal modules (we cannot express this) - let modDeps = zipWith (ModDep True []) expMods mExpFiles++ - zipWith (ModDep False []) othMods mOthFiles - modDeps <- mapM extractDeps modDeps - let (expMods, othMods) = span mdExposed $ sortTopological modDeps - badOther = map (fromMaybe "<no file>" . mdLocation) $ - filter (not . mdExposed) expMods - unless (null badOther) $ - die ("internal chs modules "++intercalate "," badOther++ - " depend on exposed chs modules; cabal needs to build internal modules first") - return pd { PD.library = Just lib { - PD.exposedModules = map mdOriginal expMods, - PD.libBuildInfo = bi { PD.otherModules = map mdOriginal othMods } - }} - -data ModDep = ModDep { - mdExposed :: Bool, - mdRequires :: [ModuleName], - mdOriginal :: ModuleName, - mdLocation :: Maybe FilePath -} - -instance Show ModDep where - show x = show (mdLocation x) - -instance Eq ModDep where - ModDep { mdOriginal = m1 } == ModDep { mdOriginal = m2 } = m1==m2 -instance Ord ModDep where - compare ModDep { mdOriginal = m1 } ModDep { mdOriginal = m2 } = compare m1 m2 - --- Extract the dependencies of this file. This is intentionally rather naive as it --- ignores CPP conditionals. We just require everything which means that the --- existance of a .chs module may not depend on some CPP condition. [_$_] -extractDeps :: ModDep -> IO ModDep -extractDeps md@ModDep { mdLocation = Nothing } = return md -extractDeps md@ModDep { mdLocation = Just f } = withFileContents f $ \con -> do - let findImports acc (('{':'#':xs):xxs) = case (dropWhile ((==) ' ') xs) of - ('i':'m':'p':'o':'r':'t':' ':ys) -> - case simpleParse (takeWhile ((/=) '#') ys) of - Just m -> findImports (m:acc) xxs [_$_] - Nothing -> die ("cannot parse chs import in "++f++":\n"++ - "offending line is {#"++xs) - -- no more imports after the first non-import hook - _ -> return acc - findImports acc (_:xxs) = findImports acc xxs - findImports acc [] = return acc - mods <- findImports [] (lines con) - return md { mdRequires = mods } - --- Find a total order of the set of modules that are partially sorted by their --- dependencies on each other. The function returns the sorted list of modules --- together with a list of modules that are required but not supplied by this --- in the input set of modules. -sortTopological :: [ModDep] -> [ModDep] -sortTopological ms = reverse $ fst $ foldl visit ([], S.empty) (map mdOriginal ms) - where - set = M.fromList (map (\m -> (mdOriginal m, m)) ms) - visit (out,visited) m - | m `S.member` visited = (out,visited) - | otherwise = case m `M.lookup` set of - Nothing -> (out, m `S.insert` visited) - Just md -> (md:out', visited') - where - (out',visited') = foldl visit (out, m `S.insert` visited) (mdRequires md) rmfile ./gconf/Gtk2HsSetup.hs hunk ./gconf/Setup.hs 1 --- Setup file for a Gtk2Hs module. Contains only adjustments specific to this module, --- all Gtk2Hs-specific boilerplate is stored in Gtk2HsSetup.hs which should be kept --- identical across all modules. -import Gtk2HsSetup ( gtk2hsUserHooks ) -import Distribution.Simple ( defaultMainWithHooks ) - -main = defaultMainWithHooks gtk2hsUserHooks rmfile ./gconf/Setup.hs hunk ./gconf/System/Gnome/GConf/GConfClient.chs 1 -{-# LANGUAGE CPP, FlexibleContexts #-} --- -*-haskell-*- --- GIMP Toolkit (GTK) GConf API --- --- Author : Duncan Coutts --- Created: 16 April 2004 --- --- Copyright (c) 2004 Duncan Coutts --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Library General Public --- License as published by the Free Software Foundation; either --- version 2 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 --- Library General Public License for more details. --- --- | GConf is a system for maintaining program configuration information. --- --- The main difference between GConf and traditional configuration file --- API's is that GConf is \'live\'. Applications can be notified of changes --- in their configuration, it allows desktop wide setting --- to be propogated without restarting all applications, or multiple instances --- of a single application to synchronise their configuration. It is similar --- in many ways to the Win32 Registry with its directory-like structure. --- --- This module only binds the client library which is the only interface that --- normal applications should need. Only special GConf apps need lower level --- access. --- --- * Some low level functions have not been bound --- eg @gconf_client_get_for_engine@ --- -module System.Gnome.GConf.GConfClient ( - - -- * Data types - -- - GConf, GConfPreloadType, GConfError, - - -- * Creation operation - -- - gconfGetDefault, - [_$_] - -- * Registering for change notifications - -- - gconfAddDir, gconfRemoveDir, - gconfNotifyAdd, gconfNotifyRemove, - onValueChanged, afterValueChanged, - [_$_] - -- * Getting and setting configuration values - -- - gconfGet, gconfSet, --- gconfGetFloat, --- gconfGetInt, --- gconfGetString, --- gconfGetBool, --- gconfGetSchema, --- gconfGetList, --- gconfGetPair, - gconfGetWithoutDefault, - gconfGetDefaultFromSchema, - gconfUnset, - - -- * Caching control - -- - gconfClearCache, gconfPreload, - gconfSuggestSync, - - -- * Navigation - -- - gconfAllEntries, - gconfAllDirs, - gconfDirExists, - - -- * GConfValue - -- - GConfValueClass, - GConfPrimitiveValueClass, - GConfValue, - GConfValueDyn(..), - [_$_] -) where - -import Control.Monad (liftM, when) -import Data.IORef (newIORef, readIORef, writeIORef) -import System.IO.Unsafe (unsafePerformIO) - -import System.Glib.FFI -import System.Glib.UTFString -import System.Glib.GList -import System.Glib.GError (GErrorDomain, GErrorClass(..), propagateGError) -import System.Glib.GObject (constructNewGObject) -{#import System.Gnome.GConf.Types#} -{#import System.Gnome.GConf.Signals#} -{#import System.Gnome.GConf.GConfValue#} - -{# context lib="gconf" prefix ="gconf_client" #} - -{# enum GConfClientPreloadType as GConfPreloadType {underscoreToCase} #} - --- | The "GError" exceptions that can be thrown by functions in this module -{# enum GConfError {underscoreToCase} #} - -gconfErrorDomain :: GErrorDomain -gconfErrorDomain = unsafePerformIO {#call unsafe gconf_error_quark#} - -instance GErrorClass GConfError where - gerrorDomain _ = gconfErrorDomain - -{# pointer *GConfEntry newtype #} - --- Operations - --- Creation operations - --- | Create a new GConf object using the default configuration engine. --- -gconfGetDefault :: IO GConf -gconfGetDefault = do - -- make sure the glib type system is initialised, which it might not be if - -- we're using gconf without using gtk and initGUI. - -- It is safe to call g_type_init more than once. - {# call g_type_init #} - constructNewGObject mkGConf {# call gconf_client_get_default #} - - --- Registering for change notifications - --- | Add a directory to the list of directories the --- GConf will watch. You should use gconfNotifyAdd to associate --- change handlers with specific keys. --- --- * Added directories may not overlap. That is, if you add \"\/foo\", you may --- not add \"\/foo\/bar\". However you can add \"\/foo\" and \"\/bar\". You can --- also add \"\/foo\" multiple times; if you add a directory multiple times, it --- will not be removed until you call 'gconfRemoveDir' an equal number of --- times. --- --- * Note that the watch is recursive, all keys below the given directory will --- be watched. So it would be a bad idea to watch the root \"\/\". --- -gconfAddDir :: GConf -> String -> IO () -gconfAddDir gc key = gconfAddDirWithPreload gc key PreloadNone - --- | Like 'gconfAddDir' but with the option to specify a preload mode. --- --- As a rule of thumb, if you plan to get the value of almost all the keys in a --- directory, preloading that directory will probably enhance performance. If --- you plan to use only half the keys, preloading is likely a bad idea. --- [_$_] --- * PreloadNone specifies that no preload occurs --- * PreloadOnelevel loads the immediate children of the directory --- * PreloadRecursive loads all children of the directory and its --- subdirectories, recursively. --- [_$_] -gconfAddDirWithPreload :: GConf -> String -> GConfPreloadType -> IO () -gconfAddDirWithPreload gc key preload = - propagateGError $ \gerrorPtr -> - withCString key $ \strPtr -> - {# call gconf_client_add_dir #} gc strPtr - (fromIntegral $ fromEnum preload) gerrorPtr - --- | Remove a directory from the list created with 'gconfAddDir'. If any --- notifications have been added below this directory with 'gconfNotifyAdd', --- those notifications will be disabled until you re-add the removed directory. --- --- * Note that if a directory has been added multiple times, you must remove it --- the same number of times before the remove takes effect. --- -gconfRemoveDir :: GConf -> String -> IO () -gconfRemoveDir gc key = - propagateGError $ \gerrorPtr -> - withCString key $ \strPtr -> [_$_] - {# call gconf_client_remove_dir #} gc strPtr gerrorPtr - - -{#pointer GFreeFunc#} - -foreign import ccall "wrapper" mkDestructor :: IO () -> IO GFreeFunc - -type GConfClientNotifyFunc = Ptr () -> --GConfClient *client - {#type guint#} -> --guint cnxn_id ... [truncated message content] |
From: Axel S. <si...@co...> - 2010-05-25 13:16:19
|
diffing dir... Tue May 25 09:14:28 EDT 2010 Axe...@in... * Documentation fix for EventM. Ignore-this: 25c3bf3513ec6467cbd0febe397ab53e { hunk ./gtk/Graphics/UI/Gtk/Gdk/EventM.hsc 32 --- Types and accessors to examine information in events. This module is not --- exposed by default and therefore has to be imported explicitly using: --- @import Graphics.UI.Gtk.Gdk.EventM@ +-- Types and accessors to examine information in events. hunk ./gtk/Graphics/UI/Gtk/Gdk/Events.hsc 31 --- favor of 'Graphics.UI.Gtk.Gdk.EventM'. +-- favor of 'Graphics.UI.Gtk.Gdk.EventM' and not exported by Gtk.hs. } |
From: Axel S. <si...@co...> - 2010-05-25 08:24:30
|
diffing dir... Tue May 25 04:21:01 EDT 2010 Axe...@in... * Put upper bounds on base version. Ignore-this: f92b2d9970c436c9fcbcf141fc988e8 { hunk ./gconf/gconf.cabal 35 - build-depends: base >= 4, array, containers, haskell98, mtl, + build-depends: base >= 4 && < 5, array, containers, haskell98, mtl, hunk ./glade/glade.cabal 33 - build-depends: base >= 4, array, containers, haskell98, mtl, + build-depends: base >= 4 && < 5, array, containers, haskell98, mtl, hunk ./gnomevfs/gnomevfs.cabal 39 - build-depends: base >= 4, array, containers, haskell98, mtl, + build-depends: base >= 4 && < 5, array, containers, haskell98, mtl, hunk ./gtkglext/gtkglext.cabal 31 - build-depends: base >= 4, array, containers, haskell98, mtl, + build-depends: base >= 4 && < 5, array, containers, haskell98, mtl, hunk ./gtksourceview2/gtksourceview2.cabal 36 - build-depends: base >= 4, array, containers, haskell98, mtl, + build-depends: base >= 4 && < 5, array, containers, haskell98, mtl, hunk ./soegtk/soegtk.cabal 27 - build-depends: base >= 4, array, containers, haskell98, mtl, + build-depends: base >= 4 && < 5, array, containers, haskell98, mtl, hunk ./svgcairo/svgcairo.cabal 30 - build-depends: base >= 4, array, containers, haskell98, mtl, + build-depends: base >= 4 && < 5, array, containers, haskell98, mtl, hunk ./vte/vte.cabal 37 - build-depends: base >= 4, array, containers, haskell98, mtl, + build-depends: base >= 4 && < 5, array, containers, haskell98, mtl, hunk ./webkit/webkit.cabal 39 - build-depends: base >= 4, array, containers, haskell98, mtl, + build-depends: base >= 4 && < 5, array, containers, haskell98, mtl, } |
From: Axel S. <si...@co...> - 2010-05-25 08:09:06
|
diffing dir... Tue May 25 04:02:09 EDT 2010 Axe...@in... * Make documentation parsable. Ignore-this: 60f44b8251a9f3e933c874f72d8e8801 { hunk ./webkit/Graphics/UI/Gtk/WebKit/Download.chs 215 --- Default value: "" +-- Default value: \"\" hunk ./webkit/Graphics/UI/Gtk/WebKit/Download.chs 260 --- Default value: "" +-- Default value: \"\" hunk ./webkit/Graphics/UI/Gtk/WebKit/WebView.chs 209 --- * Enums +------------------ +-- Enums hunk ./webkit/Graphics/UI/Gtk/WebKit/WebView.chs 871 --- | Returns the current URI of the contents displayed by the @web_view. +-- | Returns the current URI of the contents displayed by the @web_view@. } |
From: Axel S. <si...@co...> - 2010-05-25 08:09:06
|
diffing dir... Tue May 25 03:57:06 EDT 2010 Axe...@in... * Make the version test in pango less complex as Cabal 1.6 doesn't parse it otherwise. Ignore-this: f3446237cf66abf49e81bd4ba8ef9744 { hunk ./pango/pango.cabal 69 - -- loop. Don't allow the user to build against this version. + -- loop. Don't allow the user to build against this version. (Omit the + -- >= 1.0 constraint in this case since Cabal 1.6 can't parse it.) hunk ./pango/pango.cabal 72 - pkgconfig-depends: pango >= 1.0 && < 1.26.0 || > 1.26.2 + pkgconfig-depends: pango < 1.26.0 || > 1.26.2 } |
From: Axel S. <si...@co...> - 2010-05-25 08:09:04
|
diffing dir... Tue May 25 03:56:39 EDT 2010 Axe...@in... * Fix an incorrect pattern in windowSetIcon. Ignore-this: eb596c778897b4ae4fd7f9a8dde59726 hunk ./gtk/Graphics/UI/Gtk/Windows/Window.chs 1236 -windowSetIcon self (Just icon) = +windowSetIcon self Nothing = |
From: Andy S. <And...@co...> - 2010-05-24 23:53:46
|
diffing dir... Mon May 24 19:53:15 EDT 2010 Andy Stewart <laz...@gm...> * Get rid of stock images under ./docs/reference/images Ignore-this: 1094aaf32c73ba189937e1beee24ee49 { binary ./docs/reference/images/stock-icons/stock_about_24.png rmfile ./docs/reference/images/stock-icons/stock_about_24.png binary ./docs/reference/images/stock-icons/stock_add_24.png rmfile ./docs/reference/images/stock-icons/stock_add_24.png binary ./docs/reference/images/stock-icons/stock_align_center_24.png rmfile ./docs/reference/images/stock-icons/stock_align_center_24.png binary ./docs/reference/images/stock-icons/stock_align_justify_24.png rmfile ./docs/reference/images/stock-icons/stock_align_justify_24.png binary ./docs/reference/images/stock-icons/stock_align_left_24.png rmfile ./docs/reference/images/stock-icons/stock_align_left_24.png binary ./docs/reference/images/stock-icons/stock_align_right_24.png rmfile ./docs/reference/images/stock-icons/stock_align_right_24.png binary ./docs/reference/images/stock-icons/stock_apply_20.png rmfile ./docs/reference/images/stock-icons/stock_apply_20.png binary ./docs/reference/images/stock-icons/stock_bottom_24.png rmfile ./docs/reference/images/stock-icons/stock_bottom_24.png binary ./docs/reference/images/stock-icons/stock_broken_image_24.png rmfile ./docs/reference/images/stock-icons/stock_broken_image_24.png binary ./docs/reference/images/stock-icons/stock_cancel_20.png rmfile ./docs/reference/images/stock-icons/stock_cancel_20.png binary ./docs/reference/images/stock-icons/stock_cdrom_24.png rmfile ./docs/reference/images/stock-icons/stock_cdrom_24.png binary ./docs/reference/images/stock-icons/stock_clear_24.png rmfile ./docs/reference/images/stock-icons/stock_clear_24.png binary ./docs/reference/images/stock-icons/stock_close_24.png rmfile ./docs/reference/images/stock-icons/stock_close_24.png binary ./docs/reference/images/stock-icons/stock_color_picker_25.png rmfile ./docs/reference/images/stock-icons/stock_color_picker_25.png binary ./docs/reference/images/stock-icons/stock_colorselector_24.png rmfile ./docs/reference/images/stock-icons/stock_colorselector_24.png binary ./docs/reference/images/stock-icons/stock_connect_24.png rmfile ./docs/reference/images/stock-icons/stock_connect_24.png binary ./docs/reference/images/stock-icons/stock_convert_24.png rmfile ./docs/reference/images/stock-icons/stock_convert_24.png binary ./docs/reference/images/stock-icons/stock_copy_24.png rmfile ./docs/reference/images/stock-icons/stock_copy_24.png binary ./docs/reference/images/stock-icons/stock_cut_24.png rmfile ./docs/reference/images/stock-icons/stock_cut_24.png binary ./docs/reference/images/stock-icons/stock_dialog_authentication_48.png rmfile ./docs/reference/images/stock-icons/stock_dialog_authentication_48.png binary ./docs/reference/images/stock-icons/stock_dialog_error_48.png rmfile ./docs/reference/images/stock-icons/stock_dialog_error_48.png binary ./docs/reference/images/stock-icons/stock_dialog_info_48.png rmfile ./docs/reference/images/stock-icons/stock_dialog_info_48.png binary ./docs/reference/images/stock-icons/stock_dialog_question_48.png rmfile ./docs/reference/images/stock-icons/stock_dialog_question_48.png binary ./docs/reference/images/stock-icons/stock_dialog_warning_48.png rmfile ./docs/reference/images/stock-icons/stock_dialog_warning_48.png binary ./docs/reference/images/stock-icons/stock_directory_24.png rmfile ./docs/reference/images/stock-icons/stock_directory_24.png binary ./docs/reference/images/stock-icons/stock_disconnect_24.png rmfile ./docs/reference/images/stock-icons/stock_disconnect_24.png binary ./docs/reference/images/stock-icons/stock_dnd_32.png rmfile ./docs/reference/images/stock-icons/stock_dnd_32.png binary ./docs/reference/images/stock-icons/stock_dnd_multiple_32.png rmfile ./docs/reference/images/stock-icons/stock_dnd_multiple_32.png binary ./docs/reference/images/stock-icons/stock_down_arrow_24.png rmfile ./docs/reference/images/stock-icons/stock_down_arrow_24.png binary ./docs/reference/images/stock-icons/stock_edit_24.png rmfile ./docs/reference/images/stock-icons/stock_edit_24.png binary ./docs/reference/images/stock-icons/stock_exec_24.png rmfile ./docs/reference/images/stock-icons/stock_exec_24.png binary ./docs/reference/images/stock-icons/stock_exit_24.png rmfile ./docs/reference/images/stock-icons/stock_exit_24.png binary ./docs/reference/images/stock-icons/stock_file_24.png rmfile ./docs/reference/images/stock-icons/stock_file_24.png binary ./docs/reference/images/stock-icons/stock_first_24.png rmfile ./docs/reference/images/stock-icons/stock_first_24.png binary ./docs/reference/images/stock-icons/stock_font_24.png rmfile ./docs/reference/images/stock-icons/stock_font_24.png binary ./docs/reference/images/stock-icons/stock_fullscreen_24.png rmfile ./docs/reference/images/stock-icons/stock_fullscreen_24.png binary ./docs/reference/images/stock-icons/stock_harddisk_24.png rmfile ./docs/reference/images/stock-icons/stock_harddisk_24.png binary ./docs/reference/images/stock-icons/stock_help_24.png rmfile ./docs/reference/images/stock-icons/stock_help_24.png binary ./docs/reference/images/stock-icons/stock_home_24.png rmfile ./docs/reference/images/stock-icons/stock_home_24.png binary ./docs/reference/images/stock-icons/stock_index_24.png rmfile ./docs/reference/images/stock-icons/stock_index_24.png binary ./docs/reference/images/stock-icons/stock_info_24.png rmfile ./docs/reference/images/stock-icons/stock_info_24.png binary ./docs/reference/images/stock-icons/stock_jump_to_24.png rmfile ./docs/reference/images/stock-icons/stock_jump_to_24.png binary ./docs/reference/images/stock-icons/stock_last_24.png rmfile ./docs/reference/images/stock-icons/stock_last_24.png binary ./docs/reference/images/stock-icons/stock_leave_fullscreen_24.png rmfile ./docs/reference/images/stock-icons/stock_leave_fullscreen_24.png binary ./docs/reference/images/stock-icons/stock_left_arrow_24.png rmfile ./docs/reference/images/stock-icons/stock_left_arrow_24.png binary ./docs/reference/images/stock-icons/stock_media_forward_24.png rmfile ./docs/reference/images/stock-icons/stock_media_forward_24.png binary ./docs/reference/images/stock-icons/stock_media_next_24.png rmfile ./docs/reference/images/stock-icons/stock_media_next_24.png binary ./docs/reference/images/stock-icons/stock_media_pause_24.png rmfile ./docs/reference/images/stock-icons/stock_media_pause_24.png binary ./docs/reference/images/stock-icons/stock_media_play_24.png rmfile ./docs/reference/images/stock-icons/stock_media_play_24.png binary ./docs/reference/images/stock-icons/stock_media_previous_24.png rmfile ./docs/reference/images/stock-icons/stock_media_previous_24.png binary ./docs/reference/images/stock-icons/stock_media_record_24.png rmfile ./docs/reference/images/stock-icons/stock_media_record_24.png binary ./docs/reference/images/stock-icons/stock_media_rewind_24.png rmfile ./docs/reference/images/stock-icons/stock_media_rewind_24.png binary ./docs/reference/images/stock-icons/stock_media_stop_24.png rmfile ./docs/reference/images/stock-icons/stock_media_stop_24.png binary ./docs/reference/images/stock-icons/stock_network_24.png rmfile ./docs/reference/images/stock-icons/stock_network_24.png binary ./docs/reference/images/stock-icons/stock_new_24.png rmfile ./docs/reference/images/stock-icons/stock_new_24.png binary ./docs/reference/images/stock-icons/stock_no_20.png rmfile ./docs/reference/images/stock-icons/stock_no_20.png binary ./docs/reference/images/stock-icons/stock_ok_20.png rmfile ./docs/reference/images/stock-icons/stock_ok_20.png binary ./docs/reference/images/stock-icons/stock_open_24.png rmfile ./docs/reference/images/stock-icons/stock_open_24.png binary ./docs/reference/images/stock-icons/stock_paste_24.png rmfile ./docs/reference/images/stock-icons/stock_paste_24.png binary ./docs/reference/images/stock-icons/stock_preferences_24.png rmfile ./docs/reference/images/stock-icons/stock_preferences_24.png binary ./docs/reference/images/stock-icons/stock_print_24.png rmfile ./docs/reference/images/stock-icons/stock_print_24.png binary ./docs/reference/images/stock-icons/stock_print_preview_24.png rmfile ./docs/reference/images/stock-icons/stock_print_preview_24.png binary ./docs/reference/images/stock-icons/stock_properties_24.png rmfile ./docs/reference/images/stock-icons/stock_properties_24.png binary ./docs/reference/images/stock-icons/stock_redo_24.png rmfile ./docs/reference/images/stock-icons/stock_redo_24.png binary ./docs/reference/images/stock-icons/stock_refresh_24.png rmfile ./docs/reference/images/stock-icons/stock_refresh_24.png binary ./docs/reference/images/stock-icons/stock_remove_24.png rmfile ./docs/reference/images/stock-icons/stock_remove_24.png binary ./docs/reference/images/stock-icons/stock_revert_24.png rmfile ./docs/reference/images/stock-icons/stock_revert_24.png binary ./docs/reference/images/stock-icons/stock_right_arrow_24.png rmfile ./docs/reference/images/stock-icons/stock_right_arrow_24.png binary ./docs/reference/images/stock-icons/stock_save_24.png rmfile ./docs/reference/images/stock-icons/stock_save_24.png binary ./docs/reference/images/stock-icons/stock_save_as_24.png rmfile ./docs/reference/images/stock-icons/stock_save_as_24.png binary ./docs/reference/images/stock-icons/stock_search_24.png rmfile ./docs/reference/images/stock-icons/stock_search_24.png binary ./docs/reference/images/stock-icons/stock_search_replace_24.png rmfile ./docs/reference/images/stock-icons/stock_search_replace_24.png binary ./docs/reference/images/stock-icons/stock_sort_ascending_24.png rmfile ./docs/reference/images/stock-icons/stock_sort_ascending_24.png binary ./docs/reference/images/stock-icons/stock_sort_descending_24.png rmfile ./docs/reference/images/stock-icons/stock_sort_descending_24.png binary ./docs/reference/images/stock-icons/stock_spellcheck_24.png rmfile ./docs/reference/images/stock-icons/stock_spellcheck_24.png binary ./docs/reference/images/stock-icons/stock_stop_24.png rmfile ./docs/reference/images/stock-icons/stock_stop_24.png binary ./docs/reference/images/stock-icons/stock_text_bold_24.png rmfile ./docs/reference/images/stock-icons/stock_text_bold_24.png binary ./docs/reference/images/stock-icons/stock_text_indent_24.png rmfile ./docs/reference/images/stock-icons/stock_text_indent_24.png binary ./docs/reference/images/stock-icons/stock_text_italic_24.png rmfile ./docs/reference/images/stock-icons/stock_text_italic_24.png binary ./docs/reference/images/stock-icons/stock_text_strikethrough_24.png rmfile ./docs/reference/images/stock-icons/stock_text_strikethrough_24.png binary ./docs/reference/images/stock-icons/stock_text_underline_24.png rmfile ./docs/reference/images/stock-icons/stock_text_underline_24.png binary ./docs/reference/images/stock-icons/stock_text_unindent_24.png rmfile ./docs/reference/images/stock-icons/stock_text_unindent_24.png binary ./docs/reference/images/stock-icons/stock_top_24.png rmfile ./docs/reference/images/stock-icons/stock_top_24.png binary ./docs/reference/images/stock-icons/stock_trash_24.png rmfile ./docs/reference/images/stock-icons/stock_trash_24.png binary ./docs/reference/images/stock-icons/stock_undelete_24.png rmfile ./docs/reference/images/stock-icons/stock_undelete_24.png binary ./docs/reference/images/stock-icons/stock_undo_24.png rmfile ./docs/reference/images/stock-icons/stock_undo_24.png binary ./docs/reference/images/stock-icons/stock_up_arrow_24.png rmfile ./docs/reference/images/stock-icons/stock_up_arrow_24.png binary ./docs/reference/images/stock-icons/stock_yes_20.png rmfile ./docs/reference/images/stock-icons/stock_yes_20.png binary ./docs/reference/images/stock-icons/stock_zoom_1_24.png rmfile ./docs/reference/images/stock-icons/stock_zoom_1_24.png binary ./docs/reference/images/stock-icons/stock_zoom_fit_24.png rmfile ./docs/reference/images/stock-icons/stock_zoom_fit_24.png binary ./docs/reference/images/stock-icons/stock_zoom_in_24.png rmfile ./docs/reference/images/stock-icons/stock_zoom_in_24.png binary ./docs/reference/images/stock-icons/stock_zoom_out_24.png rmfile ./docs/reference/images/stock-icons/stock_zoom_out_24.png rmdir ./docs/reference/images/stock-icons rmdir ./docs/reference/images rmdir ./docs/reference } |