Add :from-string and :from-file initargs for GtkBuilder
authorDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Sat, 13 Jun 2009 19:26:41 +0000 (23:26 +0400)
committerDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Sat, 13 Jun 2009 19:26:41 +0000 (23:26 +0400)
gtk/gtk.builder.lisp

index bcc06d5..123078f 100644 (file)
 
 ; TODO: gtk_builder_value_from_string_type
 
+(defmethod initialize-instance :after ((builder builder) &key from-file from-string)
+  (when from-file
+    (builder-add-from-file builder from-file))
+  (when from-string
+    (builder-add-from-string builder from-string)))