[gtkmm] Fix the build with GTK+ 2.17.x



commit 3927a139db7529c2368194e6b2684f5b596e957d
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Jun 19 14:38:20 2009 +0200

    Fix the build with GTK+ 2.17.x
    
    * gtk/src/gtk_methods.defs: Regenerated with h2defs.py
    * tools/m4/convert_gtk.m4: Add a conversion because a
    gtk_recent_info_get_application_info() parameter's constness has changed

 ChangeLog                |    8 ++
 gtk/src/gtk_methods.defs |  246 ++++++++++++++++++++++++++++++++++++++++++----
 tools/m4/convert_gtk.m4  |    1 +
 3 files changed, 236 insertions(+), 19 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a75bc98..c04bb89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-06-19  Murray Cumming  <murrayc murrayc com>
+
+	Fix the build with GTK+ 2.17.x
+	
+	* gtk/src/gtk_methods.defs: Regenerated with h2defs.py
+	* tools/m4/convert_gtk.m4: Add a conversion because a 
+	gtk_recent_info_get_application_info() parameter's constness has changed.
+
 2009-06-16   Hakim Bellam  <hakim bellam gmail com>
 
 	* gtk/src/recentmanager.ccg: add_item(): Correct a memory allocation to 
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index 6268512..6e51a8a 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -664,6 +664,13 @@
   (gtype-id "GTK_TYPE_LABEL")
 )
 
+(define-object TipsQuery
+  (in-module "Gtk")
+  (parent "GtkLabel")
+  (c-name "GtkTipsQuery")
+  (gtype-id "GTK_TYPE_TIPS_QUERY")
+)
+
 (define-object AccelLabel
   (in-module "Gtk")
   (parent "GtkLabel")
@@ -1175,6 +1182,13 @@
   (gtype-id "GTK_TYPE_PRINTER_OPTION_WIDGET")
 )
 
+(define-object InfoBar
+  (in-module "Gtk")
+  (parent "GtkHBox")
+  (c-name "GtkInfoBar")
+  (gtype-id "GTK_TYPE_INFO_BAR")
+)
+
 (define-object Combo
   (in-module "Gtk")
   (parent "GtkHBox")
@@ -1396,6 +1410,7 @@
     '("missing-property-value" "GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE")
     '("invalid-value" "GTK_BUILDER_ERROR_INVALID_VALUE")
     '("version-mismatch" "GTK_BUILDER_ERROR_VERSION_MISMATCH")
+    '("duplicate-id" "GTK_BUILDER_ERROR_DUPLICATE_ID")
   )
 )
 
@@ -1831,6 +1846,19 @@
   )
 )
 
+(define-enum MessageType
+  (in-module "Gtk")
+  (c-name "GtkMessageType")
+  (gtype-id "GTK_TYPE_MESSAGE_TYPE")
+  (values
+    '("info" "GTK_MESSAGE_INFO")
+    '("warning" "GTK_MESSAGE_WARNING")
+    '("question" "GTK_MESSAGE_QUESTION")
+    '("error" "GTK_MESSAGE_ERROR")
+    '("other" "GTK_MESSAGE_OTHER")
+  )
+)
+
 (define-enum MetricType
   (in-module "Gtk")
   (c-name "GtkMetricType")
@@ -2204,6 +2232,7 @@
     '("all" "GTK_PRINT_PAGES_ALL")
     '("current" "GTK_PRINT_PAGES_CURRENT")
     '("ranges" "GTK_PRINT_PAGES_RANGES")
+    '("selection" "GTK_PRINT_PAGES_SELECTION")
   )
 )
 
@@ -2484,19 +2513,6 @@
   )
 )
 
-(define-enum MessageType
-  (in-module "Gtk")
-  (c-name "GtkMessageType")
-  (gtype-id "GTK_TYPE_MESSAGE_TYPE")
-  (values
-    '("info" "GTK_MESSAGE_INFO")
-    '("warning" "GTK_MESSAGE_WARNING")
-    '("question" "GTK_MESSAGE_QUESTION")
-    '("error" "GTK_MESSAGE_ERROR")
-    '("other" "GTK_MESSAGE_OTHER")
-  )
-)
-
 (define-enum ButtonsType
   (in-module "Gtk")
   (c-name "GtkButtonsType")
@@ -13784,6 +13800,115 @@
 
 
 
+;; From gtkinfobar.h
+
+(define-function gtk_info_bar_get_type
+  (c-name "gtk_info_bar_get_type")
+  (return-type "GType")
+)
+
+(define-function gtk_info_bar_new
+  (c-name "gtk_info_bar_new")
+  (is-constructor-of "GtkInfoBar")
+  (return-type "GtkWidget*")
+)
+
+(define-function gtk_info_bar_new_with_buttons
+  (c-name "gtk_info_bar_new_with_buttons")
+  (return-type "GtkWidget*")
+  (parameters
+    '("const-gchar*" "first_button_text")
+  )
+  (varargs #t)
+)
+
+(define-method get_action_area
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_get_action_area")
+  (return-type "GtkWidget*")
+)
+
+(define-method get_content_area
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_get_content_area")
+  (return-type "GtkWidget*")
+)
+
+(define-method add_action_widget
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_add_action_widget")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "child")
+    '("gint" "response_id")
+  )
+)
+
+(define-method add_button
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_add_button")
+  (return-type "GtkWidget*")
+  (parameters
+    '("const-gchar*" "button_text")
+    '("gint" "response_id")
+  )
+)
+
+(define-method add_buttons
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_add_buttons")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "first_button_text")
+  )
+  (varargs #t)
+)
+
+(define-method set_response_sensitive
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_set_response_sensitive")
+  (return-type "none")
+  (parameters
+    '("gint" "response_id")
+    '("gboolean" "setting")
+  )
+)
+
+(define-method set_default_response
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_set_default_response")
+  (return-type "none")
+  (parameters
+    '("gint" "response_id")
+  )
+)
+
+(define-method response
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_response")
+  (return-type "none")
+  (parameters
+    '("gint" "response_id")
+  )
+)
+
+(define-method set_message_type
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_set_message_type")
+  (return-type "none")
+  (parameters
+    '("GtkMessageType" "message_type")
+  )
+)
+
+(define-method get_message_type
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_get_message_type")
+  (return-type "GtkMessageType")
+)
+
+
+
 ;; From gtkinputdialog.h
 
 (define-function gtk_input_dialog_get_type
@@ -14433,6 +14558,12 @@
   (return-type "gboolean")
 )
 
+(define-method get_current_uri
+  (of-object "GtkLabel")
+  (c-name "gtk_label_get_current_uri")
+  (return-type "const-gchar*")
+)
+
 (define-method get
   (of-object "GtkLabel")
   (c-name "gtk_label_get")
@@ -17844,6 +17975,17 @@
   (return-type "none")
 )
 
+(define-method set_password
+  (of-object "GtkPrintBackend")
+  (c-name "gtk_print_backend_set_password")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "hostname")
+    '("const-gchar*" "username")
+    '("const-gchar*" "password")
+  )
+)
+
 (define-method add_printer
   (of-object "GtkPrintBackend")
   (c-name "gtk_print_backend_add_printer")
@@ -18715,6 +18857,36 @@
   (return-type "none")
 )
 
+(define-method set_support_selection
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_set_support_selection")
+  (return-type "none")
+  (parameters
+    '("gboolean" "support_selection")
+  )
+)
+
+(define-method get_support_selection
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_get_support_selection")
+  (return-type "gboolean")
+)
+
+(define-method set_has_selection
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_set_has_selection")
+  (return-type "none")
+  (parameters
+    '("gboolean" "has_selection")
+  )
+)
+
+(define-method get_has_selection
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_get_has_selection")
+  (return-type "gboolean")
+)
+
 (define-function gtk_print_run_page_setup_dialog
   (c-name "gtk_print_run_page_setup_dialog")
   (return-type "GtkPageSetup*")
@@ -19483,6 +19655,42 @@
   )
 )
 
+(define-method get_manual_capabilities
+  (of-object "GtkPrintUnixDialog")
+  (c-name "gtk_print_unix_dialog_get_manual_capabilities")
+  (return-type "GtkPrintCapabilities")
+)
+
+(define-method set_support_selection
+  (of-object "GtkPrintUnixDialog")
+  (c-name "gtk_print_unix_dialog_set_support_selection")
+  (return-type "none")
+  (parameters
+    '("gboolean" "support_selection")
+  )
+)
+
+(define-method get_support_selection
+  (of-object "GtkPrintUnixDialog")
+  (c-name "gtk_print_unix_dialog_get_support_selection")
+  (return-type "gboolean")
+)
+
+(define-method set_has_selection
+  (of-object "GtkPrintUnixDialog")
+  (c-name "gtk_print_unix_dialog_set_has_selection")
+  (return-type "none")
+  (parameters
+    '("gboolean" "has_selection")
+  )
+)
+
+(define-method get_has_selection
+  (of-object "GtkPrintUnixDialog")
+  (c-name "gtk_print_unix_dialog_get_has_selection")
+  (return-type "gboolean")
+)
+
 
 
 ;; From gtkprintutils.h
@@ -21185,7 +21393,7 @@
   (return-type "gboolean")
   (parameters
     '("const-gchar*" "app_name")
-    '("gchar**" "app_exec")
+    '("const-gchar**" "app_exec")
     '("guint*" "count")
     '("time_t*" "time_")
   )
@@ -31094,6 +31302,11 @@
   (return-type "GType")
 )
 
+(define-function gtk_message_type_get_type
+  (c-name "gtk_message_type_get_type")
+  (return-type "GType")
+)
+
 (define-function gtk_metric_type_get_type
   (c-name "gtk_metric_type_get_type")
   (return-type "GType")
@@ -31329,11 +31542,6 @@
   (return-type "GType")
 )
 
-(define-function gtk_message_type_get_type
-  (c-name "gtk_message_type_get_type")
-  (return-type "GType")
-)
-
 (define-function gtk_buttons_type_get_type
   (c-name "gtk_buttons_type_get_type")
   (return-type "GType")
diff --git a/tools/m4/convert_gtk.m4 b/tools/m4/convert_gtk.m4
index d2b9463..cf64be3 100644
--- a/tools/m4/convert_gtk.m4
+++ b/tools/m4/convert_gtk.m4
@@ -528,6 +528,7 @@ _CONVERSION(`const Glib::RefPtr<RecentInfo>&',`GtkRecentInfo*',__CONVERT_REFPTR_
 _CONVERSION(`const Glib::RefPtr<const RecentInfo>&',`GtkRecentInfo*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gtk::RecentInfo))
 
 _CONVERSION(`Glib::StringArrayHandle&',`gchar**',`const_cast<gchar**>(($3).data())')
+_CONVERSION(`Glib::StringArrayHandle&',`const gchar**',`const_cast<const gchar**>(($3).data())')
 _CONVERSION(`gchar**',`Glib::StringArrayHandle',`Glib::StringArrayHandle($3)')
 
 #RecentManager



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