1. 16 Jan, 2005 1 commit
    • Mikael Hallendal's avatar
      - Removed temporary hack · 94018521
      Mikael Hallendal authored
      
      2005-01-16  Mikael Hallendal  <micke@imendio.com>
      
      	* src/glade-gtk.c: (glade_gtk_menu_bar_post_create):
      	- Removed temporary hack
      	* src/glade-widget-class.[ch]:
      	(glade_widget_class_free):
      	- Free default packing list
      	(glade_widget_class_set_packing_defaults_from_node):
      	- Read default child packings from catalog file.
      	(glade_widget_class_get_child_packing):
      	(glade_widget_class_get_packing_default_internal):
      	- Added
      	(glade_widget_class_get_packing_default):
      	- Added, used to get the default child packing when packing a widget
      	  into a specific container.
      	* src/glade-widget.c: (glade_widget_copy_packing_props),
      	(glade_widget_set_default_packing_properties):
      	- Added, sets the default packing properties.
      	(glade_widget_set_packing_properties):
      	- Call set_default_packing_properties.
      	* widgets/gtk+.xml:
      	- Added default packings for some widgets. Should be added to a lot
      	  more of them.
      94018521
  2. 13 Jan, 2005 1 commit
    • Mikael Hallendal's avatar
      - Parsing part of getting packing defaults working. Now the information · dc3bbb14
      Mikael Hallendal authored
      
      2005-01-13  Mikael Hallendal  <micke@imendio.com>
      
      	* src/glade-gtk.c: (glade_gtk_menu_bar_post_create):
      	* src/glade-types.h:
      	* src/glade-widget-class.c:
      	(glade_widget_class_packing_default_free),
      	(glade_widget_class_child_packing_free), (glade_widget_class_free),
      	(glade_widget_class_set_packing_defaults_from_node),
      	(glade_widget_class_extend_with_node),
      	(glade_widget_class_get_packing_defaults):
      	* src/glade-widget-class.h:
      	- Parsing part of getting packing defaults working. Now the information
      	  needs to be used when packing.
      	* src/glade.h:
      	* widgets/glade-catalog.dtd:
      	- Added packing-defaults with sub nodes
      	* widgets/gtk+.xml:
      	- Added packing defaults for menu bar in GtkBox.
      dc3bbb14
  3. 12 Jan, 2005 5 commits
    • Mikael Hallendal's avatar
      Bumped GTK+ requirements to 2.4 · fa72dfbf
      Mikael Hallendal authored
      
      2005-01-12  Mikael Hallendal  <micke@imendio.com>
      
      	* configure.in: Bumped GTK+ requirements to 2.4
      	* src/glade-menu-editor.c: (on_icon_button_clicked):
      	* src/glade-project-window.c: (gpw_open_cb), (gpw_save_as),
      	(gpw_save_cb), (gpw_save_as_cb), (gpw_confirm_close_project):
      	- Updated to use GtkFileChooser API directly.
      	- Cleaned up and reuse the save as code for both save and save as.
      	- Append .glade on filename if it lacks suffix.
      	* src/glade-utils.c: (glade_util_file_dialog_new):
      	- Remove the support for GtkFileSelection since we require 2.4.
      fa72dfbf
    • Richard Hult's avatar
      Change the min value for GtkBox size to 1 from 2. Fixes #163813. · bd5aeebb
      Richard Hult authored
      2005-01-12  Richard Hult  <richard@imendio.com>
      
      	* widgets/gtk+.xml: Change the min value for GtkBox size to 1 from
      	2. Fixes #163813.
      bd5aeebb
    • Mikael Hallendal's avatar
      - Added parameter check on spec. (glade_property_class_update_from_node): · 880f9adf
      Mikael Hallendal authored
      
      2005-01-12  Mikael Hallendal  <micke@imendio.com>
      
      	* src/glade-property-class.c:
      	(glade_property_class_new_from_spec):
      	- Added parameter check on spec.
      	(glade_property_class_update_from_node):
      	- Handle properties not found by introspection and that don't
      	  specify a spec-function in the catalog file as disabled properties.
      	  Fixes a crash when loading the catalog file that has GTK+ 2.6
      	  properties overridden in GTK+ 2.4.
      880f9adf
    • Richard Hult's avatar
      Add first cut at documentation for adding widgets. · bb88ba5c
      Richard Hult authored
      2005-01-12  Richard Hult  <richard@imendio.com>
      
      	* widgets/adding-widgets.txt: Add first cut at documentation for
      	adding widgets.
      
      	* widgets/glade-catalog.dtd: Add translatable property.
      
      	* widgets/gtk+.xml: Change name from tooltip to Tooltip.
      bb88ba5c
    • Richard Hult's avatar
      Fix typos in the XML. · cd181fd8
      Richard Hult authored
      2005-01-12  Richard Hult  <richard@imendio.com>
      
      	* src/glade-parameter.h:
      	* widgets/gtk+.xml: Fix typos in the XML.
      cd181fd8
  4. 11 Jan, 2005 2 commits
    • Richard Hult's avatar
      Merge the translatable and non-translatable input widgets. · 2f4c9c9f
      Richard Hult authored
      2005-01-11  Richard Hult  <richard@imendio.com>
      
      	* src/glade-editor.c: (glade_editor_create_input_text),
      	(glade_editor_append_item_real),
      	(glade_editor_property_load_text),
      	(glade_editor_property_load): Merge the translatable and
      	non-translatable input widgets.
      
      	* src/glade-property.c: (glade_property_write),
      	(glade_property_i18n_set_comment): Remove debug spew.
      
      	* widgets/gtk+.xml: Mark the appropriate properties
      	non-translatable.
      2f4c9c9f
    • Mikael Hallendal's avatar
      - Hide some debug printouts · adff0c66
      Mikael Hallendal authored
      
      2005-01-11  Mikael Hallendal  <micke@imendio.com>
      
      	* src/glade-catalog.c: (catalog_load), (catalog_load_group):
      	- Hide some debug printouts
      	* src/glade.h:
      	* widgets/glade-catalog.dtd:
      	* widgets/gtk+.xml:
      	- child-property-applies to child-property-applies-function
      	  All other functions are named like that.
      adff0c66
  5. 07 Jan, 2005 1 commit
    • Richard Hult's avatar
      Add i18n string handling. · aa98276e
      Richard Hult authored
      2005-01-07  Richard Hult  <richard@imendio.com>
      
      	* src/glade-editor.c: (glade_editor_property_show_i18n_dialog),
      	(glade_editor_create_input_text),
      	(glade_editor_create_input_translatable_text),
      	(glade_editor_append_item_real),
      	(glade_editor_property_load_text),
      	(glade_editor_property_load_translatable_text),
      	(glade_editor_property_load): Add i18n string handling.
      
      	* src/glade-property.h:
      	* src/glade-property.c: (glade_property_new), (glade_property_dup),
      	(glade_property_free), (glade_property_write),
      	(glade_property_i18n_*): Add i18n handling.
      
      	* src/glade-widget.c: (glade_widget_value_from_prop_info),
      	(glade_widget_apply_property_from_prop_info),
      	(glade_widget_get_property_from_widget_info),
      	(glade_widget_properties_from_widget_info),
      	(glade_widget_params_from_widget_info): Read i18n metadata
      	(doesn't read anything yet, we need to sort out libglade first).
      aa98276e
  6. 06 Jan, 2005 3 commits
    • Richard Hult's avatar
      Add translatable value. · 1e959308
      Richard Hult authored
      2005-01-06  Richard Hult  <richard@imendio.com>
      
              * src/glade-property-class.h (struct _GladePropertyClass): Add
              translatable value.
      
      	* src/glade-property-class.c (glade_property_class_new): Init
      	translatable value.
              (glade_property_class_update_from_node): Use defines for visible
              and optional tags and parse translatable.
      
              * src/glade.h: Add tags for visible and translatable.
      1e959308
    • Mikael Hallendal's avatar
      - More work on the catalog format. - Replaced glade-widgets with · dd777608
      Mikael Hallendal authored
      2005-01-06  Mikael Hallendal  <micke@imendio.com>
      
      	* src/glade-catalog.c: (catalog_load), (catalog_load_classes),
      	(catalog_load_group):
      	* src/glade.h:
      	* widgets/gtk+.xml:
      	- More work on the catalog format.
      	- Replaced glade-widgets with glade-widget-classes
      	- Replaced glade-widget-class in groups to glade-widget-class-ref to
      	  be more DTD friendly. Also makes more sense since it's a reference
      	  to a widget class rather than another widget class definition.
      dd777608
    • Mikael Hallendal's avatar
      - Make sure to use the GLADE_TAG defines instead of hardcoding strings. - · 9d1454df
      Mikael Hallendal authored
      2005-01-06  Mikael Hallendal  <micke@imendio.com>
      
      	* src/glade-catalog.c: (catalog_load), (catalog_load_group):
      	* src/glade-widget-class.c: (glade_widget_class_new):
      	- Make sure to use the GLADE_TAG defines instead of hardcoding strings.
      	- Makes it easier to update the format.
      	* src/glade.h:
      	- Updated to use new format.
      	- Needs some more work, unsure of which tags/attributes are used in
      	  the catalogs and which are for something else.
      	* widgets/Makefile.am:
      	* widgets/gtk+.xml:
      	- Update the catalog format to be more .glade like.
      9d1454df
  7. 05 Jan, 2005 3 commits
    • Mikael Hallendal's avatar
      Removed Added - Revert and continue to call catalog files .xml · b3c6dc55
      Mikael Hallendal authored
      
      2005-01-05  Mikael Hallendal  <micke@imendio.com>
      
      	* src/glade-catalog.c: (catalog_load_widgets),
      	(glade_catalog_load_all):
      	* widgets/Makefile.am:
      	* widgets/gtk+.catalog: Removed
      	* widgets/gtk+.xml: Added
      	- Revert and continue to call catalog files .xml
      b3c6dc55
    • Mikael Hallendal's avatar
      - Removed need for the palette file, loads all .catalog files in catalog · 64efa369
      Mikael Hallendal authored
      
      2005-01-05  Mikael Hallendal  <micke@imendio.com>
      
      	* src/glade-catalog.[ch]:
      	- Removed need for the palette file, loads all .catalog files in
      	  catalog directory.
      	- New catalog format where a catalog is one per library, for example
      	  gtk+.catalog. Each catalog contains one or more widget groups.
      	  Widget class definitions has been separated from the grouping which
      	  means that you can have a widget in two different groups.
      	* src/glade-palette.c:
      	- Updated to add widget groups rather than catalogs to the option
      	  menu.
      	(glade_palette_widget_table_create),
      	(glade_palette_append_widget_group):
      	- Renamed from glade_palette_append_catalog.
      	(glade_palette_new):
      	* src/glade-palette.h:
      	- Made glade_palette_append_widget_group internal.
      	* src/glade-types.h:
      	- Added GladeWidgetGroup.
      	* src/glade-widget-class.c:
      	(glade_widget_class_new):
      	- Reimplemented to instead take an GladeXmlNode node and load the
      	  widget class from there.
      	* src/glade-widget-class.h:
      	- Removed glade_widget_class_new_from_node for which the implementation
      	  was removed over a year ago.
      	* src/glade.h:
      	- Moved some GladeCatalog specific XML tags to glade-catalog.c instead.
      	* src/main.c: (glade_init):
      	- Give a warning if no catalog files where found instead of silently
      	  exit.
      	* widgets/Makefile.am:
      	* widgets/gtk+.catalog:
      	- Added gtk+.catalog
      64efa369
    • Richard Hult's avatar
      Fix crash when there are no rows. · 3eee46a6
      Richard Hult authored
      2005-01-05  Richard Hult  <richard@imendio.com>
      
      	* src/glade-project-view.c (gpv_find_preceeding_sibling): Fix
      	crash when there are no rows.
      3eee46a6
  8. 03 Jan, 2005 1 commit
    • Tristan Van Berkom's avatar
      - Changed GladeWidgetClass (class)->icon from GtkImage --> GdkPixbuf - Now · 9a8db8e3
      Tristan Van Berkom authored
      2005-01-02  Tristan Van Berkom  <tvb@cvs.gnome.org>
      
      	* src/glade-clipboard-view.c, src/glade-palette.c,
      	  src/glade-project-view.c, src/glade-widget-class.[ch], src/main.c:
      	    - Changed GladeWidgetClass (class)->icon from GtkImage --> GdkPixbuf
      	    - Now unavailable images showup properly on the project-view and the
      	      clipboard.
      	    - Needed to implement a little hack to provoke gtk+ to work properly
      	      (See main.c  `gtk_icon_factory_lookup_default ("");')
      
      	* src/glade-placeholder.c, src/glade-utils.c:
      	  Fixed flicker on button-click (No need to clear the project and the
      	  selection and then reselect if you are already selected).
      9a8db8e3
  9. 02 Jan, 2005 1 commit
    • Tristan Van Berkom's avatar
      g_list_prepend in loops and glade_project_window_get_active_project to get · 00bf8f09
      Tristan Van Berkom authored
      2005-01-01  Tristan Van Berkom  <tvb@cvs.gnome.org>
      
      	* src/glade-command.c: g_list_prepend in loops and
      	  glade_project_window_get_active_project to get the active project.
      
      	* src/glade-placeholder.c: Fixed selection in placeholders and now create
      	  previously selected widget class objects with SHIFT->leftclick.
      
      	* src/glade-popup.c: glade_project_window_get_active_project to get the
      	  active project, fixed paste in clipboard.
      
      	* src/glade-project-window.[ch]: Fixed bug 162102, (no error messages
      	  when save fails) mostly in the patch to libglade sitting on bug 161903
      	  which now offers fine grained error detection on save. Also implemented
      	  alt_class which is available to create widgets with SHIFT->leftclick.
      
      	* src/glade-project.[ch]: Adaptation to upgraded glade-utils selection
      	  scheme plus some modifications pertaining to bug 162102.
      
      	* src/glade-utils.[ch]: Upgraded selection scheme, fixed some bugs in the
      	  "cut/copy/paste/delete"-"selection/clipboard" helpers.
      
      	* src/glade-palette.[ch]: Implemented "catalog-changed" signal so that
      	  glade-project-window can refresh add_class/alt_class when the currently
      	  selected catalog changes.
      
      	* src/glade-gtk.c: Implemented alt_class and fixed brokenness that had went
      	  unnoticed (segfaults on child properties).
      
      	* src/glade-project-view.[ch]: Fixed sorting for toplevels.
      00bf8f09
  10. 01 Jan, 2005 2 commits
    • Tristan Van Berkom's avatar
      Now treestore items are inserted sorted · f3729965
      Tristan Van Berkom authored
      
      * src/glade-project-view.c: Now treestore items are inserted sorted
      
      * src/glade-utils.c: Fixed a bug in glade_util_find_iter.
      f3729965
    • Tristan Van Berkom's avatar
      - Added emacs c-basic-offset: 8. - Implemented multiple selection on the · 96b1ae04
      Tristan Van Berkom authored
      
      
      * src/glade-clipboard-view.c, src/glade-clipboard.[ch]:
        - Added emacs c-basic-offset: 8.
        - Implemented multiple selection on the clipboard
      
      * src/glade-command.c: Adjusted to multiple selection on clipboard,
        allow glade_command_paste with multiple widgets if
          a.) They are not being pasted to a placeholder (i.e. widget tree)
          b.) They are not parented through the GtkContainer --> GtkWidget
      	parenting pipeline (see glade-widget-class.[ch] for the container
      	abstraction interface and see glade_util_gtkcontainer_relation).
      
      * src/glade-popup.c: Added comment and removed unused variables.
      
      * src/glade-project-view.c: Moved glade_project_view_find_iter_by_widget
        to now be a generic glade_util_find_iter_by_widget
        (also plugged leaks with gtk_tree_iter_free (iter))
      
      * src/glade-utils.[ch]: Added glade_util_find_iter_by_widget () and
        glade_util_any_gtkcontainer_relation ().
      96b1ae04
  11. 30 Dec, 2004 1 commit
    • Tristan Van Berkom's avatar
      Multiple widgets in Cut/Copy/Paste/Delete commands · 5a6fe7e3
      Tristan Van Berkom authored
      
      
      
      * src/glade-command.[ch]: Multiple widgets in Cut/Copy/Paste/Delete commands
      
      * src/glade-placeholder.c: Changed callers.
      
      * src/glade-popup.c, src/glade-project-window.c: Use glade-utils for
        Cut/Copy/Paste/Delete
      
      * src/glade-project-view.[ch]: Implemented multiple selection.
      
      * src/glade-project.[ch]: Implemented glade_project_is_selected.
      
      * src/glade-utils.[ch]: Implemented: glade_util_paste_clipboard (),
        glade_util_cut_selection (), glade_util_copy_selection () and
        glade_util_delete_selection ().
      
      * src/glade-widget.c: Implemented multiple selection.
      5a6fe7e3
  12. 28 Dec, 2004 2 commits
    • Tristan Van Berkom's avatar
      Selection on treeview now follows project->selection. · 5f89e75b
      Tristan Van Berkom authored
      
      
      * src/glade-project-view.c: Selection on treeview now follows
        project->selection.
      
      * src/glade-project.c: glade_util_add_selection is now a side effect,
        glade_util_has_selection is dropped in favor of
        g_list_find (project, object) != NULL.
      5f89e75b
    • Tristan Van Berkom's avatar
      - Fixed placeholder refcount management in cut/copy/paste - Implemented · ed6fecf4
      Tristan Van Berkom authored
      
      
      * src/glade-command.[ch]:
        - Fixed placeholder refcount management in cut/copy/paste
        - Implemented glade_command_change_signal
      
      * src/glade-editor.[ch]:
        - Removed dead code (glade_editor_add_signal stuff)
        - Implemented glade_editor_refresh
      
      * src/glade-signal-editor.c:
        Changed callers for glade_command_change_signal
      
      * src/glade-project-window.c:
        Refresh the property editor on undo/redo :)
      
      * src/glade-debug.h, src/glade-menu-editor.c, src/glade-command.c
        Removed g_debug() macro and all references (gtk+-2.6 now offers this).
      ed6fecf4
  13. 24 Dec, 2004 1 commit
  14. 23 Dec, 2004 1 commit
  15. 15 Dec, 2004 1 commit
    • Tristan Van Berkom's avatar
      Ahhh, synchronizing my last months work with repository. · d360794b
      Tristan Van Berkom authored
      
      
      Ahhh, synchronizing my last months work with repository.
      
      
      	* src/glade-catalog.c: pallet_name is no longer "required" in the catalog,
      	  if it is present, then the widget goes in the pallet, if there is a generic
      	  name, it will be used in the case of non-widgets.
      
      	* src/glade-command.c: glade_command_create no longer nescesitates a placeholder
      	    and now has a "parent" argument for the case of (!toplevel && non-widget)
      	    (surrounding code adjusted to work with non-widgets, glade_command_delete
      	     stuff included).
      
      	* src/glade-editor.c:
      	    - Widget page is now called General page
      	    - Name field not appended to non-widgets
      	    - Adjusted text inputs to only set properties on TAB or ENTER
      	      (or focus changes in the case of multi line entries)
      	      This heavily reduces spamming of the property system as properties
      	      dont get synchronized for every single charachter change.
      
      	* src/glade-signal-editor.c: Implemented "object" and "lookup" fields.
      
      	* src/glade-signal.c: Implemented "object" and "lookup" fields.
      
      	* src/glade-gtk.c: GtkFixed code fixed to not needlessly create placeholders
      	  at child create time (go directly to glade_command_create() without passing
      	  go or collecting 200 dollars).
      	    (Also fixed name of enum type glade_gtk_stock_get_type)
      
      	* src/glade-placeholder.c: Use new glade_command_create ()
      
      	* src/glade-popup.c:
      	    - Added code needed for addition of non-widgets.
      	    - Added "add_children" arg to glade_popup_widget_pop ()
      
      	* src/glade-project-view.c:
      	    - fixed bug 145299.
      	    - Added popup code to treeview.
      	    - Sort widgets in treeview alphabeticly
      	    - Window is now scrollable.
      
      	* src/glade-project-window.c: Fixed some error messages, used new
      	  glade_command_create()
      
      	* src/glade-property.c: Fixed a bug in rebuilding of widgets
      	  (project list needs to be searched to find out if the widget is
      	  actualy in the project).
      
      	* src/glade-property-class.c: Made custom props load tooltips from pspec
      	  blurbs as well as the xml file.
      
      	* src/glade-utils.c:
      	    - glade_utils_draw_nodes_idle(), dont try to draw nodes on non-widgets.
      	    - added glade_util_widget_pastable()
      	    - added glade_util_gtkcontainer_relation()
      
      	* src/glade-widget-class.[ch]:
      	    - added glade_widget_class_get_by_type ()
      	    - added glade_widget_class_get_derived_types ()
      
      	* src/glade-widget.c:
      	    - added glade_widget_sync_packing_props ()
      	    - added glade_widget_set_parent ().
      	    - Made widgets parent a property of widget
      	    - glade_widget_new() now takes a "parent" argument.
      	    - removed glade_widget_update_parent() which was more confusing
      	      than anything else.
      	    - glade_widget_dup() now duplicates widget names as well.
      d360794b
  16. 18 Nov, 2004 2 commits
    • Tristan Van Berkom's avatar
      Replaced `GtkWidget *' with `GObject *' throughout the code · 2da41214
      Tristan Van Berkom authored
      2004-11-16  Tristan Van Berkom  <tristan.van.berkom@gmail.com>
      
      	* Replaced `GtkWidget *' with `GObject *' throughout the code
      
      	* Removed glade_util_get_parent and replaced with
      	  glade_placeholder_get_parent or glade_widget_get_parent where
      	  appropriate.
      
      	* Implemented a container abstraction layer which allows any object to
      	  be a container through the xml catalog interface (GtkContainer is
      	  handled implicitly).
      
      	* Straightened out a few crooked header files.
      
      	* Reworked loading a bit so that GladeProperties are loaded with the
      	  values found in the xml file and that g_object_newv is called with
      	  those values as well.
      
      	* Deprecated / Removed useless pre_create functions, anything that was
      	  a pre_create is now done in post create without any regression.
      
      	* glade_gtk_container_fill_empty now checks if there are existing
      	  children before adding one.
      
      	* Added comment on how to fix glade-project-view
      
      	* Half implemented addition of non-widget children in glade-popup.c
      
      	* glade-utils "nodes" code now also serves as a selection marker for
      	  any non-widget objects (widgets are still handled by drawing
      	  selections). Also reverted my change to queue_draw_nodes... seems to
      	  work for now.
      
      	* For now I removed the unused notion of "grand-child" packing
      	  properties (that will have to be inspected and implemented properly
      	  if need be).
      
      	* updated XML files accordingly.
      2da41214
    • Ivan Wong's avatar
      - clean up a little bit. - drop acconfig.h, use the third arg of AC_DEFINE · e2ba2209
      Ivan Wong authored
      2004-11-17  Ivan Wong  <email@ivanwong.info>
      
      	* configure.in:
      	  - clean up a little bit.
      	  - drop acconfig.h, use the third arg of AC_DEFINE instead.
      	  - allow user to specify what version (dynamic/static) of
      	    libpopt is to be used (win32 only).
      
      	* acconfig.h, config.h.win: removed
      
      	* src/Makefile.am: drop flags that are never used, and probably
      	  won't be used.
      
      	* src/glade-catalog.c, src/glade-palette.c,
      	  src/glade-project-window.c, src/glade-widget-class.c,
      	  src/glade.h, src/main.c:
      	  use global variables instead of preprocessor definitions for
      	  data/locale/pixmaps/widgets/catalogs directory names.
      e2ba2209
  17. 15 Nov, 2004 2 commits
    • Ivan Wong's avatar
      add dependency of libglade-2.0 >= 2.4.0 · 3aa83fd3
      Ivan Wong authored
      2004-11-08  Ivan Wong  <email@ivanwong.info>
      
      	* configure.in: add dependency of libglade-2.0 >= 2.4.0
      
      	* src/glade-project.c:
      	  - fill GladeInterface of libglade: glade_project_save(),
      	    glade_project_write()
      	  - parse GladeInterface of libglade: glade_project_open(),
      	    glade_project_new_from_interface()
      
      	* src/glade-property.[ch]: glade_property_write() now fills
      	  libglade's GladePropInfo
      
      	* src/glade-signal.[ch]: glade_signal_write()/glade_signal_new_from_signal_info()
      	  now fills/parses GladeSignalInfo of libglade.
      
      	* src/glade-types.h: include header of libglade-parser.
      
      	* src/glade-widget.[ch]:
      	  - glade_widget_write_signals(), glade_widget_write(),
      	    glade_widget_write_child(): use libglade to save.
      	  - glade_widget_read(), glade_widget_new_from_widget_info(),
      	    glade_widget_new_child_from_child_info(),
      	    glade_widget_apply_property_from_prop_info(): use libglade to load.
      
      	* src/glade-xml-utils.h: dups of alloc_string() and alloc_propname()
      	  from libglade, will be removed.
      
      	* widgets/gtkwidget.xml: set "Tooltip" default to empty string.
      3aa83fd3
    • Ivan Wong's avatar
      - add option "--verbose". - add POPT_AUTOHELP. - use dynamic version of · 675274fa
      Ivan Wong authored
      2004-11-13  Ivan Wong  <email@ivanwong.info>
      
      	* main.c, src/glade.h:
      	  - add option "--verbose".
      	  - add POPT_AUTOHELP.
      	  - use dynamic version of popt on win32.
      
      	* src/glade-editor.c: Some compilers don't know __FUNCTION__,
      	  G_GNUC_FUNCTION is better.
      
      	* src/glade-gtk.c:
      	  - GLADEGTK_API should precede return type.
      	  - glade_gtk_button_set_stock() now checks "use-underline" when "stock"
      	     is restored to glade-none.
      
      	* src/glade-menu-editor.c: MSVC doesn't know #warning,
      	  use #pragma message for that.
      
      	* src/glade-property-class.[ch]:
      	  - MSVCRT.dll hasn't got strtoll(), use _atoi64() for that.
      	  - add orig_def for storing the orginal default value that
      	    is overridden by a custom default.
      
      	* src/glade_plugin.def: added glade_editor_load_widget.
      
      	* src/glade-editor.c, src/glade-gtk.c, src/glade-parameter.c,
      	  src/glade-property-class.c, src/glade-transform.c, src/glade-widget.c:
      	  fixed some signed/unsigned mismatch and truncation warnings that only
      	  appears in MSVC.
      675274fa
  18. 10 Nov, 2004 1 commit
    • Tristan Van Berkom's avatar
      bug 157289 fixed in regard with boxes and notebooks. · d1c6f73b
      Tristan Van Berkom authored
      2004-11-08  Tristan Van Berkom  <tristan.van.berkom@gmail.com>
      
      	* src/glade-gtk.c: bug 157289 fixed in regard with boxes and notebooks.
      
      2004-11-08 Shane Butler <shane_b@users.sourceforge.net>
      
      	* src/glade-gtk.c (glade_gtk_notebook_get_tab_label_text,
      	  glade_gtk_notebook_set_tab_label_text): New functions to handle setting the tab
      	  label text on the GtkNotebook child widget. (glade_gtk_notebook_replace_child):
      	  Make it so the label is handled correctly and the correct notebook page is
      	  still selected.
      	* widgets/gtknotebook.xml: Updated with tab label hook functions.
      	* src/glade-widget.c: Choose the mapped widget rather than just the last child
      	  widget in the list.
      	* src/main.c (glade_init): Spelling mistake reported by Andrew Burton <adb@iinet.net.au>.
      d1c6f73b
  19. 05 Nov, 2004 3 commits
    • David Hoover's avatar
      when double-clicking on a window in the project view, hide if if it's · f4575007
      David Hoover authored
      2004-11-05  David Hoover <karma@deadmoose.com>
      
              * src/glade-project-view.c: when double-clicking on a window in the
      	  project view, hide if if it's show, show it if it's hidden.
      	  Fixes 156736
      f4575007
    • Tristan Van Berkom's avatar
      Implemented glade_command_copy () (undo/redo works like a charm :-) · 7e43051d
      Tristan Van Berkom authored
      2004-11-03  Tristan Van Berkom  <tristan.van.berkom@gmail.com>
      
              * src/glade-command.[ch], glade-popup.c, glade-project-window.c:
      	  Implemented glade_command_copy () (undo/redo works like a charm :-)
      
      	* src/glade-widget.c: Simplified / Improved code respecting custom properties.
      
      	* src/glade-project.c: Simplified some code around selection, project management
       	  (improved fixes for bugs 156515 and 155892).
      7e43051d
    • Shane Butler's avatar
      rewrote function to create a GtkFileSelector or GtkFileChooser depending · ca5f1e2c
      Shane Butler authored
      2004-11-02 Shane Butler <shane_b@users.sourceforge.net>
      
      	* src/glade-utils.[ch] (glade_util_file_dialog_new): rewrote function to create a GtkFileSelector or GtkFileChooser depending on the GTK+ version.
      	(glade_util_file_dialog_get_filename, glade_util_file_dialog_set_filename): Metods to retrieve and set the filename of whichever file selector type is supported.
      	* src/glade-project-window.c (gpw_open_cb, gpw_save_cb, gpw_save_as_cb, gpw_confirm_close_project): Update to use new functions (above).
      	* src/glade-menu-editor.c (on_icon_button_clicked): Update to new functions.
      	* configure.in: Revert back to requiring GTK+ 2.2 or above.
      ca5f1e2c
  20. 03 Nov, 2004 4 commits
    • Ivan Wong's avatar
      Fix a few glitches that only show up on win32 · 5476bd66
      Ivan Wong authored
      2004-11-02  Ivan Wong <email@ivanwong.info>
      	* src/Makefile.am: Fix a few glitches that only show up on win32
      5476bd66
    • Tristan Van Berkom's avatar
      Removed GladePropertyType completely from the source in favor of · 9051dfb9
      Tristan Van Berkom authored
      2004-11-02  Tristan Van Berkom  <tristan.van.berkom@gmail.com>
      	* Removed GladePropertyType completely from the source in favor of
      	  GParamSpec.
      	* Removed GladeChoice code, and replaced all references thereof
      	* Custom types must now provide a function to retrieve a GParamSpec for
      	  that type (xml files and glade-gtk backend updated accordingly).
      	* Removed "child" member from GladePropertyType in order to avoid
      	  confusion (Note, I will add support for non-widget types + all types
      	  allowed to have children, in a more flexable way, for now I got rid
      	  of all mention of "child" since it wasn't implemented and mostly
      	  `#if 0'd out anyway)
      	* Implemented <VerifyFunction> in xml files and in the glade-gtk
      	  backend.
      	* Added support for numerical types long/ulong/int64/uint64 to the
      	  editor.
      	* src/glade-project.c: glade_project_remove_widget() Now removes nodes
      	  on widget to remove, this fixes bug 156515.
      	* src/glade-editor.c: Fixed popup name to
      	  g_strdup_printf(_("Create a %s"), type);
      9051dfb9
    • David Hoover's avatar
      fix up CLEANFILES problem · b9a1931e
      David Hoover authored
      2004-11-02  David Hoover <karma@deadmoose.com>
      	* src/Makefile.am: fix up CLEANFILES problem
      b9a1931e
    • Ivan Wong's avatar
      Win32 related fixes (bug 154927) · 0b45fe74
      Ivan Wong authored
      2004-11-02  Ivan Wong <email@ivanwong.info>
              * acconfig.h, autogen.sh, config.h.win, configure.in, src/Makefile.am,
                src/glade-catalog.c, src/glade-palette.c, src/glade-project-window.c,
                src/glade-widget-class.c, src/glade_plugin.def, src/main.c: Win32
                related fixes (bug 154927)
      0b45fe74
  21. 28 Oct, 2004 2 commits
    • Tristan Van Berkom's avatar
      - Removed reference to obsoleted post_create function. - Changed `ignore' · 66f3e73c
      Tristan Van Berkom authored
      2004-10-28  Tristan Van Berkom  <tristan.van.berkom@gmail.com>
      
              * widgets/gtkbox.xml:
                - Removed reference to obsoleted post_create function.
                - Changed `ignore' to `empty' for the fill_empty funciton.
                - Tagged "Size" property as type "Query".
                - Added Default size 3
                - Changed Minimum size to 2
      
              * widgets/gtknotebook.xml:
                - Tagged "pages" property as type "Query".
                - Removed obsolete (or never implemented) Query section.
      
              * widgets/gtktable.xml:
                - Tagged "n-rows" and "n-columns" properties as type "Query".
                - Removed obsolete (or never implemented) Query section.
      
              * widgets/gtklabel.xml: Added default "" value for pattern property, this
                works around gtk+ bug 156720 which was causing us segfaults.
      66f3e73c
    • Tristan Van Berkom's avatar
      Implemented glade_editor_query_popup(), also obsoleted common & packing · d718761f
      Tristan Van Berkom authored
      2004-10-28  Tristan Van Berkom  <tristan.van.berkom@gmail.com>
      
              * src/glade-editor.[ch]: Implemented glade_editor_query_popup(), also obsoleted
                common & packing booleans for a more convenient GladeEditorTableType field.
      
              * src/glade-gtk.c:
                - Refitted and integrated Mickael Cornet's patch to bug 153823
                - glade_gtk_table_set_n_common() now refuses to shrink when it involves
                  orhpaning widgets, Its also been improved to fill in all the blanks.
                - Removed all dialogs.
                - Fixed children are now born with size-request properties enabled.
                - Removed some `#if 0' code that I trust we dont need.
                - glade_gtk_box_set_size() Adjusted to match gtk_table behaviour
      
              * src/glade-plugin.h:
                - Added a header to the batch.
      
              * src/glade-popup.c: glade_popup_copy_cb() now duplicates the
                widget in question with glade_widget_dup().
      
              * src/glade-property-class.[ch]: glade_property_class_update_from_node() now
                flags properties that need a pupop dialog at creation time.
      
              * src/glade-property.[ch]: Implemented glade_property_sync() (Sychronizes
                the object with its glade_property), glade_property_set() now calls
                glade_property_sync().
      
              * src/glade-widget.[ch]:
                - Implemented glade_widget_dup().
                - Added call to glade_property_sync on appropriate properties that
                  need to be synchronized after a glade_widget_rebuild().
                - Added a call to glade_editor_query_popup() in the appropriate situation.
                - glade_widget_build_object() now takes into account property_class default values
                - glade_widget_new() now calls new function glade_widget_sync_query_props() in
                  popup cases (If properties dont change from there default, a synchronization is
                  needed at this point).
              * widgets/gtkbox.xml:
                - Removed reference to obsoleted post_create function.
                - Changed `ignore' to `empty' for the fill_empty funciton.
                - Tagged "Size" property as type "Query".
                - Added Default size 3
                - Changed Minimum size to 2
      
              * widgets/gtknotebook.xml:
                - Tagged "pages" property as type "Query".
                - Removed obsolete (or never implemented) Query section.
      
              * widgets/gtktable.xml:
                - Tagged "n-rows" and "n-columns" properties as type "Query".
                - Removed obsolete (or never implemented) Query section.
      
              * widgets/gtklabel.xml: Added default "" value for pattern property, this
                works around gtk+ bug 156720 which was causing us segfaults.
      d718761f