1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835
|
{-# OPTIONS_HADDOCK hide #-}
-- -*-haskell-*-
-- -------------------- automatically generated file - do not edit ------------
-- Callback installers for the GIMP Toolkit (GTK) Binding for Haskell
--
-- Author : Axel Simon
--
-- Created: 1 July 2000
--
-- Copyright (C) 2000-2005 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.
--
-- #hide
-- These functions are used to connect signals to widgets. They are auto-
-- matically created through HookGenerator.hs which takes a list of possible
-- function signatures that are included in the GTK sources (gtkmarshal.list).
--
-- The object system in the second version of GTK is based on GObject from
-- GLIB. This base class is rather primitive in that it only implements
-- ref and unref methods (and others that are not interesting to us). If
-- the marshall list mentions OBJECT it refers to an instance of this
-- GObject which is automatically wrapped with a ref and unref call.
-- Structures which are not derived from GObject have to be passed as
-- BOXED which gives the signal connect function a possibility to do the
-- conversion into a proper ForeignPtr type. In special cases the signal
-- connect function use a PTR type which will then be mangled in the
-- user function directly. The latter is needed if a signal delivers a
-- pointer to a string and its length in a separate integer.
--
module Graphics.UI.Gtk.Signals (
module System.Glib.Signals,
connect_BOXED__BOOL,
connect_PTR__BOOL,
connect_BOXED_BOXED__BOOL,
connect_ENUM__BOOL,
connect_ENUM_DOUBLE__BOOL,
connect_INT__BOOL,
connect_OBJECT_BOXED__BOOL,
connect_INT_INT__BOOL,
connect_INT_INT_INT__BOOL,
connect_WORD__BOOL,
connect_NONE__BOOL,
connect_BOOL__BOOL,
connect_NONE__ENUM,
connect_ENUM__ENUM,
connect_PTR__INT,
connect_BOOL__NONE,
connect_INT__NONE,
connect_INT_INT__NONE,
connect_NONE__NONE,
connect_DOUBLE__NONE,
connect_BOXED__NONE,
connect_BOXED_BOXED__NONE,
connect_BOXED_BOXED_PTR__NONE,
connect_BOXED_OBJECT__NONE,
connect_BOXED_WORD__NONE,
connect_ENUM__NONE,
connect_ENUM_INT__NONE,
connect_ENUM_INT_BOOL__NONE,
connect_OBJECT__NONE,
connect_MOBJECT__NONE,
connect_OBJECT_BOXED_BOXED__NONE,
connect_OBJECT_OBJECT__NONE,
connect_PTR__NONE,
connect_PTR_WORD__NONE,
connect_STRING__NONE,
connect_STRING_STRING__NONE,
connect_WORD_WORD__NONE,
connect_WORD_STRING__NONE,
connect_BOXED_PTR_INT__NONE,
connect_INT_BOOL__NONE,
connect_OBJECT_STRING__NONE,
connect_STRING__BOOL,
connect_OBJECT_PTR_BOXED__BOOL,
connect_PTR_BOXED_BOXED__BOOL,
connect_PTR_INT_PTR__NONE,
connect_PTR_WORD_WORD__NONE,
connect_OBJECT_PTR_WORD_WORD__NONE,
connect_OBJECT_INT_INT_PTR_WORD_WORD__NONE,
connect_OBJECT_INT_INT_WORD__BOOL,
connect_OBJECT_WORD__NONE,
connect_OBJECT_ENUM__BOOL,
connect_BOXED_STRING__NONE,
connect_OBJECT_INT__NONE,
connect_ENUM_BOOL__BOOL,
connect_BOXED_INT__NONE,
) where
import Control.Monad (liftM)
import System.Glib.FFI
import System.Glib.UTFString (peekUTFString)
import System.Glib.GError (failOnGError)
{#import System.Glib.Signals#}
{#import System.Glib.GObject#}
import Graphics.UI.Gtk.General.Threading
{#context lib="gtk" prefix="gtk" #}
-- Here are the generators that turn a Haskell function into
-- a C function pointer. The fist Argument is always the widget,
-- the last one is the user g_pointer. Both are ignored.
connect_BOXED__BOOL ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) ->
ConnectAfter -> obj ->
(a -> IO Bool) ->
IO (ConnectId obj)
connect_BOXED__BOOL signal boxedPre1 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> IO Bool
action _ box1 =
failOnGError $
boxedPre1 (castPtr box1) >>= \box1' ->
user box1'
connect_PTR__BOOL ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Ptr a -> IO Bool) ->
IO (ConnectId obj)
connect_PTR__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> IO Bool
action _ ptr1 =
failOnGError $
user (castPtr ptr1)
connect_BOXED_BOXED__BOOL ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) -> (Ptr b' -> IO b) ->
ConnectAfter -> obj ->
(a -> b -> IO Bool) ->
IO (ConnectId obj)
connect_BOXED_BOXED__BOOL signal boxedPre1 boxedPre2 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Ptr () -> IO Bool
action _ box1 box2 =
failOnGError $
boxedPre2 (castPtr box2) >>= \box2' ->
boxedPre1 (castPtr box1) >>= \box1' ->
user box1' box2'
connect_ENUM__BOOL ::
(Enum a, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a -> IO Bool) ->
IO (ConnectId obj)
connect_ENUM__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> IO Bool
action _ enum1 =
failOnGError $
user (toEnum enum1)
connect_ENUM_DOUBLE__BOOL ::
(Enum a, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a -> Double -> IO Bool) ->
IO (ConnectId obj)
connect_ENUM_DOUBLE__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> Double -> IO Bool
action _ enum1 double2 =
failOnGError $
user (toEnum enum1) double2
connect_INT__BOOL ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Int -> IO Bool) ->
IO (ConnectId obj)
connect_INT__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> IO Bool
action _ int1 =
failOnGError $
user int1
connect_OBJECT_BOXED__BOOL ::
(GObjectClass a', GObjectClass obj) => SignalName ->
(Ptr b' -> IO b) ->
ConnectAfter -> obj ->
(a' -> b -> IO Bool) ->
IO (ConnectId obj)
connect_OBJECT_BOXED__BOOL signal boxedPre2 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Ptr () -> IO Bool
action _ obj1 box2 =
failOnGError $
boxedPre2 (castPtr box2) >>= \box2' ->
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') box2'
connect_INT_INT__BOOL ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Int -> Int -> IO Bool) ->
IO (ConnectId obj)
connect_INT_INT__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> Int -> IO Bool
action _ int1 int2 =
failOnGError $
user int1 int2
connect_INT_INT_INT__BOOL ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Int -> Int -> Int -> IO Bool) ->
IO (ConnectId obj)
connect_INT_INT_INT__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> Int -> Int -> IO Bool
action _ int1 int2 int3 =
failOnGError $
user int1 int2 int3
connect_WORD__BOOL ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Word -> IO Bool) ->
IO (ConnectId obj)
connect_WORD__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Word -> IO Bool
action _ int1 =
failOnGError $
user int1
connect_NONE__BOOL ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(IO Bool) ->
IO (ConnectId obj)
connect_NONE__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> IO Bool
action _ =
failOnGError $
user
connect_BOOL__BOOL ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Bool -> IO Bool) ->
IO (ConnectId obj)
connect_BOOL__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Bool -> IO Bool
action _ bool1 =
failOnGError $
user bool1
connect_NONE__ENUM ::
(Enum a, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(IO a) ->
IO (ConnectId obj)
connect_NONE__ENUM signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> IO Int
action _ =
failOnGError $
liftM fromEnum $
user
connect_ENUM__ENUM ::
(Enum a, Enum b, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a -> IO b) ->
IO (ConnectId obj)
connect_ENUM__ENUM signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> IO Int
action _ enum1 =
failOnGError $
liftM fromEnum $
user (toEnum enum1)
connect_PTR__INT ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Ptr a -> IO Int) ->
IO (ConnectId obj)
connect_PTR__INT signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> IO Int
action _ ptr1 =
failOnGError $
user (castPtr ptr1)
connect_BOOL__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Bool -> IO ()) ->
IO (ConnectId obj)
connect_BOOL__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Bool -> IO ()
action _ bool1 =
failOnGError $
user bool1
connect_INT__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Int -> IO ()) ->
IO (ConnectId obj)
connect_INT__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> IO ()
action _ int1 =
failOnGError $
user int1
connect_INT_INT__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Int -> Int -> IO ()) ->
IO (ConnectId obj)
connect_INT_INT__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> Int -> IO ()
action _ int1 int2 =
failOnGError $
user int1 int2
connect_NONE__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(IO ()) ->
IO (ConnectId obj)
connect_NONE__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> IO ()
action _ =
failOnGError $
user
connect_DOUBLE__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Double -> IO ()) ->
IO (ConnectId obj)
connect_DOUBLE__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Double -> IO ()
action _ double1 =
failOnGError $
user double1
connect_BOXED__NONE ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) ->
ConnectAfter -> obj ->
(a -> IO ()) ->
IO (ConnectId obj)
connect_BOXED__NONE signal boxedPre1 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> IO ()
action _ box1 =
failOnGError $
boxedPre1 (castPtr box1) >>= \box1' ->
user box1'
connect_BOXED_BOXED__NONE ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) -> (Ptr b' -> IO b) ->
ConnectAfter -> obj ->
(a -> b -> IO ()) ->
IO (ConnectId obj)
connect_BOXED_BOXED__NONE signal boxedPre1 boxedPre2 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Ptr () -> IO ()
action _ box1 box2 =
failOnGError $
boxedPre2 (castPtr box2) >>= \box2' ->
boxedPre1 (castPtr box1) >>= \box1' ->
user box1' box2'
connect_BOXED_BOXED_PTR__NONE ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) -> (Ptr b' -> IO b) ->
ConnectAfter -> obj ->
(a -> b -> Ptr c -> IO ()) ->
IO (ConnectId obj)
connect_BOXED_BOXED_PTR__NONE signal boxedPre1 boxedPre2 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Ptr () -> Ptr () -> IO ()
action _ box1 box2 ptr3 =
failOnGError $
boxedPre2 (castPtr box2) >>= \box2' ->
boxedPre1 (castPtr box1) >>= \box1' ->
user box1' box2' (castPtr ptr3)
connect_BOXED_OBJECT__NONE ::
(GObjectClass b', GObjectClass obj) => SignalName ->
(Ptr a' -> IO a) ->
ConnectAfter -> obj ->
(a -> b' -> IO ()) ->
IO (ConnectId obj)
connect_BOXED_OBJECT__NONE signal boxedPre1 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Ptr GObject -> IO ()
action _ box1 obj2 =
failOnGError $
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj2) >>= \obj2' ->
boxedPre1 (castPtr box1) >>= \box1' ->
user box1' (unsafeCastGObject obj2')
connect_BOXED_WORD__NONE ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) ->
ConnectAfter -> obj ->
(a -> Word -> IO ()) ->
IO (ConnectId obj)
connect_BOXED_WORD__NONE signal boxedPre1 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Word -> IO ()
action _ box1 int2 =
failOnGError $
boxedPre1 (castPtr box1) >>= \box1' ->
user box1' int2
connect_ENUM__NONE ::
(Enum a, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a -> IO ()) ->
IO (ConnectId obj)
connect_ENUM__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> IO ()
action _ enum1 =
failOnGError $
user (toEnum enum1)
connect_ENUM_INT__NONE ::
(Enum a, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a -> Int -> IO ()) ->
IO (ConnectId obj)
connect_ENUM_INT__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> Int -> IO ()
action _ enum1 int2 =
failOnGError $
user (toEnum enum1) int2
connect_ENUM_INT_BOOL__NONE ::
(Enum a, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a -> Int -> Bool -> IO ()) ->
IO (ConnectId obj)
connect_ENUM_INT_BOOL__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> Int -> Bool -> IO ()
action _ enum1 int2 bool3 =
failOnGError $
user (toEnum enum1) int2 bool3
connect_OBJECT__NONE ::
(GObjectClass a', GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a' -> IO ()) ->
IO (ConnectId obj)
connect_OBJECT__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> IO ()
action _ obj1 =
failOnGError $
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1')
connect_MOBJECT__NONE ::
(GObjectClass a', GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(Maybe a' -> IO ()) ->
IO (ConnectId obj)
connect_MOBJECT__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> IO ()
action _ obj1 =
failOnGError $
maybeNull (makeNewGObject (GObject, objectUnrefFromMainloop)) (return obj1) >>= \obj1' ->
user (liftM unsafeCastGObject obj1')
connect_OBJECT_BOXED_BOXED__NONE ::
(GObjectClass a', GObjectClass obj) => SignalName ->
(Ptr b' -> IO b) -> (Ptr c' -> IO c) ->
ConnectAfter -> obj ->
(a' -> b -> c -> IO ()) ->
IO (ConnectId obj)
connect_OBJECT_BOXED_BOXED__NONE signal boxedPre2 boxedPre3 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Ptr () -> Ptr () -> IO ()
action _ obj1 box2 box3 =
failOnGError $
boxedPre3 (castPtr box3) >>= \box3' ->
boxedPre2 (castPtr box2) >>= \box2' ->
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') box2' box3'
connect_OBJECT_OBJECT__NONE ::
(GObjectClass a', GObjectClass b', GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a' -> b' -> IO ()) ->
IO (ConnectId obj)
connect_OBJECT_OBJECT__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Ptr GObject -> IO ()
action _ obj1 obj2 =
failOnGError $
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj2) >>= \obj2' ->
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') (unsafeCastGObject obj2')
connect_PTR__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Ptr a -> IO ()) ->
IO (ConnectId obj)
connect_PTR__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> IO ()
action _ ptr1 =
failOnGError $
user (castPtr ptr1)
connect_PTR_WORD__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Ptr a -> Word -> IO ()) ->
IO (ConnectId obj)
connect_PTR_WORD__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Word -> IO ()
action _ ptr1 int2 =
failOnGError $
user (castPtr ptr1) int2
connect_STRING__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(String -> IO ()) ->
IO (ConnectId obj)
connect_STRING__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> CString -> IO ()
action _ str1 =
failOnGError $
peekUTFString str1 >>= \str1' ->
user str1'
connect_STRING_STRING__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(String -> String -> IO ()) ->
IO (ConnectId obj)
connect_STRING_STRING__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> CString -> CString -> IO ()
action _ str1 str2 =
failOnGError $
peekUTFString str2 >>= \str2' ->
peekUTFString str1 >>= \str1' ->
user str1' str2'
connect_WORD_WORD__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Word -> Word -> IO ()) ->
IO (ConnectId obj)
connect_WORD_WORD__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Word -> Word -> IO ()
action _ int1 int2 =
failOnGError $
user int1 int2
connect_WORD_STRING__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Word -> String -> IO ()) ->
IO (ConnectId obj)
connect_WORD_STRING__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Word -> CString -> IO ()
action _ int1 str2 =
failOnGError $
peekUTFString str2 >>= \str2' ->
user int1 str2'
connect_BOXED_PTR_INT__NONE ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) ->
ConnectAfter -> obj ->
(a -> Ptr b -> Int -> IO ()) ->
IO (ConnectId obj)
connect_BOXED_PTR_INT__NONE signal boxedPre1 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Ptr () -> Int -> IO ()
action _ box1 ptr2 int3 =
failOnGError $
boxedPre1 (castPtr box1) >>= \box1' ->
user box1' (castPtr ptr2) int3
connect_INT_BOOL__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Int -> Bool -> IO ()) ->
IO (ConnectId obj)
connect_INT_BOOL__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> Bool -> IO ()
action _ int1 bool2 =
failOnGError $
user int1 bool2
connect_OBJECT_STRING__NONE ::
(GObjectClass a', GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a' -> String -> IO ()) ->
IO (ConnectId obj)
connect_OBJECT_STRING__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> CString -> IO ()
action _ obj1 str2 =
failOnGError $
peekUTFString str2 >>= \str2' ->
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') str2'
connect_STRING__BOOL ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(String -> IO Bool) ->
IO (ConnectId obj)
connect_STRING__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> CString -> IO Bool
action _ str1 =
failOnGError $
peekUTFString str1 >>= \str1' ->
user str1'
connect_OBJECT_PTR_BOXED__BOOL ::
(GObjectClass a', GObjectClass obj) => SignalName ->
(Ptr c' -> IO c) ->
ConnectAfter -> obj ->
(a' -> Ptr b -> c -> IO Bool) ->
IO (ConnectId obj)
connect_OBJECT_PTR_BOXED__BOOL signal boxedPre3 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Ptr () -> Ptr () -> IO Bool
action _ obj1 ptr2 box3 =
failOnGError $
boxedPre3 (castPtr box3) >>= \box3' ->
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') (castPtr ptr2) box3'
connect_PTR_BOXED_BOXED__BOOL ::
GObjectClass obj => SignalName ->
(Ptr b' -> IO b) -> (Ptr c' -> IO c) ->
ConnectAfter -> obj ->
(Ptr a -> b -> c -> IO Bool) ->
IO (ConnectId obj)
connect_PTR_BOXED_BOXED__BOOL signal boxedPre2 boxedPre3 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Ptr () -> Ptr () -> IO Bool
action _ ptr1 box2 box3 =
failOnGError $
boxedPre3 (castPtr box3) >>= \box3' ->
boxedPre2 (castPtr box2) >>= \box2' ->
user (castPtr ptr1) box2' box3'
connect_PTR_INT_PTR__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Ptr a -> Int -> Ptr c -> IO ()) ->
IO (ConnectId obj)
connect_PTR_INT_PTR__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Int -> Ptr () -> IO ()
action _ ptr1 int2 ptr3 =
failOnGError $
user (castPtr ptr1) int2 (castPtr ptr3)
connect_PTR_WORD_WORD__NONE ::
GObjectClass obj => SignalName ->
ConnectAfter -> obj ->
(Ptr a -> Word -> Word -> IO ()) ->
IO (ConnectId obj)
connect_PTR_WORD_WORD__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Word -> Word -> IO ()
action _ ptr1 int2 int3 =
failOnGError $
user (castPtr ptr1) int2 int3
connect_OBJECT_PTR_WORD_WORD__NONE ::
(GObjectClass a', GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a' -> Ptr b -> Word -> Word -> IO ()) ->
IO (ConnectId obj)
connect_OBJECT_PTR_WORD_WORD__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Ptr () -> Word -> Word -> IO ()
action _ obj1 ptr2 int3 int4 =
failOnGError $
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') (castPtr ptr2) int3 int4
connect_OBJECT_INT_INT_PTR_WORD_WORD__NONE ::
(GObjectClass a', GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a' -> Int -> Int -> Ptr d -> Word -> Word -> IO ()) ->
IO (ConnectId obj)
connect_OBJECT_INT_INT_PTR_WORD_WORD__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Int -> Int -> Ptr () -> Word -> Word -> IO ()
action _ obj1 int2 int3 ptr4 int5 int6 =
failOnGError $
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') int2 int3 (castPtr ptr4) int5 int6
connect_OBJECT_INT_INT_WORD__BOOL ::
(GObjectClass a', GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a' -> Int -> Int -> Word -> IO Bool) ->
IO (ConnectId obj)
connect_OBJECT_INT_INT_WORD__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Int -> Int -> Word -> IO Bool
action _ obj1 int2 int3 int4 =
failOnGError $
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') int2 int3 int4
connect_OBJECT_WORD__NONE ::
(GObjectClass a', GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a' -> Word -> IO ()) ->
IO (ConnectId obj)
connect_OBJECT_WORD__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Word -> IO ()
action _ obj1 int2 =
failOnGError $
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') int2
connect_OBJECT_ENUM__BOOL ::
(GObjectClass a', Enum b, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a' -> b -> IO Bool) ->
IO (ConnectId obj)
connect_OBJECT_ENUM__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Int -> IO Bool
action _ obj1 enum2 =
failOnGError $
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') (toEnum enum2)
connect_BOXED_STRING__NONE ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) ->
ConnectAfter -> obj ->
(a -> String -> IO ()) ->
IO (ConnectId obj)
connect_BOXED_STRING__NONE signal boxedPre1 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> CString -> IO ()
action _ box1 str2 =
failOnGError $
peekUTFString str2 >>= \str2' ->
boxedPre1 (castPtr box1) >>= \box1' ->
user box1' str2'
connect_OBJECT_INT__NONE ::
(GObjectClass a', GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a' -> Int -> IO ()) ->
IO (ConnectId obj)
connect_OBJECT_INT__NONE signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr GObject -> Int -> IO ()
action _ obj1 int2 =
failOnGError $
makeNewGObject (GObject, objectUnrefFromMainloop) (return obj1) >>= \obj1' ->
user (unsafeCastGObject obj1') int2
connect_ENUM_BOOL__BOOL ::
(Enum a, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
(a -> Bool -> IO Bool) ->
IO (ConnectId obj)
connect_ENUM_BOOL__BOOL signal after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Int -> Bool -> IO Bool
action _ enum1 bool2 =
failOnGError $
user (toEnum enum1) bool2
connect_BOXED_INT__NONE ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) ->
ConnectAfter -> obj ->
(a -> Int -> IO ()) ->
IO (ConnectId obj)
connect_BOXED_INT__NONE signal boxedPre1 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> Int -> IO ()
action _ box1 int2 =
failOnGError $
boxedPre1 (castPtr box1) >>= \box1' ->
user box1' int2
|