706 Commits

Author SHA1 Message Date
Tristan Van Berkom
020446e22f updated
* doc/tmpl/*: updated

	* src/glade-fixed.[ch], src/glade-widget.[ch]:
	  Improved, now made replace_child a vfunc... fixed some
	  event related bugs.

	* src/glade-gtk.c, widgets/gtk+.xml.in: Added free-form placement
	  for GtkTable widget.

	* src/glade-utils.c: added glade_util_deep_fixed_event(), used to
	  propagate events down to fixed containers that dont have windows.
2006-06-11 10:35:47 +00:00
Tristan Van Berkom
70b5c89a75 o Changed the way we retrieve the mouse position in child events, so that
we dont rely on the nature of the properties.
2006-06-10 12:37:57 +00:00
Tristan Van Berkom
2374fe671a o Now you can have a GladeFixed inside a GladeFixed, in any hierarchical order
you wish, the cursor updates properly in regard to the rules:
	    - Add sign with class selected on the palette
	    - Only direct children may be used for drag/resize, or thier direct child
	      placeholders in turn, cursor will display correctly in those cases.
2006-06-10 11:28:04 +00:00
Tristan Van Berkom
876b4e4748 Removed g_debug()
* src/glade-catalog.c: Removed g_debug()
2006-06-10 09:35:19 +00:00
Tristan Van Berkom
82e48a4b50 o Use event widget and not signal widget to use with
* src/glade-widget.c:
	  o Use event widget and not signal widget to use with
	    gtk_widget_translate_coordinates(), this fixes the imfamous bug 327379
	  o Recurse through non-project objects when looking for widget at mouse event;
	    this fixes the internal widget selection bug (bug 338894).

	* src/glade-placeholder.c: Placeholders dont ever get selection anymore, its
	  only confusing for no reason, adds extra clicks to select relevent widgets
	  (note that every second click was going to the parent; making the parent
	  fight with the placeholder for selection... since its pointless, its gone).

	* TODO: Updated
2006-06-10 09:15:45 +00:00
Tristan Van Berkom
d23f8ceafb Fixed bug that was using uninitialized data to configure children at load
* src/glade-fixed.c: Fixed bug that was using uninitialized data
	  to configure children at load time.
2006-06-10 07:42:15 +00:00
Tristan Van Berkom
b1b086b02d Fixing typo 2006-06-09 22:12:46 +00:00
Tristan Van Berkom
ed2e3af6f2 o Fixed "paste at mouse position" o Fixed cursors a bit... event handling
* src/glade-fixed.c:
	  o Fixed "paste at mouse position"
	  o Fixed cursors a bit... event handling a bit too

	* src/glade-placeholder.c: Special case fixed stuff for now,
	  so that drag/resize works at least from deep placeholders.

	* src/glade-widget.c: Touched the event handling code.
2006-06-09 22:10:59 +00:00
Tristan Van Berkom
16743369c6 Made changes for changed files.
* src/Makefile.am, po/POTFILES.in: Made changes for changed files.

	* src/glade-fixed.[ch]: The new GladeWidget derived free form placement
	  support object.

	* src/glade-fixed-manager.[ch]: Removed.

	* doc/catalogintro.sgml: made mention of new 'fixed' property on
	  'glade-widget-class' tag

	* doc/gladeui-sections.txt, doc/Makefile.am,
	  doc/tmpl/*, doc/gladeui.types: Updated for file changes.

	* src/glade-app.c, src/glade-command.c, src/glade-gnome.c, src/glade.h:
	  Changed for new apis in glade-widget and glade-fixed.

	* src/glade-gtk.c:
	  o Changed for new apis in glade-widget and glade-fixed.
	  o Restructured, now *all* class supports are listed class
	    by class

	* src/glade-property-class.h: Fixed docs.

	* src/glade-widget-class.[ch]:
	  o Added glade_widget_class_query ()
	  o Added glade_widget_class_create_widget ()
	  o Added glade_widget_class_create_internal ()

	* src/glade-widget.[ch]: API is stablizing now... lots of cleanup done,
	  added construct properties used in the constructor to create properties and
	  runtime instances.

	* widgets/gtk+.xml.in:
	  o Toolbars expand=False by default in GtkVBoxes
	  o GtkPaned now works a little stabler
	  o GtkFixed/GtkLayout marked 'fixed'.
2006-06-09 09:43:15 +00:00
Tristan Van Berkom
6902e0f83b Temporary evil externing untill GladeWidget migration is complete.
* src/glade-fixed-manager.c: Temporary evil externing untill GladeWidget
	  migration is complete.

	* src/glade-widget.[ch]: Completely reworked file structure and changed
	  a few things:
	  o button_press_event() vfunc now available to be called on mouse clicks
	    of the said widget.
	  o added container api abstraction provided by fixed manager and reffitted
	    for my anticipated integration
2006-06-08 02:41:28 +00:00
Tristan Van Berkom
66b079666d o Reverting the simplification of gtkbox, the regression was that the box
* src/glade-gtk.c, widgets/gtk+.xml.in:
	  o Reverting the simplification of gtkbox, the regression was that the box
	    placeholders were not adjusting properly on undo/redo of create/delete/cut/paste
	    commands.
	  o Fixing GtkFixed/GtkLayout to not call glade_gtk_container_add/remove_child for
	    its children.

	* src/glade-command.c: Slight simplifications made.
BEFORE_GWIDGET_MADNESS
2006-06-07 18:00:32 +00:00
Tristan Van Berkom
897c5a14f8 fixed double free in glade_command_add_signal_finalize()
* src/glade-command.c: fixed double free in glade_command_add_signal_finalize()

	* src/glade-signal-editor: Fixed signal editor to truely delete handler/userdata
	  when it previously only appeared to.
2006-06-07 03:36:51 +00:00
Tristan Van Berkom
ee495edde6 Updated for 3.0 blockers.
* TODO: Updated for 3.0 blockers.
2006-06-06 18:22:14 +00:00
Tristan Van Berkom
4b850e3a1c Only GtkWidgetClass descendants have accelerators.
* src/glade-widget-class.c: Only GtkWidgetClass descendants have
	  accelerators.
2006-06-06 18:21:08 +00:00
Tristan Van Berkom
ecacf3f1cb o Fixed segfaults on color-button o Fixed color-button & font-button
* src/glade-gtk.c, widgets/gtk+.xml.in:
	  o Fixed segfaults on color-button
	  o Fixed color-button & font-button (dropped unused properties)
	  o Fixed initial label text on buttons (and subclass defaults)
2006-06-06 14:31:25 +00:00
Tristan Van Berkom
947f877bca accelerator key selection list is split up nicer now. 2006-06-06 04:45:39 +00:00
Tristan Van Berkom
c7f2b09fe2 fixing bugs in previous commit. 2006-06-05 23:51:05 +00:00
Tristan Van Berkom
9ea11b1eef o Added submenues to the accel key combo. 2006-06-05 21:31:16 +00:00
Tristan Van Berkom
cd7c077bc3 strcmp() --> g_utf8_collate() 2006-06-05 18:17:36 +00:00
Tristan Van Berkom
64affed8ef accel dialog: Make combo have an entry and avoided segfaults... also now a
* src/glade-editor-property.c: accel dialog: Make combo have an entry and
	  avoided segfaults... also now a little easier to remove accelerators.
2006-06-05 17:28:57 +00:00
Tristan Van Berkom
21a488e56d Updated
* TODO: Updated
2006-06-05 04:40:57 +00:00
Tristan Van Berkom
f1519c8113 Added GtkToolItem child support to GtkToolbar and new widgets classes
* widgets/gtk+.xml.in: Added GtkToolItem child support to GtkToolbar and
	  new widgets classes GtkToolItem, GtkSeparatorToolItem, GtkToolButton,
	  GtkMenuToolButton, GtkToggleToolButton and GtkRadioToolButton.

	* src/glade-gtk.c:
	  o added GtkToolbar support functions.
	  o cleanup glade_gtk_menu_shell_get_child_property() and
	    glade_gtk_menu_shell_set_child_property() functions.
	  o tried to make Menu editor UI prettier separating a bit
	    name/type from properties.
2006-06-05 04:35:03 +00:00
Tristan Van Berkom
6126666eb4 Fixing windows build 2006-06-05 04:31:11 +00:00
Tristan Van Berkom
26620fb9cb Added autogenerated keysyms (but not autogenerating them at the moment).
* src/Makefile.am, src/glade-keysyms.c: Added autogenerated keysyms
	  (but not autogenerating them at the moment).

	* src/glade-builtins.[ch]: Added GLADE_TYPE_ACCEL_GLIST, GLADE_PARAM_SPEC_ACCEL
	  and some convenience funcs.

	* src/glade-editor-property.c: Added GladeEpropAccel.

	* src/glade-editor.c: take accel props into account

	* src/glade-parser.c: Make strings for GdkModifierType in dump_widget.

	* src/glade-property-class.c, src/glade-widget-class.c:
	  o Now you can get the GladeWidgetClass from the GladePropertyClass
	  o Added string conversion from GladeParamSpecAccel properties
	    (but vise versa)
	  o GladeWidgetClassSignal --> GladeSignalClass, not GSignalQuery struct
	    is included too.

	* src/glade-property.c, src/glade-widget.c: Load/save support for accel properties.
2006-06-05 04:17:27 +00:00
Tristan Van Berkom
52ac2c4117 o Application menus now marked for translation
* src/glade-project-window.c: Action groups now assigned a
	  translation domain for application menus.
2006-06-03 21:52:59 +00:00
Tristan Van Berkom
e58cc74406 o stdlib.h now included on all platforms 2006-06-03 21:39:21 +00:00
Tristan Van Berkom
1529559ff3 Fix for bug 337959.
* src/glade-project-window.c, src/glade-app.[ch],
          src/glade-utils.[ch]: Fix for bug 337959.

        * src/main.c, glade-editor-property.c: Fixed memory leaks.
2006-06-03 21:30:02 +00:00
Tristan Van Berkom
cce24e22b9 o Now bookless classes' info buttons are show insensitive. o No info
* src/glade-editor-property.c, src/glade-editor.c:
	  o Now bookless classes' info buttons are show insensitive.
	  o No info buttons on query dialogs.

	* Many files: changed "== TRUE" to be "!= FALSE"
2006-06-03 17:57:50 +00:00
Tristan Van Berkom
fd104da64a Fixed segfault on widget copying.
2006-06-02  Tristan Van Berkom <tvb@gnome.org>

	* src/glade-widget.c: Fixed segfault on widget copying.

2006-06-02  Juan Pablo Ugarte <juanpablougarte@gmail.com>

	* src/glade-gtk.c, widgets/gtk+.xml.in: removed support functions from
	  GtkBox... it all still works.
2006-06-02 19:34:41 +00:00
Tristan Van Berkom
c56a2ceaf7 completing the commit 2006-06-02 16:59:16 +00:00
Tristan Van Berkom
99f302ab2f Fixed spelling mistakes in alot of sources (bugs 342972 & 343087)
* Fixed spelling mistakes in alot of sources (bugs 342972 & 343087)
2006-06-02 16:52:14 +00:00
Tristan Van Berkom
f0fe930807 Added -mwindows to glade3_LDFLAGS in win32 compile mode
* src/Makefile.am: Added -mwindows to glade3_LDFLAGS in win32 compile mode

	* src/glade-xml-utils.c: Fallback on default namespace when searching
	  funcs from the catalog (this seems to only be needed in windows builds)

	* src/glade-utils.c: glade_util_have_devhelp() fixed with better warning messages
	  and the function was returning -1 (TRUE) when there was no devhelp in the
	  program path (*doh*).
2006-05-28 04:33:52 +00:00
Clytie Siddall
63573c8191 vi.po: Updated Vietnamese translation. 2006-05-27 09:03:41 +00:00
Tristan Van Berkom
612e183b3c Added gnome catalog relevent files for translation.
* po/POTFILES.in: Added gnome catalog relevent files for translation.

	* src/glade-devhelp.[ch]: Removed.

	* configure.in, src/Makefile.am: shuffled, devhelp removed

	* src/glade-project-window.c, src/glade-utils.[ch]: implement
	  devhelp search as `devhelp -s \"search string\"`. (spawn it)
2006-05-27 01:22:27 +00:00
Clytie Siddall
025d0b5377 vi.po: Updated Vietnamese translation. 2006-05-26 05:39:45 +00:00
Francisco Javier F. Serrador
9d4e29716e Updated Spanish translation.
2006-05-25  Francisco Javier F. Serrador  <serrador@openshine.com>

	* es.po: Updated Spanish translation.
WITH_EMBEDDED_DEVHELP
2006-05-25 20:03:55 +00:00
Clytie Siddall
c4525f82d6 vi.po: Updated Vietnamese translation. 2006-05-25 12:18:29 +00:00
Tristan Van Berkom
d5280a78fe fixing compile warnings (constifying) 2006-05-25 04:08:38 +00:00
Francisco Javier F. Serrador
e54c109201 Updated Spanish translation.
2006-05-23  Francisco Javier F. Serrador  <serrador@openshine.com>

	* es.po: Updated Spanish translation.
2006-05-23 01:28:52 +00:00
Tristan Van Berkom
fbb818c1ba Installed unwanted garbage to pass distcheck.
* src/Makefile.am, widgets/Makefile.am: Installed unwanted garbage
	  to pass distcheck.

	* src/glade-devhelp.c: Navigational buttons insensitive at startup.

	* src/glade-catalog.c: Unexposed a private function.

	* src/glade-xml-utils.c: made alloc_string glade_xml_alloc_string,
	  alloc_propname: ditto.

	* src/glade-property.c, src/glade-signal.c:
	  Adjustemtnts made for glade-xml api above

	* src/glade-widget.c:
	  o Adjustemtnts made for glade-xml api above
	  o Properties applied to new objects in two steps now,
	    code around build_object cleaned up... now build_object
	    used also in load code.
2006-05-22 20:54:54 +00:00
Tristan Van Berkom
adc5b5594e touch up after initial edit. 2006-05-18 05:59:10 +00:00
Tristan Van Berkom
85465a487a catalog book specifications now on widget classes
* src/glade.h, src/glade-catalog.c, src/glade-widget-class.[ch]:
	  catalog book specifications now on widget classes

	* src/glade-editor.c, src/glade-editor-property.c: Now get the
	  book name directly from the widget class.

	* doc/catalogintro.sgml: documented added "book" property.

	* widgets/bonobo.xml.in: added gnome catalog dependancy

	* widgets/gnome.xml.in, widgets/gtk+.xml.in: Added book specifications.
2006-05-18 05:19:29 +00:00
Tristan Van Berkom
eb1ec8b868 added check for GnomeUI libs (PKG_CHECK_MODULES)
* configure.in: added check for GnomeUI libs (PKG_CHECK_MODULES)

	* widgets/Makefile.am: New catalogs added (bonobo.xml gnome.xml)

	* widgets/bonobo.xml.in: Created new catalog for libbonoboui.

	* widgets/gnome.xml.in: Created new catalog for libgnomeui.

	* widgets/canvas.xml.in: empty file just to declare the module.
	  GnomeCanvas is declared in gnome catalog.

	* widgets/gtk+.xml.in: added GtkMenuItem "stock-item" property.
	  o added glade_gtk_box_get_internal_child()
	  o disabled GtkLayout's hadjustment and vadjustment properties.

	* src/Makefile.am: added gladegnome conditional build.

	* src/glade-builtins.[ch]: added glade_standard_pixbuf_spec(),
	  glade_standard_gdkcolor_spec() and glade_standard_uint_spec().
	  Fixed stock order in glade_standard_stock_get_type()

	* src/glade-editor-property.c: added G_PARAM_SPEC_VALUE_ARRAY
	  support to GladeEPropText.

	* src/glade-gnome.c: New support file for gnome/bonobo catalogs.

	* src/glade-gtk.h: Created to include it in others plugings.

	* src/glade-gtk.c:
	  o added GtkMenuItem stock-item property.
	  o Moved GladeGtkImageType and GladeGtkButtonType to glade-gtk.h
	  o Moved GLADE_CREATE_USER block from idle function to
	    glade_gtk_button_post_create()

	* src/glade-project.c: fixed bug in glade_project_resource_fullpath()
	  project->path could be NULL.

	* src/glade-property-class.c: added G_PARAM_SPEC_VALUE_ARRAY
	  support in glade_property_class_make_string_from_gvalue() and
	  glade_property_class_make_gvalue_from_string()
2006-05-18 04:06:50 +00:00
Tristan Van Berkom
afebbfc713 o Bumped version to 2.91.3 (for anjuta to get the devhelp 0.12 requirement
correctly).
	  o Bumped version to 2.91.3 (for anjuta to get the devhelp 0.12 requirement
	    correctly).
2006-05-15 18:58:09 +00:00
Tristan Van Berkom
636183398b removed unused var HAVE_DEVHELP
(since WITH_DEVHELP is what is actually used).
2006-05-15 14:23:05 +00:00
Tristan Van Berkom
ef16f6b9d6 Bumping required devhelp version to 0.12 (current devhelp cvs).
* configure.in: Bumping required devhelp version to 0.12
	  (current devhelp cvs).
2006-05-15 14:08:45 +00:00
Tristan Van Berkom
ef236a1a61 Make label inside eventbox visible by default, and dont show the info
* src/glade-editor-property.c: Make label inside eventbox visible
	  by default, and dont show the info button by default.

	* src/glade-gtk.c: Root out the evil calls to gtk_widget_show_all ()
	  (for contextual devhelpish bugs). and plugged a leaked GladeEditorProperty.
2006-05-13 03:38:11 +00:00
Tristan Van Berkom
a121614e3f bullet-proofed glade_util_read_prop_name().
* src/glade-utils.c: bullet-proofed glade_util_read_prop_name().
2006-05-13 00:39:45 +00:00
Tristan Van Berkom
ef7d9f23c2 Applied patch for bug 340692
* doc/Makefile.am: Applied patch for bug 340692

	* src/glade-command.c: glade_command_set_property (), return if
	  the command doesnt change the property.

	* src/glade-editor-property.c: GladeEPropText, if string property is NULL
	  and we recieve "" from the entry, set the property to NULL, if we get
	  NULL from the entry and the property is "", then set the property to
	  "", otherwise set the property to the entry text. (this fixes 339832)

	* src/glade-property.[ch]: constified GValue argument to
	  glade_property_equals_value ().
2006-05-06 07:38:07 +00:00
Tristan Van Berkom
31f5587dd5 Fixed up GtkTable to not refresh placehlolders when doing a
* src/glade-gtk.c: Fixed up GtkTable to not refresh placehlolders when
	  doing a glade_gtk_table_replace_child() replacing a placeholder with
	  a GladeWidget (only the other way around), this way placeholders are
	  preserved during the operation of pasting multiple widgets to a GtkTable
	  (and each pasted widget has its own seperate place in the table).

	* src/glade-command.c: Fixed "props recorded" marker to be marked on a per
	  widget basis, this was causing only one widget in a list of pasted widgets
	  to have its newly introspected packing props recorded (now they are all
	  recorded)

	* src/glade-popup.c: Create insensitive 'paste' items when the clipboard
	  has no selection.

	* src/glade-editor.[ch]: Insensitive "Documentation" and "Reset" buttons when
	  no widget is loaded.
2006-05-06 03:52:46 +00:00