14 Commits

Author SHA1 Message Date
Tristan Van Berkom
094588c1af * gladeui/glade-editor-property.[ch]: Privatized members of GladeEditorProperty.
* plugins/gtk+/*.c: updated all custom editors to used eprop accessors now
2011-01-04 17:34:37 +09:00
Tristan Van Berkom
c856737cec * Made GladeWidget internalize *everything* into a private data structure,
33 files changed, 1318 insertions(+), 1230 deletions(-)
2011-01-02 00:39:57 +09:00
Tristan Van Berkom
bc939d5ff6 * ALL SOURCE FILES: Removed 8-space indentation, reformatted all code with:
indent   \
	--braces-after-if-line   \
	--case-brace-indentation0   \
	--case-indentation2   \
	--braces-after-struct-decl-line   \
	--line-length80   --no-tabs  \
	--dont-line-up-parentheses   \
	--continuation-indentation4 \
	--continue-at-parentheses  \
	--honour-newlines  --tab-size8  --indent-level2 -nbbo
2010-12-30 20:19:58 +09:00
Tristan Van Berkom
0e4da586e9 * gladeui/glade-base-editor.c, gladeui/glade-editor-property.c,
gladeui/glade-editor-table.c, gladeui/glade-editor-table.h,
	plugins/gtk+/glade-activatable-editor.c, plugins/gtk+/glade-button-editor.c,
	plugins/gtk+/glade-entry-editor.c, plugins/gtk+/glade-image-editor.c,
	plugins/gtk+/glade-image-item-editor.c, plugins/gtk+/glade-label-editor.c,
	plugins/gtk+/glade-label-editor.h, plugins/gtk+/glade-tool-button-editor.c:
	Removed the GtkTables and use GtkGrid in property editors so that line wrapping
	is hieght-for-width.
2010-12-29 19:14:52 +09:00
Javier Jardón
f8bbea40f0 Use accessor functions instead direct access. Third patch
Substitute GTK_WIDGET_REALIZED() and GTK_WIDGET_MAPPED()

https://bugzilla.gnome.org/show_bug.cgi?id=594957
2010-02-11 01:14:01 +01:00
Javier Jardón
2d7e9abe72 Use accessor functions instead direct access.
GTK+ 2.17.10 is now the required version
I've used all the GTK+ 2.18.* api available, still missing:
GTK_WIDGET_UNSET_FLAGS (widget, GTK_TOPLEVEL);
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
GTK_WIDGET_REALIZED ()
GTK_WIDGET_MAPPED ()
GTK_VIEWPORT ()->bin_window
GTK_ENTRY ()->editing_canceled

https://bugzilla.gnome.org/show_bug.cgi?id=594957
2009-12-04 20:14:58 +01:00
Tristan Van Berkom
790e55c9e9 Rolling 3.6.1
* NEWS, configure.ac: Rolling 3.6.1
	
	* gladeui/glade-command.c: Fix win32 crasher (bug 575206) again (seems
	I missed it was klass->name that was null, fixed it so it would never
	be null, and added g_assert() where the crash was.

	* gladeui/glade-widget.c: Fix broken hash table maintenence in 
	glade_widget_remove_property() (bug 575885).


svn path=/trunk/; revision=2181
2009-04-06 16:39:24 +00:00
Tristan Van Berkom
5af63e5874 Added "commit" signal to allow custom editors to do command group/macros
* gladeui/glade-editor-property.c: Added "commit" signal to allow custom editors to do
	command group/macros serialized around property changes.

	* plugins/gtk+/glade-activatable-editor.[ch], plugins/gtk+/Makefile.am, po/POTFILES.in:
	New activatable editor to handle activatable properties in smart ways.

	* plugins/gtk+/glade-gtk.c: Made various properties insensitive when activatable
	properties are in effect.

	* plugins/gtk+/glade-tool-button-editor.c: Made tables insensitive when activatable
	properties are in effect.

	* plugins/gtk+/glade-button-editor.c: Allow use of use-stock choice while activatable
	properties are in effect.



svn path=/trunk/; revision=2103
2009-02-05 17:47:10 +00:00
Tristan Van Berkom
aa044addc8 Relicensed LGPL.
* gladeui/glade-name-context.[ch], gladeui/glade-editable.[ch]: Relicensed LGPL.

	* plugins/gtk+/glade-image-editor.c, plugins/gtk+/glade-image-item-editor.c,
	plugins/gtk+/glade-button-editor.c, plugins/gtk+/glade-label-editor.c,
	plugins/gtk+/glade-cell-renderer-editor.c, plugins/gtk+/glade-tool-button-editor.c,
	gladeui/glade-editor-table.c, gladeui/glade-base-editor.c: 
	Now editable portions of properties dont expand in tables, leaving more freedom 
	for labels to expand in tight spots, no more item_labels in radio buttons (they dont expand).

	* gladeui/glade-widget-adaptor.c: Fixed regression, now disabled classes are not
	reinstalled in subclasses.


svn path=/trunk/; revision=2065
2008-12-11 07:01:29 +00:00
Tristan Van Berkom
a1f85b847a Updated to reflect current temporary dual licensing scheme, package is to
* COPYING: Updated to reflect current temporary dual licensing scheme, package is to be LGPL, with
	code portions that are still marked as GPL until they can be relicensed, both licenses are included
	in the package already.

	* plugins/gtk+/glade-store-editor.h plugins/gtk+/glade-icon-factory-editor.h
	plugins/gtk+/glade-image-item-editor.c plugins/gtk+/glade-image-editor.c plugins/gtk+/glade-image-item-editor.h
	plugins/gtk+/glade-model-data.c plugins/gtk+/glade-icon-sources.c plugins/gtk+/glade-tool-button-editor.c
	plugins/gtk+/glade-image-editor.h plugins/gtk+/glade-model-data.h plugins/gtk+/glade-icon-sources.h
	plugins/gtk+/glade-tool-button-editor.h plugins/gtk+/glade-text-button.c plugins/gtk+/glade-button-editor.c
	plugins/gtk+/glade-column-types.c plugins/gtk+/glade-text-button.h plugins/gtk+/glade-label-editor.c
	plugins/gtk+/glade-column-types.h plugins/gtk+/glade-button-editor.h plugins/gtk+/glade-cell-renderer-editor.c
	plugins/gtk+/glade-label-editor.h plugins/gtk+/glade-cell-renderer-editor.h plugins/gtk+/glade-treeview-editor.c
	plugins/gtk+/glade-convert.c plugins/gtk+/glade-store-editor.c plugins/gtk+/glade-icon-factory-editor.c
	plugins/gtk+/glade-treeview-editor.h: First files to safely be completely relicensed under LGPL.


svn path=/trunk/; revision=2061
2008-12-09 19:14:55 +00:00
Tristan Van Berkom
e86dd963ab Reimplemented GtkMenuItem and subclasses from top to bottom
* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: 
	Reimplemented GtkMenuItem and subclasses from top to bottom

	* plugins/gtk+/glade-image-item-editor.[ch], plugins/gtk+/Makefile.am:
	New GtkImageMenuItem editor (that embeds the child image editor when needed)

	* gladeui/glade-command.[ch]: Added glade_command_[un]protect_widget()

	* gladeui/glade-widget.[ch]: Added glade_widget_[un]protect()
	protected widgets come with a message and cannot be manually deleted
	from the project.

	* plugins/gtk+/glade-image-editor.c, plugins/gtk+/glade-button-editor.c,
	plugins/gtk+/glade-tool-button-editor.c, gladeui/glade-editor-table.c:
	Fixed to:
	- not reffer to child editables in finalize
	- always removed external signals and weak references from finalize

	* gladeui/glade-base-editor.c: Fixed to allow properties expand/fill
	in both label and entry.


svn path=/trunk/; revision=2006
2008-10-28 05:07:30 +00:00
Tristan Van Berkom
72e543f080 - Reimplemented GtkImage from ground up. - Reimplemented stock on
* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: 
	- Reimplemented GtkImage from ground up.
	- Reimplemented stock on GtkButton.
	- Made toolbutton editables show up in the toolbar editor

	* gladeui/glade-base-editor.[ch]: Added glade_base_editor_add_editable()

	* plugins/gtk+/glade-button-editor.c, plugins/gtk+/glade-tool-bar-editor.c:
	Implement new Editable vfunc set_show_name()

	* gladeui/glade-editor-table.c, gladeui/glade-editable.c, gladeui/glade-editor.c:
	Added new vfunc set_show_name()

	* plugins/gtk+/Makefile.am, plugins/gtk+/glade-image-editor.[ch]: New editor
	widget for GtkImage

	* gladeui/glade-property-class.[ch]: string props can now be "stock" or "stock-icon"

	* gladeui/glade-widget-adaptor.c: No more stock enum eprops

	* gladeui/glade-editor-property.c: Handle string types with "stock" or "stock-icon"


svn path=/trunk/; revision=2004
2008-10-27 17:46:35 +00:00
Tristan Van Berkom
d8370a0b5b Ignore parent-changes on internal widgets (that causes problems when
* plugins/gtk+/glade-gtk.c: Ignore parent-changes on internal widgets (that
	causes problems when internal widgets get destroyed at project close time).

	* plugins/gtk+/glade-button-editor.c: Fixed custom/standard commands,
	now standard mode sets up a default label etc also.

	* gladeui/glade-project.c, gladeui/glade-property.c, gladeui/glade-widget.c,
	gladeui/glade-property-class.[ch], gladeui/glade-xml-utils.h:
	Removed hack for GtkToolButton:icon --> iconfactory (will do in glade-convert.c
	properly).


svn path=/trunk/; revision=2000
2008-10-25 18:15:48 +00:00
Tristan Van Berkom
23d26f5773 Added new #GladeEditable implementation for GtkButton general page.
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-button-editor.[ch]:
	Added new #GladeEditable implementation for GtkButton general page.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Completely reworked GtkButton, 
	much cleaner and less code now.



svn path=/trunk/; revision=1992
2008-10-24 08:47:12 +00:00