Added several GtkWindow's properties
authorDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Sat, 12 Sep 2009 12:17:44 +0000 (16:17 +0400)
committerDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Sat, 12 Sep 2009 12:17:44 +0000 (16:17 +0400)
generating.lisp
gtk/gtk.generated-classes.lisp
gtk/gtk.window.lisp

index 51c147f..db9c512 100644 (file)
         (:cffi gtk::redraw-on-allocate gtk::widget-redraw-on-allocate :boolean nil "gtk_widget_set_redraw_on_allocate")
         (:cffi gtk::accessible gtk::widget-accessible g-object "gtk_widget_get_accessible" nil)
         (:cffi gtk::tooltip-window gtk::widget-tooltip-window g-object "gtk_widget_get_tooltip_window" "gtk_widget_set_tooltip_window"))
         (:cffi gtk::redraw-on-allocate gtk::widget-redraw-on-allocate :boolean nil "gtk_widget_set_redraw_on_allocate")
         (:cffi gtk::accessible gtk::widget-accessible g-object "gtk_widget_get_accessible" nil)
         (:cffi gtk::tooltip-window gtk::widget-tooltip-window g-object "gtk_widget_get_tooltip_window" "gtk_widget_set_tooltip_window"))
+       ("GtkWindow"
+        (:cffi gtk::default-widget gtk::window-default-widget (g-object gtk::widget) "gtk_window_get_default_widget" "gtk_window_set_default")
+        (:cffi gtk::focus gtk::window-focus (g-object gtk::widget) "gtk_window_get_focus" "gtk_window_set_focus"))
        ("GtkTextTag"
         (:cffi gtk::priority gtk::text-tag-priority :int "gtk_text_tag_get_priority" "gtk_text_tag_set_priority"))
        ("GtkDialog"
        ("GtkTextTag"
         (:cffi gtk::priority gtk::text-tag-priority :int "gtk_text_tag_get_priority" "gtk_text_tag_set_priority"))
        ("GtkDialog"
index 13afc11..cbd3e61 100644 (file)
                         (urgency-hint gtk-window-urgency-hint "urgency-hint"
                          "gboolean" t t)
                         (window-position gtk-window-window-position
                         (urgency-hint gtk-window-urgency-hint "urgency-hint"
                          "gboolean" t t)
                         (window-position gtk-window-window-position
-                         "window-position" "GtkWindowPosition" t t)))
+                         "window-position" "GtkWindowPosition" t t)
+                        (:cffi default-widget window-default-widget
+                         (g-object widget) "gtk_window_get_default_widget"
+                         "gtk_window_set_default")
+                        (:cffi focus window-focus (g-object widget)
+                         "gtk_window_get_focus" "gtk_window_set_focus")))
 
 (define-g-object-class "GtkAssistant" assistant
                        (:superclass gtk-window :export t :interfaces
 
 (define-g-object-class "GtkAssistant" assistant
                        (:superclass gtk-window :export t :interfaces
index e5ee0a9..d67bbbf 100644 (file)
 
 (export 'present-window-with-time)
 
 
 (export 'present-window-with-time)
 
-(defcfun (iconify-window "gtk_window_iconify") :void
+(defcfun (window-iconify "gtk_window_iconify") :void
   (window (g-object gtk-window)))
 
   (window (g-object gtk-window)))
 
-(export 'iconify-window)
+(export 'window-iconify)
 
 
-(defcfun (deiconify-window "gtk_window_deiconify") :void
+(defcfun (window-deiconify "gtk_window_deiconify") :void
   (window (g-object gtk-window)))
 
   (window (g-object gtk-window)))
 
-(export 'deiconify-window)
+(export 'window-deiconify)
 
 
-(defcfun (stick-window "gtk_window_stick") :void
+(defcfun (window-stick "gtk_window_stick") :void
   (window (g-object gtk-window)))
 
   (window (g-object gtk-window)))
 
-(export 'stick-window)
+(export 'window-stick)
 
 
-(defcfun (unstick-window "gtk_window_unstick") :void
+(defcfun (window-unstick "gtk_window_unstick") :void
   (window (g-object gtk-window)))
 
   (window (g-object gtk-window)))
 
-(export 'unstick-window)
+(export 'window-unstick)
 
 
-(defcfun (maximize-window "gtk_window_maximize") :void
+(defcfun (window-maximize "gtk_window_maximize") :void
   (window (g-object gtk-window)))
 
   (window (g-object gtk-window)))
 
-(export 'maximize-window)
+(export 'window-maximize)
 
 
-(defcfun (unmaximize-window "gtk_window_unmaximize") :void
+(defcfun (window-unmaximize "gtk_window_unmaximize") :void
   (window (g-object gtk-window)))
 
   (window (g-object gtk-window)))
 
-(export 'unmaximize-window)
+(export 'window-unmaximize)
 
 
-(defcfun (fullscreen-window "gtk_window_fullscreen") :void
+(defcfun (window-fullscreen "gtk_window_fullscreen") :void
   (window (g-object gtk-window)))
 
   (window (g-object gtk-window)))
 
-(export 'fullscreen-window)
+(export 'window-fullscreen)
 
 
-(defcfun (unfullscreen-window "gtk_window_unfullscreen") :void
+(defcfun (window-unfullscreen "gtk_window_unfullscreen") :void
   (window (g-object gtk-window)))
 
   (window (g-object gtk-window)))
 
-(export 'unfullscreen-window)
+(export 'window-unfullscreen)
 
 (defcfun (window-set-keep-above "gtk_window_set_keep_above") :void
   (window (g-object gtk-window))
 
 (defcfun (window-set-keep-above "gtk_window_set_keep_above") :void
   (window (g-object gtk-window))
 
 (export 'window-group)
 
 
 (export 'window-group)
 
-(defcfun (move-window "gtk_window_move") :void
+(defcfun (window-move "gtk_window_move") :void
   (window (g-object gtk-window))
   (x :int)
   (y :int))
 
   (window (g-object gtk-window))
   (x :int)
   (y :int))
 
-(export 'move-window)
+(export 'window-move)
 
 (defcfun (window-parse-geometry "gtk_window_parse_geometry") :boolean
   (window (g-object gtk-window))
 
 (defcfun (window-parse-geometry "gtk_window_parse_geometry") :boolean
   (window (g-object gtk-window))
 
 (export 'reshow-window-with-initial-size)
 
 
 (export 'reshow-window-with-initial-size)
 
-(defcfun (resize-window "gtk_window_resize") :void
+(defcfun (window-resize "gtk_window_resize") :void
   (window (g-object gtk-window))
   (width :int)
   (height :int))
 
   (window (g-object gtk-window))
   (width :int)
   (height :int))
 
-(export 'resize-window)
+(export 'window-resize)
 
 
-(defcfun (default-window-icon-list "gtk_window_get_default_icon_list") (glist pixbuf))
+(defcfun (default-window-icon-list "gtk_window_get_default_icon_list") (glist (g-object pixbuf)))
 
 (defcfun (set-default-window-icon-list "gtk_window_set_default_icon_list") :boolean
 
 (defcfun (set-default-window-icon-list "gtk_window_set_default_icon_list") :boolean
-  (icon-list (glist pixbuf)))
+  (icon-list (glist (g-object pixbuf))))
 
 (defun (setf default-window-icon-list) (icon-list)
   (set-default-window-icon-list icon-list)
 
 (defun (setf default-window-icon-list) (icon-list)
   (set-default-window-icon-list icon-list)
 (defcfun (set-default-window-icon-name "gtk_window_set_default_icon_name") :void
   (icon-name :string))
 
 (defcfun (set-default-window-icon-name "gtk_window_set_default_icon_name") :void
   (icon-name :string))
 
-(defun (setf default-window-icon) (icon)
-  (etypecase icon
-    (pixbuf (set-default-window-icon icon))
-    (string (set-default-window-icon-name icon))))
+(defun (setf window-default-icon) (icon)
+  (set-default-window-icon icon))
 
 
-(export 'default-window-icon)
+(defun (setf window-default-icon-name) (name)
+  (set-default-window-icon-name name))
+
+(export 'window-default-icon)
 
 (defcfun (set-window-auto-startup-notification "gtk_window_set_auto_startup_notification") :void
   (setting :boolean))
 
 (defcfun (set-window-auto-startup-notification "gtk_window_set_auto_startup_notification") :void
   (setting :boolean))
 (defcfun (window-group-list-windows "gtk_window_group_list_windows") (glist gtk-window)
   (window-group (g-object window-group)))
 
 (defcfun (window-group-list-windows "gtk_window_group_list_windows") (glist gtk-window)
   (window-group (g-object window-group)))
 
-(export 'window-group-list-windows)
\ No newline at end of file
+(export 'window-group-list-windows)
+
+(defcfun (window-mnemonic-activate "gtk_window_mnemonic_activate") :boolean
+  (window (g-object gtk-window))
+  (keyval :uint)
+  (modifier modifier-type))
+
+(export 'window-mnemonic-activate)