1. 02 Sep, 2001 1 commit
    • Carlos Perell Marn's avatar
      Modified to use the new GNOME 2.0 config stuff. Removed a dup "#include · 5edecc74
      Carlos Perell Marn authored
      2001-08-29  Carlos Perelló Marín <carlos@gnome-db.org>
      
      	* autogen.sh:
      	* configure.in:
      	* Makefile.am: Modified to use the new GNOME 2.0 config stuff.
      	* src/glade.h: Removed a dup "#include <libintl.h>"
      	* src/main.c: Moved the NLS stuff to be the first at main()
      	and added setlocale (LC_ALL, ""); before the bindtextdomain call
      	Now the l10n works!!!! Thanks Martin for your comments ;-)
      	* src/Makefile.am: popt is checked at configure.in
      5edecc74
  2. 29 Aug, 2001 2 commits
  3. 28 Aug, 2001 1 commit
    • Chema Celorio's avatar
      rewrite (glade_placeholder_is): impl. · fda4f89e
      Chema Celorio authored
      2001-08-28  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-placeholder.c (glade_placeholder_add_with_result): rewrite
      	(glade_placeholder_is): impl.
      
      	* src/glade-widget-class.c (glade_widget_class_is): impl.
      
      	* src/glade-placeholder.c (glade_placeholder_new): set the parent
      	as a data (not user) member. Also set True so that we can use :
      
      	* src/glade-packing.c (glade_packing_table_get_child_at): implement.
      	(glade_packing_table_child_has_span): impl.
      	(glade_packing_table_cell_common_set): impl.
      	(glade_packing_table_cell_x_set): impl.
      	(glade_packing_table_cell_y_set): impl.
      	(glade_packing_table_span_common_set): impl.
      	(glade_packing_table_span_x_set): impl.
      	(glade_packing_table_span_y_set): impl.
      
      	* src/glade-gtk.c (glade_gtk_table_get_n_rows): disable
      	(glade_gtk_table_get_n_columns): ditto
      	(glade_gtk_table_set_n_common): use for both x & y. Add
      	support for childs that have spans.
      	(glade_gtk_table_set_n_rows): call _n_common
      	(glade_gtk_table_set_n_columns): call _n_common
      	(glade_gtk_table_post_create): implement
      fda4f89e
  4. 24 Aug, 2001 1 commit
    • Chema Celorio's avatar
      implement. · bc19b3fb
      Chema Celorio authored
      2001-08-24  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-gtk.c (glade_gtk_table_get_n_rows):
      	(glade_gtk_table_get_n_columns):
      	(glade_gtk_table_set_n_rows):
      	(glade_gtk_table_set_n_columns): implement.
      bc19b3fb
  5. 23 Aug, 2001 2 commits
    • Chema Celorio's avatar
      impl. (glade_packing_table_cell_x_get): (glade_packing_table_cell_y_get): · 603fd753
      Chema Celorio authored
      2001-08-22  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-packing.c (glade_packing_table_get_child): impl.
      	(glade_packing_table_cell_x_get):
      	(glade_packing_table_cell_y_get):
      	(glade_packing_table_span_x_get):
      	(glade_packing_table_span_y_get):
      	(glade_packing_table_span_y_get):
      	(glade_packing_table_padding_h_set):
      	(glade_packing_table_padding_v_set):
      	(glade_packing_table_padding_h_get): ditto
      
      	* src/glade-gtk.c (glade_widget_ugly_hack): implement.
      	(glade_gtk_box_set_size): implement size reduction
      603fd753
    • Jose Maria Celorio's avatar
      forgot to comit from last time · bb1e6aa6
      Jose Maria Celorio authored
      bb1e6aa6
  6. 21 Aug, 2001 1 commit
    • Chema Celorio Foo's avatar
      add config.h. I am not sure i agree with Kjartan about the config.h think · d4d560d9
      Chema Celorio Foo authored
      2001-08-21  Chema Celorio Foo  <chema@celorio.com>
      
      	* src/glade-catalog.c: add config.h. I am not sure i agree with Kjartan about
      	the config.h think though
      	* src/glade-placeholder.c: ditto. kmaraas didn't tested his fix i guess.
      
      	* src/glade-property.h (GLADE_PROPERTY_OBJECT_CLASS): Fix the define to
      	pass the GladePropertyObjectClass structure to the macro.
      d4d560d9
  7. 19 Aug, 2001 6 commits
  8. 18 Aug, 2001 1 commit
  9. 13 Aug, 2001 1 commit
    • Chema Celorio's avatar
      remove the packing memebers, we where not using them. · 1c2347c4
      Chema Celorio authored
      2001-08-13  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-widget.h: remove the packing memebers, we where not using them.
      
      	* src/glade-widget.c (glade_widget_button_press): if the widget is not
      	selected, stop the emision of the button clicked event.
      	(glade_widget_set_default_options_real): remove the code for handling
      	->apply_first_time.
      	(glade_widget_ugly_hack): add an ugly hack till i figure out the real
      	problem of the placeholders not beeing drawn inside containers.
      	(glade_widget_clear_draw_selection): function used when we unselect an
      	item so that it gets redrawn and the selection nodes cleared.
      	(glade_widget_properties_hash_from_node): impl.
      	(glade_widget_apply_property_from_hash_item): impl.
      	(glade_widget_new_child_from_node): impl.
      
      	* src/glade-widget-class.c (glade_widget_class_new_from_node): load
      	postcreatefunction
      	(glade_widget_class_is): implement.
      
      	* src/glade-property.c (glade_property_set): implement.
      
      	* src/glade-property-class.h: remove ->apply_first_time
      
      	* src/glade-project-window.c (glade_project_window_add_project): add
      	two g_return_val_if_fail
      
      	* src/glade-project-view.c (glade_project_view_widget_name_changed): if
      	view->is_list and the widget is not a toplevel, return.
      
      	* src/glade-placeholder.c (glade_placeholder_add_methods_to_class):
      	make all methods static. implement.
      	(glade_placeholder_add): take a rows & cols argument and not a
      	GladePropertyQueryResult.
      	:use glade_widget_class_is and not a strcmp
      	(glade_placeholder_add_with_result): impl.
      	(glade_placeholder_replace): impl.
      	(glade_placeholder_get_from_properties): impl.
      
      	* src/glade-packing.c (glade_packing_box_position_set): remove a
      	warning
      
      	* src/glade-gtk.c (glade_gtk_window_post_create): impl.
      	(glade_gtk_check_button_post_create): impl.
      1c2347c4
  10. 12 Aug, 2001 1 commit
    • Chema Celorio's avatar
      try to fix gettext support. Duno why translations are not working. Feel · 8b9ec736
      Chema Celorio authored
      2001-08-11  Chema Celorio  <chema@celorio.com>
      
      	* src/glade.h: try to fix gettext support. Duno why translations are not
      	working. Feel free to fix it ;-).
      
      	* src/glade-widget.c (glade_property_refresh): implement
      	(glade_widget_new): clean widget creation
      	(glade_widget_new_full): ditto
      	(glade_widget_get_from_gtk_widget): ditto
      	(glade_widget_apply_property_from_node): impl.
      	(glade_widget_new_from_node): impl.
      
      	* src/glade-property.c : port to GValue
      	* src/glade-property.h: ditto
      
      	* src/glade-property-class.c : port to GValue
      	* src/glade-property-class.h : ditto
      
      	* src/glade-project.c (glade_project_new_from_node): implement.
      	(glade_project_open_from_file): implement.
      	(glade_project_open): implemnt.
      
      	* src/glade-project-view.h (struct _GladeProjectViewClass): add a
      	selection_update signal.
      
      	* src/glade-project-view.c (glade_project_view_populate_model_real): add a
      	add_childs parameter
      	(glade_project_view_selection_update): implment (not yet working)
      
      	* src/glade-parameter.c (glade_parameter_adjustment_new): port to GValue
      
      	* src/glade-palette.c (glade_palette_clear): impl.
      
      	* src/glade-gtk.c: port to GValue from string
      	(glade_gtk_box_set_size): impl.
      
      	* src/glade-editor.c (glade_editor_property_changed_*): use g_property_set_foo
      	rather than g_property_changed_foo.
      	port to GValues from string
      
      	* src/glade-choice.c (glade_choice_list_new_from_node): use _TAG_ENUM and
      	not _CHOICES
      
      	* src/glade-catalog.c: remove <config.h>
      
      	* src/Makefile.am (SUBDIRS): remove tests
      8b9ec736
  11. 07 Aug, 2001 1 commit
    • Chema Celorio's avatar
      add a temp hack to set the properties. (glade_property_get): ditto to get · b2a8539c
      Chema Celorio authored
      2001-08-07  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-widget.c (glade_widget_property_changed_cb): add a temp hack to set
      	the properties.
      	(glade_property_get): ditto to get the properties from a widget.
      	(glade_widget_toplevel_delete_event_cb): handle the delete event for toplevels
      	(glade_widget_connect_other_signals): impl.
      
      	* src/glade-property.c (glade_property_get_type): glade property is now an object
      	and emits a changed signal.
      
      	* src/glade-property-class.c (glade_property_class_new_from_node): load before
      	deciding if this prop will be loading with paramspec
      
      	* src/glade-project-view.c (glade_project_view_button_press_cb): implement.
      	Double clicking on a widget on the list gtk_widget_show's it.
      
      	* src/glade-gtk.c (glade_gtk_entry_set_text): preserve the cursor position.
      
      	* src/glade-editor.c (glade_editor_property_connect_signals): impl.
      	(glade_editor_property_changed_cb): impl.
      
      	* src/glade-property.h: add -> loading
      
      	* src/glade-editor.h (struct _GladeEditorTable): remove ->loading
      
      	* src/glade-editor.c (glade_editor_property_load_text): when loading text
      	preserve the cursor position.
      	* src/glade-editor.c : use property->loading and not property->property->loading
      b2a8539c
  12. 06 Aug, 2001 1 commit
    • Chema Celorio's avatar
      handle the case where the property is queried from the gtkwidget v.s. · ca932a90
      Chema Celorio authored
      2001-08-06  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-widget.c (glade_widget_set_default_options_real): handle the case
      	where the property is queried from the gtkwidget v.s. setting a default one.
      	(glade_widget_free): implement.
      	(glade_widget_delete): add content.
      	(glade_widget_write): when saving a widget, add the packing properties too.
      
      	* src/glade-signal.c (glade_signal_free): impl.
      
      	* src/glade-signal-editor.c (glade_signal_editor_load_widget): handle a
      	widget->class = NULL for clearing the signal editor.
      
      	* src/glade-property.c (glade_property_new_from_class): handle properties
      	that the default is fetched from the gtkwidget itself, not set.
      	(glade_property_free): implement.
      
      	* src/glade-project.c (glade_project_selection_changed): implement.
      	(glade_project_remove_widget_real): impl.
      	(glade_project_remove_widget): impl.
      
      	* src/glade-project-window.c (gpw_delete_cb): implement.
      
      	* src/glade-project-view.h (struct _GladeProjectView): add the remove
      	signal id to the struct.
      
      	* src/glade-project-view.c (glade_project_view_remove_item): implement
      	for "Delete"
      	(glade_project_view_remove_widget_cb): ditto
      	(glade_project_view_set_project): connect and disconnect ->remove_item
      
      	* src/glade-placeholder.c (glade_placeholder_replace_$x): where
      	x are all the containers. Modify this functions so that we can
      	use them to replace a placeholder with a widget and the other
      	way arround. We need this when we delete a widget and want to
      	put a placeholder where the widget was.
      
      	* src/glade-packing.c (glade_packing_container_set_flag): impl.
      	(glade_packing_container_set_integer): impl.
      	(glade_packing_container_set_boolean): impl.
      	(glade_packing_table_set_flag): impl.
      	(glade_packing_table_set_integer): impl.
      	(glade_packing_box_set_boolean): impl.
      	(glade_packing_box_set_integer): impl.
      	(glade_packing_box_position_get): impl.
      	(glade_packing_box_position_set): when setting the pos of a child update the
      	property->value of the rest, cause it has (most likely) changed.
      	(table_props): add the rest of the properties
      	(box_props): ditto
      
      	* src/glade-editor.c (glade_editor_load_widget_page): handle a NULL class to
      	clear the page
      	(glade_editor_load_common_page): ditto
      	(glade_editor_load_item): ditto
      	(glade_editor_select_item_real): ditto
      ca932a90
  13. 05 Aug, 2001 2 commits
  14. 04 Aug, 2001 2 commits
    • Jose Maria Celorio's avatar
      *** empty log message *** · 9d9c7826
      Jose Maria Celorio authored
      9d9c7826
    • Chema Celorio's avatar
      add a packing argument. (glade_widget_set_default_options): we now set the · 4aec257b
      Chema Celorio authored
      2001-08-04  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-widget.c (glade_widget_set_default_options_real): add a packing
      	argument.
      	(glade_widget_set_default_options): we now set the default options in two
      	steps. Firts the object properties and
      	(glade_widget_set_default_packing_options): secondly the packing properties.
      	The packing properties are applied after the widget is appended to the container
      
      	* src/glade-property-class.c (glade_property_class_get_default_from_spec):
      	default is now a member of GladePropertyClass not a GladeParameter.
      
      	* src/glade-parameter.c (glade_parameter_adjustment_new): get the default
      	from the parameters only if def was not specified. Added a default variable
      	to the function.
      
      	* src/glade-packing.c: add file. Takes care of container packing related
      	stuff.
      
      	* src/glade-gtk.c (glade_gtk_vbox_get_size): add the prototype, still
      	no content
      	(glade_gtk_vbox_set_size): ditto.
      
      	* src/glade-editor.c (glade_editor_load_packing_page): impl. Adds
      	the packing page.
      
      	* src/Makefile.am: add packging.[ch]
      
      	* src/glade-popup.c (glade_popup_create_menu): make the popup-menu
      	work. Select now works.
      
      	* src/glade-widget.h: remove ->popup. destroy it right away.
      
      2001-08-03  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-widget-class.c (glade_widget_class_list_signals): plug a memleak
      	(glade_widget_class_compose_get_type_func): plug a memleak
      4aec257b
  15. 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
  16. 25 Jul, 2001 1 commit
    • Chema Celorio's avatar
      save signals and child widgets too · 54bb92c3
      Chema Celorio authored
      2001-07-25  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-widget.c (glade_widget_write): save signals and child widgets too
      
      	* src/glade-signal.c (glade_signal_write): new file, implement. We need to
      	move stuff from glade-signal-editor into here.
      
      	* src/glade-xml-utils.c (glade_xml_node_set_property_boolean): implement.
      54bb92c3
  17. 23 Jul, 2001 1 commit
    • Chema Celorio's avatar
      when saving a .xml file indent it as libxml did by calling SaveFormatFile · bbec1dc1
      Chema Celorio authored
      2001-07-23  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-xml-utils.c (glade_xml_doc_save): when saving a .xml file indent
      	it as libxml did by calling SaveFormatFile and xmlKeepBlanksDefault.
      
      	* src/glade-xml-utils.h: hide the libxml internals (remove headers from the
      	.h file and into the .c file. Update all the code to not deal with libxml
      	structs directly. Changed the while loops that generated libxml nodes to for
      	loops. remove the skip_text macro and add glade_xml_node_is_comment so that
      	we can test the node for a node we should ignore (in the for loops).
      bbec1dc1
  18. 22 Jul, 2001 1 commit
    • Chema Celorio's avatar
      implement, new file. · 550709b2
      Chema Celorio authored
      2001-07-22  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-utils.c (glade_util_path_is_writable): implement, new file.
      
      	* src/glade-property.c (glade_property_write): implement.
      
      	* src/glade-widget.c (glade_widget_write): add content.
      
      	* src/glade-xml-utils.c (glade_xml_set_value): fix a lot of the broken issues.
      	Don't confuse properties for node content. Use GladeXmlNode as API entry.
      	Lots of small new functions, lots of cleanup.
      550709b2
  19. 21 Jul, 2001 2 commits
    • Jose Maria Celorio's avatar
      add · a0477ad8
      Jose Maria Celorio authored
      a0477ad8
    • Chema Celorio's avatar
      impl. · 7a4c2ca8
      Chema Celorio authored
      2001-07-21  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-project.c (glade_project_save): impl.
      
      	* src/glade-project-window.c (gpw_save_cb): add contents
      	(glade_project_window_get_project): impl.
      
      	* src/glade-project-ui.c (glade_project_ui_save_get_name): new file that
      	holds the ui that interacts with the user.
      7a4c2ca8
  20. 16 Jul, 2001 4 commits
    • Jose Maria Celorio's avatar
      typo ;-) · 5a43d02e
      Jose Maria Celorio authored
      5a43d02e
    • Chema Celorio's avatar
      impl. (glade_widget_connect_edit_signals): impl. · 9f649f5b
      Chema Celorio authored
      2001-07-16  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-widget.c (glade_widget_connect_edit_signals_with_class): impl.
      	(glade_widget_connect_edit_signals): impl.
      
      	* src/glade-property-class.h: add ->update_signals and ->get_function
      
      	* src/glade-property-class.c (glade_xml_read_list): implement. Keep here for now
      	but should go into xml utils.
      
      	* src/glade-gtk.c (glade_gtk_get_set_function_hack): implement.
      9f649f5b
    • Jose Maria Celorio's avatar
      minor fix · c7a59572
      Jose Maria Celorio authored
      c7a59572
    • 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
  21. 15 Jul, 2001 2 commits
    • 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
    • Chema Celorio's avatar
      set the property · 8fd0cdfa
      Chema Celorio authored
      2001-07-15  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-property.c (glade_property_changed_choice): set the property
      
      	* src/glade-widget.c (glade_widget_new_from_class_name): implement
      	(glade_widget_new_from_class): no need to pass the project. We know
      	it from parent->project. Update all the calls to this function
      	(glade_widget_new_toplevel): impl.
      
      	* src/glade-widget-class.c (glade_widget_class_get_by_name): implement
      
      	* src/glade-placeholder.c (glade_placeholder_replace_notebook): implement
      
      	* widgets/gtknotebook.xml: add properties
      
      	* src/glade-placeholder.c (glade_placeholder_add): handle notebook
      
      	* src/glade-widget-class.c (glade_widget_class_add_virtual_methods): handle
      	gtk_notebook.
      8fd0cdfa
  22. 14 Jul, 2001 2 commits
  23. 11 Jul, 2001 2 commits
    • Chema Celorio's avatar
      implement. (glade_gtk_option_menu_set_items): impl. · 9f2a507b
      Chema Celorio authored
      001-07-10  Chema Celorio  <chema@celorio.com>
      
      	* src/glade-gtk.c (glade_gtk_entry_set_text): implement.
      	(glade_gtk_option_menu_set_items): impl.
      	(glade_gtk_progress_bar_set_format): impl.
      
      	* src/glade-editor.c (glade_editor_property_changed_text_view): implement.
      	We can now use entries or GtkTextView for text properties
      
      2001-07-09  Chema Celorio  <chema@celorio.com>
      
      	* widgets/*.xml: add props to several widgets
      
      	* src/glade-placeholder.c (glade_placeholder_add): handle GtkHandleBox too
      
      	* src/glade-widget-class.c (glade_widget_class_add_virtual_methods): handle
      	GtkFrame too
      
      	* src/glade-editor.c (glade_editor_property_changed_numeric): remove
      	g_print's
      
      	* src/glade-property-class.c (glade_property_get_parameters_text): imlement
      	(glade_property_class_get_parameters_from_spec): and use here. We now load
      	default text values.
      
      	* widgets/gtkprogressbar.xml: add "text" which is the format
      
      	* src/glade-project-window.c (glade_project_window_query_properties): set
      	the default response
      9f2a507b
    • Jose Maria Celorio's avatar
      If the catalog is not found, exit · d020721f
      Jose Maria Celorio authored
      d020721f
  24. 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