;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: gtk.lisp,v 1.51 2006-02-08 22:21:07 espen Exp $
+;; $Id: gtk.lisp,v 1.52 2006-02-09 22:32:47 espen Exp $
(in-package "GTK")
;;; Message dialog
-(defmethod initialize-instance ((dialog message-dialog)
- &key (message-type :info) (buttons :close)
- flags text #+gtk 2.6 secondary-text
- transient-parent)
- (setf
- (foreign-location dialog)
- (%message-dialog-new transient-parent flags message-type buttons))
+(defmethod allocate-foreign ((dialog message-dialog) &key (message-type :info)
+ (buttons :close) flags transient-parent)
+ (%message-dialog-new transient-parent flags message-type buttons))
+
+
+(defmethod shared-initialize ((dialog message-dialog) names
+ &key text #+gtk 2.6 secondary-text)
+ (declare (ignore names))
(when text
(message-dialog-set-markup dialog text))
#+gtk2.6
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: gtkselection.lisp,v 1.4 2006-02-08 22:21:07 espen Exp $
+;; $Id: gtkselection.lisp,v 1.5 2006-02-09 22:32:47 espen Exp $
(in-package "GTK")
(targets (vector (inlined target-entry)))
((length targets) int))
-(defmethod initialize-instance ((target-list target-list) &key targets)
- (setf (foreign-location target-list) (%target-list-new targets))
- (call-next-method))
+(defmethod allocate-foreign ((target-list target-list) &key targets)
+ (%target-list-new targets))
(defbinding target-list-add (target-list target &optional flags info) nil
(target-list target-list)
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: gtktree.lisp,v 1.13 2006-02-08 22:21:07 espen Exp $
+;; $Id: gtktree.lisp,v 1.14 2006-02-09 22:32:47 espen Exp $
(in-package "GTK")
(model tree-model)
(path tree-path))
-(defmethod initialize-instance ((reference tree-row-reference) &key model path)
- (setf
- (foreign-location reference)
- (%tree-row-reference-new model path))
- (call-next-method))
+(defmethod allocate-foreign ((reference tree-row-reference) &key model path)
+ (%tree-row-reference-new model path))
(defbinding tree-row-reference-get-path () tree-path
(reference tree-row-reference))
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: rsvg.lisp,v 1.2 2006-02-08 22:21:26 espen Exp $
+;; $Id: rsvg.lisp,v 1.3 2006-02-09 22:33:13 espen Exp $
(in-package "RSVG")
(filename pathname)
(nil gerror :out))
-(defmethod initialize-instance ((handle handle) &key filename)
+(defmethod allocate-foreign ((handle handle) &key filename)
(multiple-value-bind (location gerror)
(cond
(filename (%handle-new-from-file filename))
(t (%handle-new)))
(if gerror
(signal-gerror gerror)
- (setf (foreign-location handle) location)))
- (call-next-method))
+ location)))
(defbinding %handle-free () nil