1 2@c %start of fragment 3 4@deftp Class <gtk-assistant> 5Derives from @code{<gtk-window>}. 6 7This class defines no direct slots. 8 9@end deftp 10 11@defop Signal <gtk-assistant> close 12The ::close signal is emitted either when the close button of a summary page is 13clicked, or when the apply button in the last page in the flow (of type 14GTK_ASSISTANT_PAGE_CONFIRM) is clicked. 15 16Since 2.10 17 18@end defop 19 20@defop Signal <gtk-assistant> cancel 21The ::cancel signal is emitted when then the cancel button is clicked. 22 23Since 2.10 24 25@end defop 26 27@defop Signal <gtk-assistant> prepare (arg0@tie{}@code{<gtk-widget>}) 28The ::prepared signal is emitted when a new page is set as the assistant's 29current page, before making the new page visible. A handler for this signal can 30do any preparation which are necessary before showing @var{page}. 31 32Since 2.10 33 34@end defop 35 36@defop Signal <gtk-assistant> apply 37The ::apply signal is emitted when the apply button is clicked. The default 38behavior of the @code{<gtk-assistant>} is to switch to the page after the 39current page, unless the current page is the last one. 40 41A handler for the ::apply signal should carry out the actions for which the 42wizard has collected data. If the action takes a long time to complete, you 43might consider to put a page of type GTK_ASSISTANT_PAGE_PROGRESS after the 44confirmation page and handle this operation within the ::prepare signal of the 45progress page. 46 47Since 2.10 48 49@end defop 50 51@deffn Function gtk-assistant-new @result{}@tie{} (ret@tie{}@code{<gtk-widget>}) 52Creates a new @code{<gtk-assistant>}. 53 54@table @var 55@item ret 56a newly created @code{<gtk-assistant>} 57 58@end table 59 60Since 2.10 61 62@end deffn 63 64@deffn Function gtk-assistant-get-current-page (self@tie{}@code{<gtk-assistant>}) @result{}@tie{} (ret@tie{}@code{int}) 65@deffnx Method get-current-page 66Returns the page number of the current page 67 68@table @var 69@item assistant 70a @code{<gtk-assistant>} 71 72@item ret 73The index (starting from 0) of the current page in the @var{assistant}, if the 74@var{assistant} has no pages, -1 will be returned 75 76@end table 77 78Since 2.10 79 80@end deffn 81 82@deffn Function gtk-assistant-set-current-page (self@tie{}@code{<gtk-assistant>}) (page_num@tie{}@code{int}) 83@deffnx Method set-current-page 84Switches the page to @var{page-num}. Note that this will only be necessary in 85custom buttons, as the @var{assistant} flow can be set with 86@code{gtk-assistant-set-forward-page-func}. 87 88@table @var 89@item assistant 90a @code{<gtk-assistant>} 91 92@item page-num 93index of the page to switch to, starting from 0. If negative, the last page will 94be used. If greater than the number of pages in the @var{assistant}, nothing 95will be done. 96 97@end table 98 99Since 2.10 100 101@end deffn 102 103@deffn Function gtk-assistant-get-n-pages (self@tie{}@code{<gtk-assistant>}) @result{}@tie{} (ret@tie{}@code{int}) 104@deffnx Method get-n-pages 105Returns the number of pages in the @var{assistant} 106 107@table @var 108@item assistant 109a @code{<gtk-assistant>} 110 111@item ret 112The number of pages in the @var{assistant}. 113 114@end table 115 116Since 2.10 117 118@end deffn 119 120@deffn Function gtk-assistant-get-nth-page (self@tie{}@code{<gtk-assistant>}) (page_num@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>}) 121@deffnx Method get-nth-page 122Returns the child widget contained in page number @var{page-num}. 123 124@table @var 125@item assistant 126a @code{<gtk-assistant>} 127 128@item page-num 129The index of a page in the @var{assistant}, or -1 to get the last page; 130 131@item ret 132The child widget, or @samp{@code{#f}} if @var{page-num} is out of bounds. 133 134@end table 135 136Since 2.10 137 138@end deffn 139 140@deffn Function gtk-assistant-prepend-page (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) @result{}@tie{} (ret@tie{}@code{int}) 141@deffnx Method prepend-page 142Prepends a page to the @var{assistant}. 143 144@table @var 145@item assistant 146a @code{<gtk-assistant>} 147 148@item page 149a @code{<gtk-widget>} 150 151@item ret 152the index (starting at 0) of the inserted page 153 154@end table 155 156Since 2.10 157 158@end deffn 159 160@deffn Function gtk-assistant-append-page (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) @result{}@tie{} (ret@tie{}@code{int}) 161@deffnx Method append-page 162Appends a page to the @var{assistant}. 163 164@table @var 165@item assistant 166a @code{<gtk-assistant>} 167 168@item page 169a @code{<gtk-widget>} 170 171@item ret 172the index (starting at 0) of the inserted page 173 174@end table 175 176Since 2.10 177 178@end deffn 179 180@deffn Function gtk-assistant-insert-page (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) (position@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{int}) 181@deffnx Method insert-page 182Inserts a page in the @var{assistant} at a given position. 183 184@table @var 185@item assistant 186a @code{<gtk-assistant>} 187 188@item page 189a @code{<gtk-widget>} 190 191@item position 192the index (starting at 0) at which to insert the page, or -1 to append the page 193to the @var{assistant} 194 195@item ret 196the index (starting from 0) of the inserted page 197 198@end table 199 200Since 2.10 201 202@end deffn 203 204@deffn Function gtk-assistant-set-page-type (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) (type@tie{}@code{<gtk-assistant-page-type>}) 205@deffnx Method set-page-type 206Sets the page type for @var{page}. The page type determines the page behavior in 207the @var{assistant}. 208 209@table @var 210@item assistant 211a @code{<gtk-assistant>} 212 213@item page 214a page of @var{assistant} 215 216@item type 217the new type for @var{page} 218 219@end table 220 221Since 2.10 222 223@end deffn 224 225@deffn Function gtk-assistant-get-page-type (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) @result{}@tie{} (ret@tie{}@code{<gtk-assistant-page-type>}) 226@deffnx Method get-page-type 227Gets the page type of @var{page}. 228 229@table @var 230@item assistant 231a @code{<gtk-assistant>} 232 233@item page 234a page of @var{assistant} 235 236@item ret 237the page type of @var{page}. 238 239@end table 240 241Since 2.10 242 243@end deffn 244 245@deffn Function gtk-assistant-set-page-title (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) (title@tie{}@code{mchars}) 246@deffnx Method set-page-title 247Sets a title for @var{page}. The title is displayed in the header area of the 248assistant when @var{page} is the current page. 249 250@table @var 251@item assistant 252a @code{<gtk-assistant>} 253 254@item page 255a page of @var{assistant} 256 257@item title 258the new title for @var{page} 259 260@end table 261 262Since 2.10 263 264@end deffn 265 266@deffn Function gtk-assistant-get-page-title (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) @result{}@tie{} (ret@tie{}@code{mchars}) 267@deffnx Method get-page-title 268Gets the title for @var{page}. 269 270@table @var 271@item assistant 272a @code{<gtk-assistant>} 273 274@item page 275a page of @var{assistant} 276 277@item ret 278the title for @var{page}. 279 280@end table 281 282Since 2.10 283 284@end deffn 285 286@deffn Function gtk-assistant-set-page-header-image (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) (pixbuf@tie{}@code{<gdk-pixbuf>}) 287@deffnx Method set-page-header-image 288Sets a header image for @var{page}. This image is displayed in the header area 289of the assistant when @var{page} is the current page. 290 291@table @var 292@item assistant 293a @code{<gtk-assistant>} 294 295@item page 296a page of @var{assistant} 297 298@item pixbuf 299the new header image @var{page} 300 301@end table 302 303Since 2.10 304 305@end deffn 306 307@deffn Function gtk-assistant-get-page-header-image (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) @result{}@tie{} (ret@tie{}@code{<gdk-pixbuf>}) 308@deffnx Method get-page-header-image 309Gets the header image for @var{page}. 310 311@table @var 312@item assistant 313a @code{<gtk-assistant>} 314 315@item page 316a page of @var{assistant} 317 318@item ret 319the header image for @var{page}, or @samp{@code{#f}} if there's no header image 320for the page. 321 322@end table 323 324Since 2.10 325 326@end deffn 327 328@deffn Function gtk-assistant-set-page-side-image (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) (pixbuf@tie{}@code{<gdk-pixbuf>}) 329@deffnx Method set-page-side-image 330Sets a header image for @var{page}. This image is displayed in the side area of 331the assistant when @var{page} is the current page. 332 333@table @var 334@item assistant 335a @code{<gtk-assistant>} 336 337@item page 338a page of @var{assistant} 339 340@item pixbuf 341the new header image @var{page} 342 343@end table 344 345Since 2.10 346 347@end deffn 348 349@deffn Function gtk-assistant-get-page-side-image (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) @result{}@tie{} (ret@tie{}@code{<gdk-pixbuf>}) 350@deffnx Method get-page-side-image 351Gets the header image for @var{page}. 352 353@table @var 354@item assistant 355a @code{<gtk-assistant>} 356 357@item page 358a page of @var{assistant} 359 360@item ret 361the side image for @var{page}, or @samp{@code{#f}} if there's no side image for 362the page. 363 364@end table 365 366Since 2.10 367 368@end deffn 369 370@deffn Function gtk-assistant-set-page-complete (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) (complete@tie{}@code{bool}) 371@deffnx Method set-page-complete 372Sets whether @var{page} contents are complete. This will make @var{assistant} 373update the buttons state to be able to continue the task. 374 375@table @var 376@item assistant 377a @code{<gtk-assistant>} 378 379@item page 380a page of @var{assistant} 381 382@item complete 383the completeness status of the page 384 385@end table 386 387Since 2.10 388 389@end deffn 390 391@deffn Function gtk-assistant-get-page-complete (self@tie{}@code{<gtk-assistant>}) (page@tie{}@code{<gtk-widget>}) @result{}@tie{} (ret@tie{}@code{bool}) 392@deffnx Method get-page-complete 393Gets whether @var{page} is complete.. 394 395@table @var 396@item assistant 397a @code{<gtk-assistant>} 398 399@item page 400a page of @var{assistant} 401 402@item ret 403@samp{@code{#t}} if @var{page} is complete. 404 405@end table 406 407Since 2.10 408 409@end deffn 410 411@deffn Function gtk-assistant-add-action-widget (self@tie{}@code{<gtk-assistant>}) (child@tie{}@code{<gtk-widget>}) 412@deffnx Method add-action-widget 413Adds a widget to the action area of a @code{<gtk-assistant>}. 414 415@table @var 416@item assistant 417a @code{<gtk-assistant>} 418 419@item child 420a @code{<gtk-widget>} 421 422@end table 423 424Since 2.10 425 426@end deffn 427 428@deffn Function gtk-assistant-remove-action-widget (self@tie{}@code{<gtk-assistant>}) (child@tie{}@code{<gtk-widget>}) 429@deffnx Method remove-action-widget 430Removes a widget from the action area of a @code{<gtk-assistant>}. 431 432@table @var 433@item assistant 434a @code{<gtk-assistant>} 435 436@item child 437a @code{<gtk-widget>} 438 439@end table 440 441Since 2.10 442 443@end deffn 444 445@deffn Function gtk-assistant-update-buttons-state (self@tie{}@code{<gtk-assistant>}) 446@deffnx Method update-buttons-state 447Forces @var{assistant} to recompute the buttons state. 448 449GTK+ automatically takes care of this in most situations, e.g. when the user 450goes to a different page, or when the visibility or completeness of a page 451changes. 452 453One situation where it can be necessary to call this function is when changing a 454value on the current page affects the future page flow of the assistant. 455 456@table @var 457@item assistant 458a @code{<gtk-assistant>} 459 460@end table 461 462Since 2.10 463 464@end deffn 465 466 467@c %end of fragment 468