Changeset 382
- Timestamp:
- 01/03/08 14:07:45 (1 year ago)
- Files:
-
- trunk/src/build/gtkD.d (modified) (1 diff)
- trunk/src/gtk/BuildableIF.d (added)
- trunk/src/gtk/BuildableT.d (added)
- trunk/src/gtk/Builder.d (added)
- trunk/src/gtkc/gtk.d (modified) (2 diffs)
- trunk/src/gtkc/gtktypes.d (modified) (4 diffs)
- trunk/wrap/APILookupGtk.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/build/gtkD.d
r375 r382 371 371 private import gtk.RecentChooserWidget; 372 372 private import gtk.RecentFilter; 373 private import gtk.BuildableIF; 374 private import gtk.BuildableT; 375 private import gtk.Builder; 373 376 private import gtk.FileSelection; 374 377 private import gtk.ItemFactory; trunk/src/gtkc/gtk.d
r376 r382 3308 3308 GtkRecentFilterFlags function(GtkRecentFilter* filter)gtk_recent_filter_get_needed; 3309 3309 gboolean function(GtkRecentFilter* filter, GtkRecentFilterInfo* filterInfo)gtk_recent_filter_filter; 3310 3311 // gtk.BuildableT 3312 3313 3314 // gtk.BuildableT 3315 3316 void function(GtkBuildable* buildable, gchar* name)gtk_buildable_set_name; 3317 gchar* function(GtkBuildable* buildable)gtk_buildable_get_name; 3318 void function(GtkBuildable* buildable, GtkBuilder* builder, GObject* child, gchar* type)gtk_buildable_add_child; 3319 void function(GtkBuildable* buildable, GtkBuilder* builder, gchar* name, GValue* value)gtk_buildable_set_buildable_property; 3320 GObject* function(GtkBuildable* buildable, GtkBuilder* builder, gchar* name)gtk_buildable_construct_child; 3321 gboolean function(GtkBuildable* buildable, GtkBuilder* builder, GObject* child, gchar* tagname, GMarkupParser* parser, gpointer* data)gtk_buildable_custom_tag_start; 3322 void function(GtkBuildable* buildable, GtkBuilder* builder, GObject* child, gchar* tagname, gpointer* data)gtk_buildable_custom_tag_end; 3323 void function(GtkBuildable* buildable, GtkBuilder* builder, GObject* child, gchar* tagname, gpointer data)gtk_buildable_custom_finished; 3324 void function(GtkBuildable* buildable, GtkBuilder* builder)gtk_buildable_parser_finished; 3325 GObject* function(GtkBuildable* buildable, GtkBuilder* builder, gchar* childname)gtk_buildable_get_internal_child; 3326 3327 // gtk.Builder 3328 3329 GtkBuilder* function()gtk_builder_new; 3330 guint function(GtkBuilder* builder, gchar* filename, GError** error)gtk_builder_add_from_file; 3331 guint function(GtkBuilder* builder, gchar* buffer, gsize length, GError** error)gtk_builder_add_from_string; 3332 GObject* function(GtkBuilder* builder, gchar* name)gtk_builder_get_object; 3333 GSList* function(GtkBuilder* builder)gtk_builder_get_objects; 3334 void function(GtkBuilder* builder, gpointer userData)gtk_builder_connect_signals; 3335 void function(GtkBuilder* builder, GtkBuilderConnectFunc func, gpointer userData)gtk_builder_connect_signals_full; 3336 void function(GtkBuilder* builder, gchar* domain)gtk_builder_set_translation_domain; 3337 gchar* function(GtkBuilder* builder)gtk_builder_get_translation_domain; 3338 GType function(GtkBuilder* builder, char* typeName)gtk_builder_get_type_from_name; 3339 gboolean function(GtkBuilder* builder, GParamSpec* pspec, gchar* string, GValue* value, GError** error)gtk_builder_value_from_string; 3340 gboolean function(GtkBuilder* builder, GType type, gchar* string, GValue* value, GError** error)gtk_builder_value_from_string_type; 3310 3341 3311 3342 // gtk.FileSelection … … 6063 6094 { "gtk_recent_filter_get_needed", cast(void**)& gtk_recent_filter_get_needed}, 6064 6095 { "gtk_recent_filter_filter", cast(void**)& gtk_recent_filter_filter}, 6096 { "gtk_buildable_set_name", cast(void**)& gtk_buildable_set_name}, 6097 { "gtk_buildable_get_name", cast(void**)& gtk_buildable_get_name}, 6098 { "gtk_buildable_add_child", cast(void**)& gtk_buildable_add_child}, 6099 { "gtk_buildable_set_buildable_property", cast(void**)& gtk_buildable_set_buildable_property}, 6100 { "gtk_buildable_construct_child", cast(void**)& gtk_buildable_construct_child}, 6101 { "gtk_buildable_custom_tag_start", cast(void**)& gtk_buildable_custom_tag_start}, 6102 { "gtk_buildable_custom_tag_end", cast(void**)& gtk_buildable_custom_tag_end}, 6103 { "gtk_buildable_custom_finished", cast(void**)& gtk_buildable_custom_finished}, 6104 { "gtk_buildable_parser_finished", cast(void**)& gtk_buildable_parser_finished}, 6105 { "gtk_buildable_get_internal_child", cast(void**)& gtk_buildable_get_internal_child}, 6106 { "gtk_builder_new", cast(void**)& gtk_builder_new}, 6107 { "gtk_builder_add_from_file", cast(void**)& gtk_builder_add_from_file}, 6108 { "gtk_builder_add_from_string", cast(void**)& gtk_builder_add_from_string}, 6109 { "gtk_builder_get_object", cast(void**)& gtk_builder_get_object}, 6110 { "gtk_builder_get_objects", cast(void**)& gtk_builder_get_objects}, 6111 { "gtk_builder_connect_signals", cast(void**)& gtk_builder_connect_signals}, 6112 { "gtk_builder_connect_signals_full", cast(void**)& gtk_builder_connect_signals_full}, 6113 { "gtk_builder_set_translation_domain", cast(void**)& gtk_builder_set_translation_domain}, 6114 { "gtk_builder_get_translation_domain", cast(void**)& gtk_builder_get_translation_domain}, 6115 { "gtk_builder_get_type_from_name", cast(void**)& gtk_builder_get_type_from_name}, 6116 { "gtk_builder_value_from_string", cast(void**)& gtk_builder_value_from_string}, 6117 { "gtk_builder_value_from_string_type", cast(void**)& gtk_builder_value_from_string_type}, 6065 6118 { "gtk_file_selection_new", cast(void**)& gtk_file_selection_new}, 6066 6119 { "gtk_file_selection_set_filename", cast(void**)& gtk_file_selection_set_filename}, trunk/src/gtkc/gtktypes.d
r376 r382 1917 1917 } 1918 1918 alias GtkRecentFilterFlags RecentFilterFlags; 1919 1920 public enum GtkBuilderError 1921 { 1922 INVALID_TYPE_FUNCTION, 1923 UNHANDLED_TAG, 1924 MISSING_ATTRIBUTE, 1925 INVALID_ATTRIBUTE, 1926 INVALID_TAG, 1927 MISSING_PROPERTY_VALUE, 1928 INVALID_VALUE 1929 } 1930 alias GtkBuilderError BuilderError; 1919 1931 1920 1932 … … 4635 4647 /** 4636 4648 * Main Gtk struct. 4649 */ 4650 public struct GtkBuildable{} 4651 4652 4653 /** 4654 * The GtkBuildableIface interface contains method that are 4655 * necessary to allow GtkBuilder to construct an object from 4656 * a GtkBuilder UI definition. 4657 * GTypeInterfaceg_iface; 4658 * the parent class 4659 * set_name() 4660 * Stores the name attribute given in the GtkBuilder UI definition. 4661 */ 4662 public struct GtkBuildableIface{} 4663 // GTypeInterface gIface; 4664 // gtk-gtkbuildable.html 4665 // /+* virtual table +/ 4666 // gtk-gtkbuildable.html 4667 // void (* setName) (GtkBuildable *buildable, 4668 // gtk-gtkbuildable.html 4669 // char *name); 4670 // gtk-gtkbuildable.html 4671 // char * (* getName) (GtkBuildable *buildable); 4672 // gtk-gtkbuildable.html 4673 // void (* addChild) (GtkBuildable *buildable, 4674 // gtk-gtkbuildable.html 4675 // GtkBuilder *builder, 4676 // gtk-gtkbuildable.html 4677 // GObject *child, 4678 // gtk-gtkbuildable.html 4679 // char *type); 4680 // gtk-gtkbuildable.html 4681 // void (* setBuildableProperty) (GtkBuildable *buildable, 4682 // gtk-gtkbuildable.html 4683 // GtkBuilder *builder, 4684 // gtk-gtkbuildable.html 4685 // char *name, 4686 // gtk-gtkbuildable.html 4687 // GValue *value); 4688 // gtk-gtkbuildable.html 4689 // GObject * (* constructChild) (GtkBuildable *buildable, 4690 // gtk-gtkbuildable.html 4691 // GtkBuilder *builder, 4692 // gtk-gtkbuildable.html 4693 // char *name); 4694 // gtk-gtkbuildable.html 4695 // int (* customTagStart) (GtkBuildable *buildable, 4696 // gtk-gtkbuildable.html 4697 // GtkBuilder *builder, 4698 // gtk-gtkbuildable.html 4699 // GObject *child, 4700 // gtk-gtkbuildable.html 4701 // char *tagname, 4702 // gtk-gtkbuildable.html 4703 // GMarkupParser *parser, 4704 // gtk-gtkbuildable.html 4705 // void* *data); 4706 // gtk-gtkbuildable.html 4707 // void (* customTagEnd) (GtkBuildable *buildable, 4708 // gtk-gtkbuildable.html 4709 // GtkBuilder *builder, 4710 // gtk-gtkbuildable.html 4711 // GObject *child, 4712 // gtk-gtkbuildable.html 4713 // char *tagname, 4714 // gtk-gtkbuildable.html 4715 // void* *data); 4716 // gtk-gtkbuildable.html 4717 // void (* customFinished) (GtkBuildable *buildable, 4718 // gtk-gtkbuildable.html 4719 // GtkBuilder *builder, 4720 // gtk-gtkbuildable.html 4721 // GObject *child, 4722 // gtk-gtkbuildable.html 4723 // char *tagname, 4724 // gtk-gtkbuildable.html 4725 // void* data); 4726 // gtk-gtkbuildable.html 4727 // void (* parserFinished) (GtkBuildable *buildable, 4728 // gtk-gtkbuildable.html 4729 // GtkBuilder *builder); 4730 // gtk-gtkbuildable.html 4731 // GObject * (* getInternalChild) (GtkBuildable *buildable, 4732 // gtk-gtkbuildable.html 4733 // GtkBuilder *builder, 4734 // gtk-gtkbuildable.html 4735 // char *childname); 4736 // gtk-gtkbuildable.html 4737 4738 4739 /** 4740 * Main Gtk struct. 4741 */ 4742 public struct GtkBuilder{} 4743 4744 4745 /** 4746 * Main Gtk struct. 4637 4747 * Warning 4638 4748 * GtkFileSelection is deprecated and should not be used in newly-written code. … … 6045 6155 6046 6156 /* 6157 * object: 6158 * type: 6159 */ 6160 // TODO 6161 // #define GTK_BUILDER_WARN_INVALID_CHILD_TYPE(object, type) 6162 6163 /* 6047 6164 * Each GTK+ module must have a function gtk_module_init() with this prototype. 6048 6165 * This function is called after loading the module with the argc and argv … … 6835 6952 // gboolean (*GtkRecentFilterFunc) (const GtkRecentFilterInfo *filter_info, gpointer user_data); 6836 6953 public typedef extern(C) int function (GtkRecentFilterInfo*, void*) GtkRecentFilterFunc; 6954 6955 /* 6956 * This is the signature of a function used to connect signals. It is used 6957 * by the gtk_builder_connect_signals() and gtk_builder_connect_signals_full() 6958 * methods. It is mainly intended for interpreted language bindings, but 6959 * could be useful where the programmer wants more control over the signal 6960 * connection process. 6961 * builder: 6962 * a GtkBuilder 6963 * object: 6964 * object to connect a signal to 6965 * signal_name: 6966 * name of the signal 6967 * handler_name: 6968 * name of the handler 6969 * connect_object: 6970 * a GObject, if non-NULL, use g_signal_connect_object() 6971 * flags: 6972 * GConnectFlags to use 6973 * user_data: 6974 * user data 6975 * Since 2.12 6976 */ 6977 // void (*GtkBuilderConnectFunc) (GtkBuilder *builder, GObject *object, const gchar *signal_name, const gchar *handler_name, GObject *connect_object, GConnectFlags flags, gpointer user_data); 6978 public typedef extern(C) void function (GtkBuilder*, GObject*, char[], char[], GObject*, GConnectFlags, void*) GtkBuilderConnectFunc; 6837 6979 6838 6980 /* trunk/wrap/APILookupGtk.txt
r381 r382 6188 6188 selectionChangedData = new UserData; 6189 6189 } 6190 6191 6190 selectionChangedData.recentChooser = this; 6192 6191 selectionChangedData.listeners = onSelectionChangedListeners; … … 6303 6302 6304 6303 ########################################################### 6304 ### Interface builder ##################################### 6305 ########################################################### 6306 6307 file: gtk-gtkbuildable.html 6308 struct: GtkBuildable 6309 class: BuildableT 6310 template: TStruct 6311 prefix: gtk_buildable_ 6312 prefix: gtk_ 6313 import: glib.Str 6314 import: gobject.ObjectG 6315 structWrap: GObject* ObjectG 6316 import: gobject.Value 6317 structWrap: GValue* Value 6318 import: gtk.Builder 6319 structWrap: GtkBuilder* Builder 6320 #import: glib.MarkupParser 6321 #structWrap: GMarkupParser* MarkupParser 6322 interface: BuildableIF 6323 outFile: BuildableT 6324 6325 file: GtkBuilder.html 6326 struct: GtkBuilder 6327 class: Builder 6328 prefix: gtk_builder_ 6329 prefix: gtk_ 6330 import: glib.Str 6331 import: gobject.ObjectG 6332 structWrap: GObject* ObjectG 6333 import: gobject.ParamSpec 6334 structWrap: GParamSpec* ParamSpec 6335 import: gobject.Value 6336 structWrap: GValue* Value 6337 import: glib.ListSG 6338 structWrap: GSList* ListSG 6339 #import: glib.ErrorG 6340 #structWrap: GError** ErrorG* 6341 outFile: Builder 6342 6343 ########################################################### 6305 6344 ### Deprecated ############################################ 6306 6345 ###########################################################
