38 Commits

Author SHA1 Message Date
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
Tristan Van Berkom
a84bfad013 Merge branch 'master' into offscreen-gtk3
Conflicts:
	ChangeLog
	gladeui/Makefile.am
	gladeui/glade-widget.c
2010-12-22 18:07:18 +09:00
Tristan Van Berkom
45d30477f0 * gladeui/glade-app.[ch]: Added glade_app_queue_selection_changed()
* gladeui/glade-command.c: queue selection changes when widgets are added, this
	  avoids synchrounously poking the model when the selection changes various times
	  in a command sequence such as changing a menu item's type.

	* gladeui/glade-base-editor.c: Dont call glade_command_create/delete() directly
	  in change-type, keep delegating this work to build-child/delete-child signals.

	* gladeui/glade-widget.[ch]: Added glade_widget_is_ancestor()

	* gladeui/glade-utils.c: Change glade_util_find_iter_by_widget() to use
	  glade_widget_is_ancestor() and speed up searches a little this way.
2010-12-17 17:31:32 +09:00
Tristan Van Berkom
78cf00174e * gladeui/glade-base-editor.c: Fixed glade_base_editor_dispose to not access the signal
editor, it's automatically destroyed as being a child of the editor.

Conflicts:

	ChangeLog
2010-12-16 17:56:26 +09:00
Juan Pablo Ugarte
53797de6b5 Fixed compitation for gtk+-3.0 2010-09-19 17:24:04 -03:00
Tristan Van Berkom
003833ae17 Changes for GTK+ 3.0 cleanup
- Added convenience glade_utils_cairo_draw_[line/rectangle] to cover
   parts where the gdk drawing api is removed.
 - use gdk_pixbuf_new_from_xpm_data()/gdk_pixbuf_render_pixmap_and_mask()
   instead of the removed gdk_pixmap_new_from_xpm_d().
2010-08-16 20:02:53 -04:00
Johannes Schmid
3e9ef43262 signal-editor: As this derives from GtkVBox there is no need to call get_widget()
Also fixed files that calles get_widget() to just use the editor instead.
2010-05-14 18:00:51 -04:00
Tristan Van Berkom
a70df15164 * gladeui/glade-base-editor.c: Fixed to unref in ->dispose() and to unset the loaded widget
in the signal editor when doing so.
2010-03-31 22:00:10 -04:00
Tristan Van Berkom
69012ceaca 2010-03-28 Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
* gladeui/glade-base-editor.c: Avoid GtkEntry feedback loop with g_signal_handlers_block_by_func(),
	fixes bug 609612.
2010-03-28 19:29:23 -04:00
Philip Withnall
81572d93ce Bug 595838 — String fixes 2009-09-22 23:29:05 +01:00
Tristan Van Berkom
e6c028b11f OOps, really fixed the editable types in the base editor now. 2009-06-29 15:18:38 -04:00
Tristan Van Berkom
8dfa07101f * configure.ac, gladeui/glade-app.c: Added --enable-mac-bundle configure option to
special case runtime path lookups to bundling builds.

* gladeui/glade-popup.[ch]: Added glade_popup_is_popup_event () to check the correct
GdkEventButton state for a context menu (in a platform independant way).

* gladeui/glade-base-editor.c, gladeui/glade-editor-property.c, gladeui/glade-palette-item.c,
gladeui/glade-placeholder.c, gladeui/glade-widget.c, gladeui/glade-inspector.c: Use new
popup function to detect whether to show a context menu or not (bug 587128).

* gladeui/glade-base-editor.c: Fixed crashes with editable treeview column types (bug 586715).
2009-06-29 14:57:28 -04:00
Tristan Van Berkom
3b8b7e8520 * gladeui/glade-base-editor.c, gladeui/glade-inspector.c, gladeui/glade-palette-item.c,
gladeui/glade-placeholder.c, gladeui/glade-widget.c: Made Glade barely usable on the Mac,
	now all popup menus will popup on (GDK_MOD[1-3]_MASK && event->button == 1) as well as
	on (event->button == 3) since Mac is missing the right mouse button and ports X server
	setup doesnt seem to emulate it.

	* gladeui/glade-property-class.c: Add me to authors.
2009-05-27 11:30:50 -04:00
Juan Pablo Ugarte
e28fd448e1 * gladeui/glade-base-editor.c: fixed bug in glade_base_editor_add_default_properties()
It was setting the wrong type model.

* gladeui/glade-widget-adaptor.c: use parent icon if none is found for the class
  This helps a lot for custom composite widget.
2009-05-17 17:26:24 -03:00
Tristan Van Berkom
7313fc9a46 Added some important fixes
svn path=/trunk/; revision=2076
2009-01-05 20:07:59 +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
0c97337671 Bumping gtk+ required version to 2.14
* configure.ac: Bumping gtk+ required version to 2.14

	* gladeui/glade-xml-utils.c, gladeui/glade-widget-adaptor.[ch],
	gladeui/glade-property-class.[ch], gladeui/glade-project.c: Added support
	for "builder-since" versioning (since builder supported this property/widget).

	* plugins/gtk+/gtk+.xml.in: Marked appropriate properties and objects "builder-since"
	and brought up to date new properties and signals introduced in 2.14.

	* gladeui/glade-base-editor.c: Plugged resource leak in finalize().


svn path=/trunk/; revision=2060
2008-12-09 18:46:04 +00:00
Tristan Van Berkom
6a12e1ac7b Now include signal editor outside notebook, update signal editor on page
* gladeui/glade-base-editor.c: Now include signal editor outside notebook, update signal
	editor on page changes.


svn path=/trunk/; revision=2054
2008-11-25 21:29:23 +00:00
Tristan Van Berkom
a10762dcfa Now add/remove parentless widget props from the project in
* gladeui/glade-command.c: Now add/remove parentless widget props from the project in 
	  command_add/remove.

	* gladeui/glade-widget.c: 
	  - glade_widget_dup_properties/glade_widget_copy_properties take 2 new args, whether copy
	    parentless widget properties or not, and whether to copy them exactly or not.
	  - added glade_widget_get_parentless_reffed_widgets() to return a list of reffed parentless
	    widgets.


svn path=/trunk/; revision=2045
2008-11-23 23:49:53 +00:00
Tristan Van Berkom
61e3f47c32 added niceness
svn path=/trunk/; revision=2042
2008-11-22 22:34:22 +00:00
Tristan Van Berkom
6d8d9fadf6 New editor to group the treeview and model together in the base editor
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-treeview-editor.[ch]: New editor to group
	  the treeview and model together in the base editor treeview editor

	* gladeui/glade-editor-table.c: 
	  - Load propertes up a realize time (some sizes need negotiation when loaded editables
	    are going into dialogs that are not yet on screen).


svn path=/trunk/; revision=2041
2008-11-22 22:17:16 +00:00
Tristan Van Berkom
735576a9c2 Fixed a warning hiding a never built label
* gladeui/glade-editor-table.c: Fixed a warning hiding a never built label

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: 
	  - First itteration on the treeview editor, removed annoying actions for column/cell
	    hierarchy and do it all in the editor, added position packing property to treeview
	    column for this (treeview column still implemented generically as a cell layout).


svn path=/trunk/; revision=2040
2008-11-22 20:17:17 +00:00
Tristan Van Berkom
d4a36f7c56 - Removed apis to add popups, now they are autogenerated - Added
* gladeui/glade-base-editor.c: 
	  - Removed apis to add popups, now they are autogenerated
	  - Added glade_base_editor_append_types(), glade_base_editor_new() now
	    only adds types supported by the container object, use _append_types() to
	    define hierarcic type relations for children.

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Now the toolbar editor
	  can add menus and edit menus inside the gtkmenutoolbutton (fixed bug 429438).


svn path=/trunk/; revision=2039
2008-11-22 18:35:11 +00:00
Tristan Van Berkom
8d9a6b1b6a added glade_utils_hijack_key_press ()
* gladeui/glade-utils.c: added glade_utils_hijack_key_press ()

	* src/glade-window.c: Moved hijack_key_press to glade_utils

	* gladeui/glade-editor.[ch]:
	  - Added "widget" property
	  - added glade_editor_dialog_for_widget()

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added "Edit Separately" action



svn path=/trunk/; revision=2030
2008-11-15 19:54:46 +00:00
Tristan Van Berkom
4020dd82f2 Update glade-app accel group.
* src/glade-window.c: Update glade-app accel group.

	* gladeui/glade-project.[ch], gladeui/glade-app.c: Remove accel group notion from projects

	* gladeui/glade-base-editor.c:
	  - Use global accel group (with keypress editor hijack in place)
	  - No longer modal
	  - added "container" property on the editor
	  - dedicated dialogs self destruct if their container changes


svn path=/trunk/; revision=2029
2008-11-15 18:54:53 +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
Vincent Geddes
87adcc7933 Don't include the private header file `glade-marshallers.h'. Rather
* gladeui/glade-base-editor.h: Don't include the
	  private header file `glade-marshallers.h'. Rather
          include it `glade-base-editor.c'. 

svn path=/trunk/; revision=1868
2008-08-17 13:23:33 +00:00
Tristan Van Berkom
c43aaea090 Run gtkdocize with --flavour=no-tmpl
* autogen.sh: Run gtkdocize with --flavour=no-tmpl
	
	* configure.ac: Require gtk-doc 1.9 and bump to 3.5.0 dev version.
	
	* doc/gladeui-overrides.txt, doc/children.sgml, doc/tmpl/*: Removed unneeded.

	* doc/gladeui-docs.sgml, doc/widgetclasses.sgml,
	doc/catalogintro.sgml, doc/Makefile.am: Mega docs update, added new
	files and completely rediscribed the catalog in its new form.

	* gladeui/glade-design-view.c, gladeui/glade-widget.c, 
	gladeui/glade-widget-adaptor.c, gladeui/glade-command.c,
	gladeui/glade-widget-adaptor.h, gladeui/glade-base-editor.c,
	gladeui/glade-widget-action.c, gladeui/glade-xml-utils.c,
	gladeui/glade-utils.c, gladeui/glade-catalog.c, gladeui/glade-property.c,
	gladeui/glade-project.c: Added some description statements to newly 
	documented files, fixed some warnings in other sources.

M    ChangeLog
M    configure.ac
M    doc/gladeui-docs.sgml
M    doc/widgetclasses.sgml
M    doc/catalogintro.sgml
D    doc/gladeui-overrides.txt
M    doc/Makefile.am
D    doc/children.sgml
D    doc/tmpl
M    doc/gladeui-sections.txt
M    doc/gladeui.types
M    doc/properties.sgml
M    gladeui/glade-design-view.c
M    gladeui/glade-widget.c
M    gladeui/glade-widget-adaptor.c
M    gladeui/glade-command.c
M    gladeui/glade-widget-adaptor.h
M    gladeui/glade-base-editor.c
M    gladeui/glade-widget-action.c
M    gladeui/glade-xml-utils.c
M    gladeui/glade-utils.c
M    gladeui/glade-catalog.c
M    gladeui/glade-property.c
M    gladeui/glade-project.c
M    autogen.sh

svn path=/trunk/; revision=1775
2008-04-07 12:23:11 +00:00
Tristan Van Berkom
64bb8141c6 merging builder branch into trunk
A    plugins/gtk+/glade-keysyms.c
M    plugins/gtk+/glade-gtk.c
M    plugins/gtk+/gtk+.xml.in
A    plugins/gtk+/glade-accels.c
M    plugins/gtk+/Makefile.am
A    plugins/gtk+/glade-accels.h
M    ChangeLog
M    gladeui/glade-editor.c
M    gladeui/glade-editor-property.c
M    gladeui/glade-editor-property.h
M    gladeui/glade-widget.c
M    gladeui/glade-widget.h
M    gladeui/glade-widget-adaptor.c
M    gladeui/glade-command.c
M    gladeui/glade-widget-adaptor.h
M    gladeui/glade-parser.c
M    gladeui/glade-xml-utils.c
M    gladeui/glade-base-editor.c
M    gladeui/glade-utils.c
D    gladeui/glade-parser.h
M    gladeui/glade-signal-editor.c
M    gladeui/glade-xml-utils.h
D    gladeui/glade-keysyms.c
M    gladeui/glade-property.c
M    gladeui/glade-property-class.c
M    gladeui/glade-property.h
M    gladeui/glade-builtins.c
M    gladeui/glade-property-class.h
M    gladeui/glade-builtins.h
M    gladeui/glade-project.c
M    gladeui/glade-signal.c
M    gladeui/Makefile.am
M    gladeui/glade-signal.h

svn path=/trunk/; revision=1764
2008-04-03 19:52:40 +00:00
Tristan Van Berkom
55c0849571 Made sure idle handlers werent updating treeviews after the object is
* gladeui/glade-base-editor.c: Made sure idle handlers werent
	  updating treeviews after the object is destroyed (also bug 506713).


svn path=/trunk/; revision=1711
2008-03-09 21:09:07 +00:00
Christian Persch
c651fba1c6 Port to gtk 2.12 tooltips API. Bug #500947. Remove the unnecessary event
2007-12-19  Christian Persch  <chpe@gnome.org>

	* configure.ac:
	* gladeui/glade-app.c: (glade_app_refresh_undo_redo_button):
	* gladeui/glade-base-editor.c: (glade_base_editor_add_properties):
	* gladeui/glade-editor-property.c:
	(glade_editor_property_tooltip_cb),
	(glade_editor_property_sensitivity_cb),
	(glade_editor_property_create_info_button),
	(glade_editor_property_constructor),
	(glade_editor_property_finalize),
	(glade_editor_property_load_common),
	(glade_eprop_text_show_i18n_dialog),
	(glade_eprop_adjustment_table_add_label):
	* gladeui/glade-editor-property.h:
	* gladeui/glade-editor.c: (glade_editor_notebook_page),
	(glade_editor_create_info_button),
	(glade_editor_create_reset_button),
	(glade_editor_table_append_item):
	* gladeui/glade-palette.c: (glade_palette_dispose),
	(glade_palette_new_item), (glade_palette_new_item_group),
	(glade_palette_update_appearance), (glade_palette_init):
	* gladeui/glade-project.c: (glade_project_dispose),
	(glade_project_init):
	* gladeui/glade-project.h:
	* gladeui/glade-property-class.c:
	(glade_property_class_new_from_spec):
	* gladeui/glade-utils.c:
	* gladeui/glade-widget.c: (expose_draw_selection):
	* plugins/gtk+/glade-gtk.c: (glade_gtk_widget_set_property),
	(glade_gtk_widget_get_property):
	* src/glade-window.c: (format_project_list_item_tooltip),
	(refresh_projects_list_menu), (glade_window_init): Port to gtk 2.12
	tooltips API. Bug #500947. Remove the unnecessary event boxes on the property
	labels, part of bug #490157.

svn path=/trunk/; revision=1660
2007-12-19 13:46:35 +00:00
Tristan Van Berkom
e725eccca3 glade_editor_property_new_from_widget() added "packing" argument.
* gladeui/glade-editor-property.[ch]: glade_editor_property_new_from_widget() added
	  "packing" argument.

	* gladeui/glade-base-editor.[ch]: Fixed va_start() without va_end() in
	  glade_base_editor_add_properties(), also added "packing" argument to
	  glade_base_editor_add_properties().

	* plugins/gtk+/glade-gtk.c: Added "expand" and "homogeneous" packing properties
	  to toolbar children in the toolbar editor (bug 429409).


svn path=/trunk/; revision=1539
2007-08-07 17:03:52 +00:00
Juan Pablo Ugarte
2d57d53ffc removed every extra documentation, we keep them empty just because
* doc/tmpl/*.sgml: removed every extra documentation, we keep them empty just
  because otherwise the build fails.

* doc/gladeui-docs.sgml, doc/gladeui-sections.txt, doc/gladeui.types: updated
  (GladeWidgetClass  replaced by GladeWidgetAdaptor)

* gladeui/glade-editor.c, gladeui/glade-editor-property.c, gladeui/glade-parameter.c,
  gladeui/glade-widget.c, gladeui/glade-fixed.c, gladeui/glade-clipboard.c,
  gladeui/glade-inspector.[ch], gladeui/glade-widget-adaptor.[ch], gladeui/glade-command.c,
  gladeui/glade-command.h, gladeui/glade-base-editor.[ch], gladeui/glade-palette.[ch],
  gladeui/glade-utils.c, gladeui/glade-signal-editor.c, gladeui/glade-app.c,
  gladeui/glade-placeholder.c, gladeui/glade-property.c, gladeui/glade-property-class.c,
  gladeui/glade-project.c, gladeui/glade-clipboard-view.c:
  Added section's short and long description. (moved from tmpl)


svn path=/trunk/; revision=1523
2007-07-30 19:56:51 +00:00
Juan Pablo Ugarte
8cb9023d45 fixed bug present in 64bit archs changed G_TYPE_UINT with G_TYPE_GTYPE in
* gladeui/glade-base-editor.c: fixed bug present in 64bit archs
  changed G_TYPE_UINT with G_TYPE_GTYPE in glade_base_editor_init()

svn path=/trunk/; revision=1067
2007-02-02 21:44:56 +00:00
Tristan Van Berkom
1934d006ed Set project properly in glade_command_remove() (this fixes undo/redo of
* gladeui/glade-command.c: Set project properly in glade_command_remove()
	  (this fixes undo/redo of add/remove commands in the menueditor... along
	  with the following fixes).

	* gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.h: 
	  Added GWA_USE_PLACEHOLDERS(), a boolean on the GWA that is loaded 
	  from the catalog.

	* gladeui/glade-utils.[ch]: Removed glade_util_[any_]container_relation.

	* gladeui/glade-widget.[ch]: Added glade_widget_placeholder_relation

	* gladeui/glade-app.c, gladeui/glade-fixed.c: Adjusted callers for new
	  glade-widget api.

	* gladeui/glade-fixed.[ch]: Removed the "use-placehodlers" property
	  since it is now redundant with the new GWA_USE_PLACEHOLDERS (this
	  simplifies things a little).

	* gladeui/glade-binding.c: Fixed obnoxious startup errors (bug 399178),
	  glade_binding_get_all(), use g_list_prepend()/g_list_reverse() instead
	  of g_list_append() to build a list.

	* gladeui/glade-base-editor.c: Use the right adaptor for gwa_get_children
	  in glade_base_editor_change_type () (was using adaptor for the destination
	  type).
	
	* plugins/gtk/glade-gtk.c: Remove use of "use-placeholders" property
	  on GladeFixed objects.

	* plugins/gtk/gtk+.xml.in: Setup the "use-placeholders" attribute properly
	  (TRUE on GtkContainer, FALSE on GtkMenuShell, GtkMenuItem, GtkToolBar,
	  GtkFixed, GtkLayout).


svn path=/trunk/; revision=1057
2007-01-27 20:15:57 +00:00
Tristan Van Berkom
a769fa158c fixed conditionally building gnome & python.
* Makefile.am, configure.ac, plugins/Makefile.am, bindings/Makefile.am:
	  fixed conditionally building gnome & python.

	* data/libgladeui-1.0.pc.in: Renamed to gladeui-1.0.pc.in.
	  Updated for change in location of header files.

	* gladeui/glade.h, gladeui/glade-xml-utils.c: Cleaned up 'glade.h'.     
	  - Moved GLADE_TAG_* defines to glade-xml-utils.h.
	  - Nuked GLADE_GENERIC_BORDER_WIDTH.

	* gladeui/*.h, plugins/gtk+/glade-gtk.[ch],
	  plugins/gnome/glade-gnome.ch, bindings/python/*.[ch]:
	  Changed header files location for libgladeui. 	


svn path=/trunk/; revision=1054
2007-01-25 19:29:08 +00:00
Tristan Van Berkom
eb33dd583d Reorganised package structure, moved a lot of files and directories.
* Reorganised package structure, moved a lot of files
	  and directories. Modified the Makefile.am in most directories.

	* po/POTFILES.in, po/POTFILES.skip: Update for reorganisation.

	* configure.ac: Add files to AC_CONFIG_FILES. Change AC_CONFIG_SRCDIR.


svn path=/trunk/; revision=1050
2007-01-23 19:49:04 +00:00