[rep-gtk] more GtkFileChooser stuff



commit f3c740d2ad9237829da7fb2f78ecb0516f6d8d40
Author: Christopher Roy Bratusek <chris nanolx org>
Date:   Sun Jan 3 13:28:05 2010 +0100

    more GtkFileChooser stuff

 ChangeLog   |   19 ++++++++
 Makefile.in |    2 +-
 gtk.defs    |  142 +++++++++++++++++-----------------------------------------
 3 files changed, 62 insertions(+), 101 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6fe6da5..c769a99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,25 @@
 
 	* rep-gtk.ebuild.in: libdir already is $prefix/lib/ no need to adjust
 
+	* gtk.defs: moved GtkFileChooserButton to gtkfilechooser.defs
+
+	* Makefile.in: updated
+
+	* gtkfilechooser.defs:
+	****************** gtkfilechooser.h *************
+	GtkFileChooser [object]
+	GtkFileChooserError [enum]
+	gtk_file_chooser_set_action
+	gtk_file_chooser_get_action
+	gtk_file_chooser_set_local_only
+	gtk_file_chooser_get_local_only
+	gtk_file_chooser_set_select_multiple
+	gtk_file_chooser_get_select_multiple
+	gtk_file_chooser_set_show_hidden
+	gtk_file_chooser_get_show_hidden
+	gtk_file_chooser_set_do_overwrite_confirmation
+	gtk_file_chooser_get_do_overwrite_confirmation
+
 2010-01-02  Christopher Bratusek <zanghar freenet de>
 	* rep-gtk.h
 	* build-gtk.jl: update for librep 0.90.5 header directory change
diff --git a/Makefile.in b/Makefile.in
index f3727bc..c4691dc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -111,4 +111,4 @@ gtk-2 :
 	mkdir gtk-2
 
 # hand-needed dependences
-gtk-glue.c : glib.defs gdk.defs gdk-pixbuf.defs gtk.defs gtktext.defs gtktree.defs gtkbuilder.defs gtkuimanager.defs gtkcombobox.defs build-gtk.jlc
+gtk-glue.c : glib.defs gdk.defs gdk-pixbuf.defs gtk.defs gtktext.defs gtktree.defs gtkbuilder.defs gtkuimanager.defs gtkcombobox.defs gtkfilechooser.defs build-gtk.jlc
diff --git a/gtk.defs b/gtk.defs
index 34041e7..51b8c7d 100644
--- a/gtk.defs
+++ b/gtk.defs
@@ -417,17 +417,6 @@
   (bottom-to-top GTK_PROGRESS_BOTTOM_TO_TOP)
   (top-to-bottom GTK_PROGRESS_TOP_TO_BOTTOM))
 
-(define-enum GtkFileChooserAction
-  (open GTK_FILE_CHOOSER_ACTION_OPEN)
-  (save GTK_FILE_CHOOSER_ACTION_SAVE)
-  (select-folder GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
-  (create-folder GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER))
-
-(define-enum GtkFileChooserConfirmation
-  (confirm GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM)
-  (accept-filename GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME)
-  (select-again GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN))
-
 (define-flags GtkArgFlags
   (readable GTK_ARG_READABLE)
   (writeable GTK_ARG_WRITABLE)
@@ -4936,8 +4925,6 @@
   ((GtkColorButton color_button)
    (string title)))
 
-;; XXX GtkFileChooserButton needs support of GtkFileChooserAction
-
 ;; GtkFontButton
 
 (define-object GtkFontButton (GtkButton))
@@ -5234,16 +5221,16 @@
    (string tooltip (=  0))
    (string stock_id (= 0))))
 
-(define-func gtk_action_get_name 
+(define-func gtk_action_get_name
   static_string
   ((GtkAction action)))
 
-(define-func  gtk_action_is_sensitive 
+(define-func  gtk_action_is_sensitive
   bool
   ((GtkAction action)))
 
 (define-func gtk_action_get_sensitive
-  bool 
+  bool
   ((GtkAction action)))
 
 (define-func gtk_action_set_sensitive
@@ -5255,16 +5242,16 @@
   bool
   ((GtkAction action)))
 
-(define-func gtk_action_get_visible 
+(define-func gtk_action_get_visible
   bool
   ((GtkAction action)))
 
-(define-func gtk_action_set_visible 
+(define-func gtk_action_set_visible
   none
   ((GtkAction action)
    (bool visible)))
 
-(define-func gtk_action_activate 
+(define-func gtk_action_activate
   none
   ((GtkAction action)))
 
@@ -5273,157 +5260,157 @@
   ((GtkAction action)
    (GtkIconSize icon_size)))
 
-(define-func gtk_action_create_menu_item 
+(define-func gtk_action_create_menu_item
   GtkWidget
   ((GtkAction action)))
 
-(define-func gtk_action_create_tool_item 
+(define-func gtk_action_create_tool_item
   GtkWidget
   ((GtkAction action)))
 
-(define-func gtk_action_create_menu 
+(define-func gtk_action_create_menu
   GtkWidget
   ((GtkAction action)))
 
-(define-func gtk_action_connect_proxy 
+(define-func gtk_action_connect_proxy
   none
   ((GtkAction action)
    (GtkWidget proxy)))
 
-(define-func gtk_action_disconnect_proxy 
+(define-func gtk_action_disconnect_proxy
   none
   ((GtkAction action)
    (GtkWidget proxy)))
 
 ;; FIXME: We need to wrap slist
-;; (define-func gtk_action_get_proxies 
+;; (define-func gtk_action_get_proxies
 ;;   GSList
 ;;   ((GtkAction action)))
 
-(define-func gtk_action_connect_accelerator 
+(define-func gtk_action_connect_accelerator
   none
   ((GtkAction action)))
 
-(define-func gtk_action_disconnect_accelerator 
+(define-func gtk_action_disconnect_accelerator
   none
   ((GtkAction action)))
 
-(define-func gtk_action_block_activate 
+(define-func gtk_action_block_activate
   none
   ((GtkAction action)))
 
-(define-func gtk_action_unblock_activate 
+(define-func gtk_action_unblock_activate
   none
   ((GtkAction action)))
 
-(define-func gtk_action_block_activate_from 
+(define-func gtk_action_block_activate_from
   none
   ((GtkAction action)
    (GtkWidget proxy)))
-                                                         
-(define-func gtk_action_unblock_activate_from 
+
+(define-func gtk_action_unblock_activate_from
   none
   ((GtkAction action)
    (GtkWidget proxy)))
 
-(define-func gtk_action_get_accel_path 
+(define-func gtk_action_get_accel_path
   static_string
   ((GtkAction action)))
 
-(define-func gtk_action_set_accel_path 
+(define-func gtk_action_set_accel_path
   none
   ((GtkAction action)
    (string accel_path)))
 
 ; FIXME: we need to wrap GClosure return value
-;; (define-func gtk_action_get_accel_closure 
+;; (define-func gtk_action_get_accel_closure
 ;;   GClosure
 ;;   ((GtkAction action)))
 
-(define-func gtk_action_set_accel_group 
+(define-func gtk_action_set_accel_group
   none
   ((GtkAction action)
    (GtkAccelGroup accel_group)))
 
-(define-func gtk_action_set_label 
+(define-func gtk_action_set_label
   none
   ((GtkAction action)
    (string label)))
 
-(define-func gtk_action_get_label 
+(define-func gtk_action_get_label
   static_string
   ((GtkAction action)))
 
-(define-func gtk_action_set_short_label 
+(define-func gtk_action_set_short_label
   none
   ((GtkAction action)
    (string short_label)))
 
-(define-func gtk_action_get_short_label 
+(define-func gtk_action_get_short_label
   static_string
   ((GtkAction action)))
 
-(define-func gtk_action_set_tooltip 
+(define-func gtk_action_set_tooltip
   none
   ((GtkAction action)
    (string tooltip)))
 
-(define-func gtk_action_get_tooltip 
+(define-func gtk_action_get_tooltip
   static_string
   ((GtkAction action)))
 
-(define-func gtk_action_set_stock_id 
+(define-func gtk_action_set_stock_id
   none
   ((GtkAction action)
    (string stock_id)))
 
-(define-func gtk_action_get_stock_id 
+(define-func gtk_action_get_stock_id
   static_string
   ((GtkAction action)))
 
 ;; FIXME: Implement GIcon
-;; (define-func gtk_action_set_gicon 
+;; (define-func gtk_action_set_gicon
 ;;   none
 ;;   ((GtkAction action)
 ;;    (GIcon icon)))
 
-;; (define-func gtk_action_get_gicon 
+;; (define-func gtk_action_get_gicon
 ;;   GIcon
 ;;   ((GtkAction action)))
 
-(define-func gtk_action_set_icon_name 
+(define-func gtk_action_set_icon_name
   none
   ((GtkAction action)
    (string icon_name)))
 
-(define-func gtk_action_get_icon_name 
+(define-func gtk_action_get_icon_name
   static_string
   ((GtkAction action)))
 
-(define-func gtk_action_set_visible_horizontal 
+(define-func gtk_action_set_visible_horizontal
   none
   ((GtkAction action)
    (bool visible_horizontal)))
 
-(define-func gtk_action_get_visible_horizontal 
+(define-func gtk_action_get_visible_horizontal
   bool
   ((GtkAction action)))
 
-(define-func gtk_action_set_visible_vertical 
+(define-func gtk_action_set_visible_vertical
   none
   ((GtkAction action)
    (bool visible_vertical)))
 
-(define-func gtk_action_get_visible_vertical 
+(define-func gtk_action_get_visible_vertical
   bool
   ((GtkAction action)))
 
-(define-func gtk_action_set_is_important 
+(define-func gtk_action_set_is_important
   none
   ((GtkAction action )
    (bool is_important)))
 
-(define-func gtk_action_get_is_important 
+(define-func gtk_action_get_is_important
   bool
   ((GtkAction action)))
 
@@ -5510,52 +5497,6 @@
   GtkWidget
   ((GtkExpander expander)))
 
-;; GtkFileChooserButton
-
-(define-object GtkFileChooserButton (GtkHbox))
-
-(define-func gtk_file_chooser_button_new
-  GtkWidget
-  (((tvec string in) title)
-   (GtkFileChooserAction action)))
-
-(define-func gtk_file_chooser_button_new_with_backend
-  GtkWidget
-  (((tvec string in) title)
-   (GtkFileChooserAction action)
-   ((tvec string in) backend)))
-
-(define-func gtk_file_chooser_button_new_with_dialog
-  GtkWidget
-  ((GtkWidget dialog)))
-
-(define-func gtk_file_chooser_button_set_title
-  none
-  ((GtkFileChooserButton button)
-   ((tvec string in) title)))
-
-(define-func gtk_file_chooser_button_get_title
-  static_string
-  ((GtkFileChooserButton button)))
-
-(define-func gtk_file_chooser_button_set_width_chars
-  none
-  ((GtkFileChooserButton button)
-   (int chars)))
-
-(define-func gtk_file_chooser_button_get_width_chars
-  int
-  ((GtkFileChooserButton button)))
-
-(define-func gtk_file_chooser_button_set_focus_on_click
-  none
-  ((GtkFileChooserButton button)
-   (bool focus)))
-
-(define-func gtk_file_chooser_button_get_focus_on_click
-  bool
-  ((GtkFileChooserButton button)))
-
 ;; More defs files
 
 (include "gtktext.defs")
@@ -5563,6 +5504,7 @@
 (include "gtkbuilder.defs")
 (include "gtkuimanager.defs")
 (include "gtkcombobox.defs")
+(include "gtkfilechooser.defs")
 
 ;; Options
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]