1. 04 Aug, 2001 1 commit
  2. 02 Aug, 2001 1 commit
    • Chema Celorio's avatar
      add <popt.h>. implement : ./glade2 --dump {widget} to dump to the console · e0f3bbf8
      Chema Celorio authored
      2001-08-01  Chema Celorio  <chema@celorio.com>
      
      	* src/main.c: add <popt.h>.
      	implement : ./glade2 --dump {widget} to dump to the console the
      	properties of a widget.
      
      	* src/glade.h: add _TAG_COMMON
      
      	* src/glade-xml-utils.c (glade_xml_get_boolean): take a default value
      	that should be used if the node is not found
      	(glade_xml_property_get_boolean): ditto for properties.
      
      	* src/glade-widget-class.c (glade_widget_class_dump_param_specs):
      	improve. dump the type and the object the property belongs to.
      
      	* src/glade-property-class.c (glade_widget_property_class_free):
      	implement.
      	(glade_property_class_load_from_param_spec): don't create the
      	PropertyClass in here
      	(glade_property_class_new_from_node): the query should be read
      	before the ParamSpec, if we are loading with ParamSpec we want
      	to be able to specify a query.
      
      	* src/glade-project-window.c (glade_project_window_create): do not
      	_show_all when creating a project_window
      	(glade_project_window_show_all): implement
      
      	* src/glade-placeholder.c (glade_placeholder_add): the properites
      	for the GtkTable are n-rows and n-columns not rows-columns
      
      	* src/glade-palette.c (glade_palette_create): implement.
      
      	* src/glade-editor.h: add ->common for the common tab of the editor
      
      	* src/glade-editor.c (glade_editor_table_append_items): add a common
      	parameter for the common tab of the editor.
      	(glade_editor_get_table_from_class): add a common parameter, when
      	getting a table verify that common = table->common
      	(glade_editor_load_common_page): implement.
      	(glade_editor_load_class): load the common page too
      	(glade_editor_create): do not show the editor when it is created
      
      	* src/Makefile.am: remove empty variables.
      	Add -lpopt. We are NOT checking in configure.in for popt yet.
      e0f3bbf8
  3. 16 Jul, 2001 1 commit
    • Chema Celorio's avatar
      init_function is not required in the xml files. · 75f81c96
      Chema Celorio authored
      2001-07-15  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-widget-class.c (glade_widget_class_new_from_node): init_function is
      	not required in the xml files.
      	(glade_widget_class_new_from_node): make non-static cause a property can now have
      	a child like a spin button has a gtk_adjustment
      
      	* src/glade-property.h: a property can have a ->child.
      
      	* src/glade-property.c (glade_property_new_from_string): handl type _OBJECT
      
      	* src/glade-property-class.h: we can only have one child per property. Rename
      	children to child
      
      	* src/glade-property-class.c (glade_property_class_get_type_from_spec): handle
      	_OBJECT
      	(glade_property_class_new_from_node): if we have child object, load it.
      
      	* src/glade-gtk.c (glade_gtk_option_menu_set_items): rename _append to _shell_append
      	to remove warning.
      	(glade_gtk_adjustment_set_max): impl.
      	(glade_gtk_adjustment_set_min): impl.
      
      	* src/glade-editor.h (struct _GladeEditorTable): add tabel->editor, this cleans
      	up the fucntion prototypes cause we have one less argument to pass.
      
      	* src/glade-editor.c (glade_editor_append_item_real): rename and change
      	arguments to that we can recurse
      	(glade_editor_table_append_items): ditto
      	(glade_editor_property_load_object): impl.
      	(glade_editor_property_load): change so that we can recurse
      
      	* src/glade-property-class.h: add ->child for property type == OBJECT
      
      	* src/glade-editor.c (glade_editor_create_input_object): implement
      
      	* src/glade-widget-class.c (glade_widget_class_new_from_node): make non
      	static and add to headers since we are recursing for type object
      75f81c96
  4. 15 Jul, 2001 1 commit
    • Archit Baweja's avatar
      changed to negate use of <GetTypeFunction> in the XML files. · c8702214
      Archit Baweja authored
      2001-07-14  Archit Baweja  <bighead@crosswinds.net>
      
      	* src/glade-widget-class.c (glade_widget_class_compose_get_type_func):
      	changed to negate use of <GetTypeFunction> in the XML files.
      
      	* src/glade-widget-class.c (glade_widget_class_new_from_node): check
      	if get_type function is provided in GetTypeFunction tag. Else use above
      	function.
      c8702214
  5. 09 Jul, 2001 1 commit
    • Chema Celorio's avatar
      check if g_module_supported is TRUE in here, if it isn't there is no point · f25dd18f
      Chema Celorio authored
      2001-07-09  Chema Celorio  <chema@celorio.com>
      
      	* src/main.c (glade_init): check if g_module_supported is TRUE
      	in here, if it isn't there is no point in running glade2
      
      	* src/glade.h (GLADE_TAG_SET_FUNCTION): add the new tags beeing
      	used in the .xml files
      
      	* src/glade-xml-utils.c (glade_xml_get_boolean): accept
      	"TRUE" and "FALSE" as valid (before only "True" & "False")
      
      	* src/glade-widget.c (glade_widget_button_press): return FLASE
      	so that the emision continues (fixes clicking over items)
      	(glade_widget_button_release): ditto
      
      	* src/glade-widget-class.h: add the spec function prototypes
      
      	* src/glade-widget-class.c (glade_widget_class_get_specs): move
      	here from glade_propery_class.
      	(glade_widget_class_find_spec): ditto
      	(glade_widget_class_dump_param_specs): implement
      
      	* src/glade-property.h: add the headers for the _double functions
      
      	* src/glade-property.c (glade_property_new_from_string): handle
      	double type
      	(glade_property_changed_double): implement
      	(glade_property_get_double): impl.
      
      	* src/glade-property-class.h: add _TYPE_DOUBLE and _TYPE_OBJECT
      	remove class->gtk_arg add class->id. Fixed the code all over
      	to use ->id and ->name correctly.
      	- add children for child objects and set_function to set properties
      	that gtk is not exposing
      
      	* src/glade-property-class.c: add frames for handling _TYPE_OBJECT
      	no content tho
      	(glade_property_get_parameter_numeric_default):
      	(glade_property_get_parameter_numeric_min):
      	(glade_property_get_parameter_numeric_max): impl.
      	(glade_property_get_parameters_numeric): clean
      	(glade_property_class_get_set_function): implement but not use yet
      	cause I could not get it to work. Use glade_gtk_get_set_function_hack
      	for now.
      	(glade_property_class_new_from_node): change to reflect new changes
      	in .xml format
      
      	* src/glade-project-window.c (glade_project_window_query_properties):
      	use ->id and not ->name
      
      	* src/glade-placeholder.c (glade_placeholder_add): s/Size/size
      	s/Rows/rows since we use class->id and not class->name
      
      	* src/glade-parameter.c (glade_parameter_adjustment_new): make
      	the increment 1 so that integers can be changed if the increment
      	is not specified
      
      	* src/glade-palette.c (glade_palette_init): set the policy of the
      	pallete (which is a gtkwindow)
      
      	* src/glade-editor.h: add GladeEditorNumericType to share functions
      	that interact with numbers
      
      	* src/glade-editor.c (glade_editor_property_changed_numeric): handle
      	integers, floats and doubles. rename from _changed_integer
      	(glade_editor_create_input): handle double
      	(glade_editor_property_load_double): impl.
      
      	* src/Makefile.am: add glade-gtk.[ch]
      
      	* src/glade-property-class.c (glade_property_class_get_set_function):
      	implement
      
      	* widgets/gtk*.xml: clean lots of files, changed the format it is now
      	a lot better.
      
      	* src/glade-gtk.c (glade_gtk_entry_set_text): implement
      	(glade_gtk_get_set_function_hack): implement a temp hack to find
      	function pointers at run time, i could not make gmodule work.
      f25dd18f
  6. 05 Jul, 2001 1 commit
    • Chema Celorio's avatar
      Add more widget and clean others · 23d23196
      Chema Celorio authored
      2001-07-05  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-property-class.c (glade_property_get_parameters_integer):
      	G_IS_PARAM_SPEC_UINT is also valid
      	(glade_property_class_get_type_from_spec): add UINT to the case
      
      	* src/glade-widget-class.c (glade_widget_class_create_pixmap): use
      	->generic_name now
      
      	* src/glade-widget-class.h: remove ->icon it was redundant with
      	->generic_name, use ->generic_name to load icons
      23d23196
  7. 04 Jul, 2001 1 commit