(import (gtk gtk-widget)
gtk-widget-destroy-callback
gtk-container-reverse-children
- <gtk-paned-view> gtk-paned-view-init)
+ gtk-paned-view-init)
(import (gtk fix-layout)
fix-widget-geometry
gtk-scrolled-window-set-policy gtk-scrolled-window-set-placement
gtk-scrolled-view-new
+ gtk-paned?
gtk-paned-pack1 gtk-paned-pack2
gtk-paned-get-child1 gtk-paned-get-child2
+ gtk-paned-set-position
<gtk-paned-view> gtk-paned-view-new
gtk-window-new
"("width"x"height")"
" to "window-x-size"x"window-y-size" "
"("new-width"x"new-height")\n")
+ (let unset-pos ((w (gtk-screen-toplevel screen)))
+ (if (gtk-container? w)
+ (begin
+ (for-each unset-pos
+ (gtk-container-reverse-children w))
+ (if (gtk-paned? w)
+ (gtk-paned-set-position w -1)))))
(set-scm-widget-natural-size!
widget new-width new-height)
(gtk-widget-queue-resize-no-redraw widget))))))))
(paned (* GtkPaned))
(child (* GtkWidget))
(resize gboolean)
- (shrink gboolean))
\ No newline at end of file
+ (shrink gboolean))
+
+(extern gint
+ gtk_paned_get_position
+ (paned (* GtkPaned)))
+
+(extern void
+ gtk_paned_set_position
+ (paned (* GtkPaned))
+ (position gint))
\ No newline at end of file
#| -*-Scheme-*-
-Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Matthew Birkholz
+Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Matthew Birkholz
This file is part of an extension to MIT/GNU Scheme.
(C-call "gtk_paned_pack2" (gobject-alien paned) (gobject-alien child2)
(if resize? 1 0) (if shrink? 1 0)))
+(define (gtk-paned-get-position paned)
+ (C-call "gtk_paned_get_position" (gobject-alien paned)))
+
+(define (gtk-paned-set-position paned child1-size)
+ (C-call "gtk_paned_set_position" (gobject-alien paned) child1-size))
+
(define-class (<gtk-paned-view> (constructor ()))
(<gtk-paned>))
#| -*-Scheme-*-
-Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Matthew Birkholz
+Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Matthew Birkholz
This file is part of an extension to MIT/GNU Scheme.
<gtk-paned> gtk-paned? gtk-paned-new
gtk-paned-pack1 gtk-paned-pack2
gtk-paned-get-child1 gtk-paned-get-child2
+ gtk-paned-get-position gtk-paned-set-position
<gtk-paned-view> gtk-paned-view? gtk-paned-view-new)
(import (gtk pango) make-pango-layout guarantee-pango-font-description))