60 Commits

Author SHA1 Message Date
Juan Pablo Ugarte
0e0bf998f2 Implemented GladeSignalEditor::callback-suggestions signal
(based on patch by Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com >)
Closes bug #667570 "Implement callback name suggestion on glade-signal-editor"

Added GladeSignalEditor:widget missing property
Added new accumulator _glade_strv_handled_accumulator()
Added new marshall BOXED:OBJECT
2012-03-19 19:34:51 -03:00
Marco Diego Aurélio Mesquita
3e3f341a1c Fixed bug 669272 "Emit a signal to notify signal activation" 2012-02-17 18:22:33 -03:00
Tristan Van Berkom
05191e1c37 * gladeui/glade-command.[ch]: Removed glade_command_set_naming_policy().
* gladeui/glade-project.[ch]: Removed naming policy, object ids are always unique.

	* gladeui/glade-editor-property.c, glade-property-class.[ch], gladeui/glade-property.c,
	gladeui/glade-signal-editor.c, gladeui/glade-utils.[ch], gladeui/glade-widget.c,
	gladeui/glade-xml-utils.h, plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-icon-sources.c,
	plugins/gtk+/glade-model-data.c: Removed 'widget' argument from
	glade_property_class_make_gvalue_from_string() and from glade_utils_value_from_string() since
	you never need a common ancestor to search a widget by name anymore.
2011-01-22 17:51:31 +09:00
Johannes Schmid
a21da01479 gladeui: Finish up anjuta/glade dnd integration 2011-01-21 16:27:39 +01:00
Tristan Van Berkom
ffd323a79d * gladeui/glade-signal-model.c: Watch the "support-changed" signal on GladeWidget and
update support warnings on dummy rows as well as emit "row-changed" for all rows

	* gladeui/glade-signal-editor.c: Left align the warning icon and expand the first
	  row of the signal tree when loading a widget.
2011-01-13 18:21:07 +09:00
Tristan Van Berkom
9115a2e3fe Cell alignments in signal editor 2011-01-12 17:34:26 +09:00
Tristan Van Berkom
5a2aa19bfa * gladeui/glade-signal-editor.c:
- Fixed <click here> column to always show up italic insensitive when
	    no object is selected.
	  - Fixed the <type here> text to come back and not add any signal when
	    the first signal of a type is added with a NULL handler
	  - Fixed devhelp icon visibility to not show when !glade_util_have_devhelp()
2011-01-10 18:04:07 +09:00
Johannes Schmid
8b5281f516 gladeui: Reduce signal-model columns, add cell_data_funcs instead
Fixes a lot of drawing glitches in the tree view.
2011-01-09 19:05:48 +01:00
Johannes Schmid
de236c5b72 gladeui: Implemented devhelp column in signal-editor, fixed some bugs. 2011-01-09 14:42:41 +01:00
Johannes Schmid
937a5c800d gladeui: Adapt signal-editor to tristan's wishes
* Handler column: Automatically remove "Type here" when typing starts
* Userdata column: Use object selection dialog and add proper focus handling
2011-01-09 12:54:19 +01:00
Johannes Schmid
dab54af2ba glade-signal-editor: Adapt to GladeSignal changes 2011-01-07 19:02:28 +01:00
Johannes Schmid
097de9b14d glade-signal-editor: Adapt to tristan's UI wishes 2011-01-07 12:56:06 +01:00
Johannes Schmid
eaa7e30690 gladeui: Adapter to GladeSignal GObjectification 2011-01-06 12:58:31 +01:00
Johannes Schmid
c0c8184fe3 gladeui: Implement version warning and tooltips in signal-model 2011-01-05 12:41:13 +01:00
Johannes Schmid
e00304af2c gladeui: Fix changes due to member sealing 2011-01-05 11:13:56 +01:00
Johannes Schmid
02c435f354 Merge branch 'master' into signal-tree-model
Conflicts:
	gladeui/Makefile.am
	gladeui/glade-app.c
	gladeui/glade-app.h
	gladeui/glade-editor.c
	gladeui/glade-signal-editor.c
	gladeui/glade-signal-editor.h
	gladeui/glade-signal.h
	gladeui/glade-widget.c
	gladeui/glade-widget.h
2011-01-05 10:19:38 +01:00
Tristan Van Berkom
cd73073003 * gladeui/glade-signal.[ch], gladeui/glade-project.c, gladeui/glade-widget.c,
gladeui/glade-signal-editor.c, gladeui/glade-command.c: Made GladeSignal an
	opaque structure with accessors.
2011-01-05 16:47:49 +09:00
Tristan Van Berkom
a3877e63e4 * gladeui/Makefile.am, gladeui/glade-signal-class.[ch], gladeui/glade-widget-adaptor.c,
gladeui/glade-signal-editor.c, plugins/gtk+/glade-accels.c:

	Added glade-signal-class.[ch] as an opaque type.
2011-01-05 16:11:37 +09:00
Tristan Van Berkom
cee7207823 * gladeui/glade-app.[ch], gladeui/glade-command.c, gladeui/glade-editor.[ch],
gladeui/glade-popup.c, gladeui/glade-project.c, gladeui/glade-signal-editor.c,
	gladeui/glade-widget-adaptor.c, src/glade-window.c, src/main.c:
	- Removed glade_app_get_editor(), Now the editor is not overly-refreshed by the
	  core and editors can be created at will, the core doesnt need to hold on to one.
	- Also, "gtk-doc-search" signal has been moved from the GladeEditor to the GladeApp.
2011-01-04 03:27:36 +09:00
Tristan Van Berkom
cc8dfcfc4b * Made GladeWidgetAdaptor internalize *everything* into a private data structure,
21 files changed, 694 insertions(+), 670 deletions(-)
2011-01-03 01:11:01 +09:00
Tristan Van Berkom
c97b1a3461 * gladeui/glade-project.c: Export glade_project_verify_property() to allow verification of
a single property instead of the whole widget when a property changes.
2011-01-02 15:18:03 +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
Johannes Schmid
5b8ab44c83 gladeui: Fix state of checkitems in signal-editor 2010-12-31 00:00:54 +01:00
Johannes Schmid
ba341982c2 gladeui: Initially port of signal-editor drag & drop to new drawing API 2010-12-30 22:24:20 +01:00
Johannes Schmid
75bf078ff3 Merge branch 'master' into signal-tree-model
Conflicts:
	gladeui/glade-app.c
	gladeui/glade-base-editor.c
	gladeui/glade-editor.c
	gladeui/glade-project.c
	gladeui/glade-signal-editor.c
	gladeui/glade-signal.c
	gladeui/glade-widget.c
2010-12-30 14:32:02 +01: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
ecabb87545 * Whole tree updated to remove all notion of project conversions and dual project formats,
no more libglade.
2010-12-30 01:15:19 +09:00
Johannes Schmid
a4abbf6fea Make GladeSignalModel a deligate of GladeWidget 2010-12-16 12:45:12 +01:00
Johannes Schmid
03f6fb6304 signal-editor: Add drag and drop animation 2010-08-01 16:21:10 +02:00
Johannes Schmid
5299bcfdc6 signal-editor: Implement basic drag and drop support 2010-07-25 13:02:02 +02:00
Johannes Schmid
e51ee00b7e signal-editor: Update model correctly when adding/changing/removing
Show widgets with associated signals in bold when there are handlers defined.
2010-07-09 22:48:42 +02:00
Johannes Schmid
fc84a8989f signal-editor, signal-model: Added adding and changing of signal handlers
Also fixed the iter->stamp stuff to change correctly when an iterator becomes invalid.
2010-07-08 21:03:39 +02:00
Johannes Schmid
5da94940c9 signal-model: Implemented signal model inside GladeSignalEditor
This is the initial implementation, it is able to show all signals and also shows a dummy
signal handler to be able to add new handlers to a signal.
2010-06-29 21:41:03 +02:00
Johannes Schmid
ea640a6a71 Merge branch 'master' into signal-tree-model
Conflicts:
	gladeui/Makefile.am
2010-06-06 22:35:46 +02:00
Johannes Schmid
b9962332ff signal-model: test code 2010-06-06 22:34:43 +02:00
Tristan Van Berkom
473df94ba6 Added ChangeLog entry for Johannes's work, fixed some compile warnings. 2010-05-14 18:00:52 -04:00
Johannes Schmid
66e2d57348 Allow destroying (and recreation) of GladeApp object
That is what happens when a glade file is loaded in anjuta, then closes and opened again.
Currently, we hold an extra reference on GladeApp to avoid destroying it but that's not clean
of course and leaves a big mem leak.
We cannot free the catalogs though as they register GTypes that we cannot unregister. Thus,
we have to keep them in memory once they were loaded.
2010-05-14 18:00:51 -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
Johannes Schmid
4c51cd70f7 signal-editor: move column-enum from .h to .c as it is really a private thing. 2010-05-14 18:00:51 -04:00
Johannes Schmid
76add087ec signal-editor: clean-up public members and remove silly signals all over.
If there is a need for these signals it should be done in another way.
2010-05-14 18:00:51 -04:00
Javier Jardón
95bf1f13ce Do not show the event box in signal editor 2010-05-03 19:48:49 +02:00
Tristan Van Berkom
b5752c7d5d * gladeui/glade-signal-editor.c: Save some space in treeview column headers. 2010-03-31 22:08:13 -04:00
Tristan Van Berkom
fa97bcf995 * src/Makefile.am, src/glade-close-button.[ch]: Using Paolo Borelli's close button code for notebook
tab close buttons.

	* src/glade-window.c:
	  - Added option to disable toolbar in View menu and session data (bug 586194).
	  - Added option to show notebook tabs for open projects also in the View menu and session data.

	* gladeui/glade-palette.c: Made "both" mode use text horizontally again, still get alot of unwanted
	  ellipsize here.

	* gladeui/glade-project.c: Added the targets-changed signal to refresh views with data about
	  target project versions (notebook tabs).
2010-03-31 21:46:38 -04:00
Tristan Van Berkom
680b92511d * gladeui/glade-signal-editor.c: Fixed access to signal name in object dialog hander (was a crasher).
* gladeui/glade-widget.c: Fixed GladeWidget to update support warnings on newly added signals.
2010-03-30 11:48:52 -04:00
Tristan Van Berkom
2cf0d26f39 * gladeui/glade-signal-editor.c:
- Reordered support icon to come before the signal name and let the column be user
	    resizable along with the others (non-resizable unellipzised signal name columns expand over time)
2010-03-29 16:46:25 -04:00
Tristan Van Berkom
5916da88b5 * gladeui/glade-editor-property.[ch]:
- Fixed an assertion and page-size != 0 for adjustment properties in libglade mode

	* gladeui/glade-signal-editor.c:
	  - Dont show swapped column in libglade mode
2010-03-29 16:32:07 -04:00
Tristan Van Berkom
845366bc4e * gladeui/glade-editor-property.[ch]:
- Give object dialogs a bigger default size and hide the column headers

	* gladeui/glade-signal-editor.c:
	  - Now show an icon and tooltip in rows for signals that are only
	    supported in the future, refresh them when support changes.

	* gladeui/glade-widget-adaptor.h, gladeui/glade-property-class.h: Added some version checking macros.

	* gladeui/glade-signal.[ch]: Add support warning meta data to signals

	* gladeui/glade-project.c:
	  - Simplify code with new version checking macros
	  - Do the verify on signals for widgets as well as project warnings
	    (update the signals a verify time).

	* gladeui/glade-widget.c: GladeWidget takes a new "support-changed" to broadcast support changes
	  on the widget.

	* gladeui/glade-signal-editor.c:
2010-03-29 16:05:00 -04:00
Tristan Van Berkom
1c8096a39d 2010-03-29 Tristan Van Berkom <tvb@gnome.org>
* gladeui/glade-editor-property.[ch]: Added glade_editor_property_show_object_dialog()

	* gladeui/glade-signal-editor.c:
	  - Use glade_editor_property_show_object_dialog() to select project objects for signal user data.
	  - Added tooltips for the column headers
2010-03-29 03:56:52 -04:00
Tristan Van Berkom
c4dc31af6f * plugins/gtk+/glade-model-data.c, plugins/gtk+/glade-attributes.c: Use GladeCellRendererIcon
instead of GladeCellRendererButton which was more convoluted (included only an icon when editing).

	* plugins/gtk+/Makefile.am: Removed glade-cell-renderer-button.[ch]
2010-03-29 00:04:13 -04:00
Tristan Van Berkom
65cc1458a9 2010-03-28 Tristan Van Berkom <tvb@gnome.org>
* gladeui/Makefile.am, gladeui/glade-cell-renderer-icon.[ch]: Added activatable pixbuf renderer

	* gladeui/glade-signal-editor.c: Use new activatable pixbuf renderer to render a devhelp icon
	  and fire signal contextual devhelp searches.
2010-03-28 20:52:42 -04:00