gtk_window_resize
(window (* GtkWindow))
(width gint)
- (height gint))
-
-(extern gboolean
- gtk_window_parse_geometry
- (window (* GtkWindow))
- (geometry (* (const gchar))))
\ No newline at end of file
+ (height gint))
\ No newline at end of file
geometry mask)
(free geometry)))
-(define (gtk-window-parse-geometry window geometry)
- (guarantee-gtk-window window 'gtk-window-parse-geometry)
- (guarantee-string geometry 'gtk-window-parse-geometry)
- (if (fix:zero? (C-call "gtk_window_parse_geometry"
- (gobject-alien window) geometry))
- (error "Could not parse geometry string:" geometry)))
-
(define (gtk-window-resize window width height)
(guarantee-gtk-window window 'gtk-window-resize)
(guarantee-positive-fixnum width 'gtk-window-resize)
gtk-window-set-title
gtk-window-set-type-hint
gtk-window-set-default-size gtk-window-get-default-size
- gtk-window-parse-geometry
gtk-window-resize
gtk-window-present
set-gtk-window-delete-event-callback!
gtk_window_set_type_hint (GTK_WINDOW (slice_window),
GDK_WINDOW_TYPE_HINT_UTILITY);
gtk_widget_show_all (slice_window);
- gtk_window_parse_geometry (GTK_WINDOW (slice_window), "-0-0");
+ /* gtk_window_parse_geometry (GTK_WINDOW (slice_window), "-0-0"); */
slice_hook = >k_slice_hook;
}
Applies @var{receiver} to @var{window}'s default width and height.
@end deffn
-@deffn Procedure gtk-window-parse-geometry window string
-Returns @code{#f} if @var{string} is not a standard X geometry string.
-Otherwise returns @code{#t} and sets @var{window}'s user-requested size
-and/or position. An X geometry string is something like
-@code{-0+0}, meaning ``upper right hand corner''. The X manpage
-contains the full details. Note that for this procedure to work
-correctly (so that @var{window} is created at its final size and
-position --- no moving, resizing, etc.) the window should have any
-geometry hints already set, and a final size already determined by
-``showing'' the toplevel widget.
-@xref{gtk-window-set-geometry-hints}.
-@end deffn
-
@deffn Procedure gtk-window-resize window width height
Resizes @var{window} as if the user had done so, obeying geometry
constraints. @var{width} and @var{height} should be positive fixnums.