1 2007-08-31 Johannes Schmid,,, <jhs@idefix>
3 reviewed by: <delete if not using a buddy>
8 * egg-submenu-action.h:
11 2007-03-05 Johannes Schmid,,, <jhs@idefix>
13 reviewed by: <delete if not using a buddy>
17 2007-03-05 Johannes Schmid,,, <jhs@idefix>
19 reviewed by: <delete if not using a buddy>
23 2003-09-06 Matthias Clasen <maclas@gmx.de>
25 * egg-action.c (egg_action_connect_proxy): Disconnect from the
26 old action, not the new one. (Fix by David Hampton)
28 Sun Jun 29 20:11:41 2003 Soeren Sandmann <sandmann@daimi.au.dk>
30 * Makefile.am: Remove GTK_DISABLE_DEPRECATED to make it compile
31 with the new toolbar added to Gtk+
33 Fri May 9 17:08:07 2003 Soeren Sandmann <sandmann@daimi.au.dk>
35 * egg-action.c (egg_action_create_menu_proxy): update for new
38 Sun Apr 20 16:04:28 2003 Soeren Sandmann <sandmann@daimi.au.dk>
40 * egg-menu-merge.c (find_toolbar_position): update for EggToolbar
41 changes (use egg_toolbar_get_item_index() instead of
42 egg_toolbar_get_tool_items())
44 Sat Apr 5 14:43:04 2003 Soeren Sandmann <sandmann@daimi.au.dk>
46 * egg-markup.c (start_element_handler):
47 s/egg_toolbar_insert_tool_item/egg_toolbar_insert/
49 * egg-menu-merge.c (update_node): ditto
51 2003-01-11 Johan Dahlin <jdahlin@async.com.br>
53 * egg-menu-merge.c (find_toolbar_position): Use
54 egg_toolbar_get_tool_items, instead of toolbar->items.
56 * egg-menu-merge.c, egg-markup.c: Replace all
57 egg_toolbar_insert_item with egg_toolbar_insert_tool_item.
59 2002-10-05 Richard Hult <rhult@codefactory.se>
61 * egg-menu-merge.c (update_node): Set the accel group on the menu,
64 * test-merge.c (main): Add the merge object's accel group to the
67 2002-09-14 Matthias Clasen <maclas@gmx.de>
69 * egg-radio-action.c (egg_radio_action_activate): fix the
70 mirroring of state between action and proxy when activating
73 2002-09-07 James Henstridge <james@daa.com.au>
75 * egg-menu-merge.c (start_element_handler): set parse state
76 correctly when we hit a separator.
78 * egg-action.c (connect_proxy): override
79 EggToolItem::create_menu_proxy to just directly create a proxy
82 * egg-menu-merge.c (start_element_handler): create the correct
83 type of placeholder node.
84 (find_toolbar_position): new function based on
85 find_menu_position() that does the same for EggToolbars.
86 (update_node): handle tool items closer to how menu items are handled.
88 * egg-menu-merge.h: split PLACEHOLDER into menu placeholder and
89 toolbar placeholder. They may be represented the same in the XML,
90 but they need to be handled differently.
92 2002-09-06 James Henstridge <james@daa.com.au>
94 * egg-markup.c (start_element_handler): switch to EggToolbar.
96 * test-actions.c (toolbar_style): switch to EggToolbar.
98 * egg-toggle-action.c (egg_toggle_action_class_init): tool button
99 type is now EggToggleToolButton.
100 (egg_toggle_action_real_toggled): handle toggle tool buttons.
101 (connect_proxy): and here.
103 * egg-action.c (egg_action_class_init): tool button type is
104 EggToolButton, rather than GtkButton.
105 (create_tool_item): just use g_object_new() to create the tool
107 (connect_proxy): add support for synching with EggToolButton.
109 * Makefile.am (libegg_menu_la_LIBADD): require eggtoolbar.
111 2002-06-08 James Henstridge <james@daa.com.au>
113 * *.c: add some API documentation comments.
115 * egg-action.c (egg_action_set_sensitive): remove function --
116 people should set the "sensitive" property on the action instead.
118 2002-05-29 James Henstridge <james@daa.com.au>
120 * egg-accel-dialog.c (egg_accel_dialog_init): set sort column ids
121 on the GtkTreeViewColumns in the accel dialog.
123 2002-05-28 James Henstridge <james@daa.com.au>
125 * test-merge.c (iter_compare_func): sort the list of actions, and
126 allow changing the sort order by the action name.
128 2002-05-27 James Henstridge <james@daa.com.au>
130 * merge-1.ui: fix up ending tag.
132 * test-merge.c (entries): make the quit menu item actually quit ...
134 * egg-menu-merge.c (cleanup): on error parsing, remove the UI
135 reference from the merge object.
137 * test-merge.c (toggle_merge): pay attention to errors generated
138 by the egg_menu_merge_add_ui_from_file() function.
140 2002-05-26 James Henstridge <james@daa.com.au>
142 * test-merge.c (main): change layout of test program a bit.
144 * egg-menu-merge.c (start_element_handler): add the UI reference
145 to the correct node when we see "toolitem" elements.
147 * merge-1.ui: add a <dockitem> entry.
149 * egg-menu-merge.c (update_node): get the action name from the top
151 (update_node): ref the action in the EggMenuMergeNode.
152 (update_node): add code to create Toolbar widget.
154 2002-05-26 Anders Carlsson <andersca@gnu.org>
156 * egg-action-group.c: (add_single_action),
157 (egg_action_group_list_actions):
158 * egg-action-group.h:
159 Add egg_action_group_list_action which returns a GList
162 * test-merge.c: (set_name_func), (set_sensitive_func),
163 (set_visible_func), (sensitivity_toggled), (visibility_toggled),
164 (create_tree_view), (main):
165 Add a tree view with all the actions and the ability to toggle
166 visibility and sensitivity of action proxies.
168 2002-05-26 James Henstridge <james@daa.com.au>
170 * test-actions.c (show_accel_dialog): reenable the action that
171 displays the accel dialog.
173 * egg-accel-dialog.[ch]: add accel dialog.
175 * egg-action.c (egg_action_connect_proxy): add some checks, and if
176 the proxy is already connected to an action, then disconnect it
178 (egg_action_disconnect_proxy): add checks, including checking if
179 the proxy is actually associated with this action.
181 2002-05-25 James Henstridge <james@daa.com.au>
183 * egg-menu-merge.c (egg_menu_merge_init): create a merge_id during
184 init, and reference the "Root" and "Root/popups" nodes.
186 2002-05-24 James Henstridge <james@daa.com.au>
188 * test-merge.c (main): changes to demonstrate demerging.
190 * egg-menu-merge.c (start_element_handler): handle separators
191 properly when reading UI files.
192 (update_node): show separators in the update ...
194 * merge-3.ui: put the "Test" menu inside the placeholder, to
195 demonstrate the placeholder.
197 * egg-menu-merge.c (get_child_node): do a strlen() test before
198 strncmp(), so we match the strings correctly.
200 * test-merge.c: spell StockHelpMenu right.
202 * egg-menu-merge.c (update_node): add some code for the handling
203 menu items, placeholders and separators to the update handler.
204 Not quite working yet though.
205 (find_menu_position): function to calculate position in the parent
206 menu shell that the item should be placed, taking into account
209 2002-05-23 Anders Carlsson <andersca@gnu.org>
211 * egg-action.c: (egg_action_connect_proxy),
212 (egg_action_disconnect_proxy):
214 Add functions to connect and disconnect proxies.
216 * egg-menu-merge.c: (update_node):
217 Add support for merging menus.
219 2002-05-22 James Henstridge <james@daa.com.au>
221 * test-merge.c (main): call gtk_main_quit() when the toplevel gets
224 * egg-menu-merge.c (update_node): add support for removing proxies
225 and pruning dead UI nodes in the update handler.
227 2002-05-22 Anders Carlsson <andersca@gnu.org>
231 * test-merge.c: (dump_tree), (main):
232 Add new placeholder tests, add a "Dump Tree" button
235 2002-05-22 Anders Carlsson <andersca@gnu.org>
237 * egg-menu-merge.c: (update_node):
238 * test-merge.c: (add_widget), (main):
239 Add support for merging menu bars.
241 2002-05-22 Anders Carlsson <andersca@gnu.org>
243 * egg-menu-merge.c: (get_action_by_name), (update_node):
245 Make action handling more sane, and add an
246 EGG_MENU_MERGE_SEPARATOR type.
248 2002-05-22 Anders Carlsson <andersca@gnu.org>
250 * egg-menu-merge.c: (egg_menu_merge_class_init):
252 Add "add_widget" and "remove_widget" signals.
254 2002-05-22 James Henstridge <james@daa.com.au>
256 Merge in Anders' egg-menu-demerge.diff patch with some
258 - use guint merge_ids with 0 being the invalid one
259 - nodes with no name implicitly get the action name. This name
260 doesn't change with subsequent merges/demerges.
262 * egg-menu-merge.c (start_element_handler): add merge_id tags to
264 (egg_menu_merge_add_ui_from_string): create a new merge_id tag for
265 this bit of UI, and use the ID as return value (0 for errors).
266 (egg_menu_merge_remove_ui): add demerge function.
267 (update_node): don't use g_node_traverse, so that we can perform
268 some actions before and after processing children.
270 * egg-menu-merge.h: add last_merge_id attribute.
272 2002-05-07 Anders Carlsson <anders@gnu.org>
276 2002-05-04 James Henstridge <james@daa.com.au>
278 * test-merge.c (main): actually set up an action group for the
281 * egg-menu-merge.c (update_node): some updates to lookup actions
282 in the update handler.
284 2002-05-01 James Henstridge <james@daa.com.au>
286 * egg-markup.c (start_element_handler): adjust to new API.
288 * egg-action.c (tool_button_parent_set): add a hack to set the
289 toolbar child type to GTK_TOOLBAR_CHILD_BUTTON. This makes them
290 size like normal toolbar buttons.
291 (egg_action_create_tool_item): change API to be more similar to
294 * egg-toggle-action.c (add_toolbar_button): get rid of this
295 function and rely on the base EggAction version.
297 * egg-action.c (tool_button_new): functions to make buttons that
298 act like ones added with gtk_toolbar_append_item().
299 (add_toolbar_button): simplify this function, so all the work is
300 done in connect_proxy().
302 * test-actions.c: leave the "label" property of the quit EggAction
303 as NULL, to demonstrate fall back to the label associated with a
306 * egg-toggle-action.c (create_menu_item): get rid of this
307 function, instead relying on the connect_proxy() function to
310 * egg-action.c (create_menu_item): simplify function to just
311 create an item without filling in any details.
313 2002-05-01 James Henstridge <james@daa.com.au>
315 * egg-action.c (egg_action_sync_stock_id): support for
316 synchronising the stock image on a menu item.
318 2002-04-30 Anders Carlsson <andersca@gnu.org>
320 * egg-action.c: (egg_action_class_init):
321 * egg-toggle-action.c: (egg_toggle_action_class_init):
323 2002-04-30 James Henstridge <james@daa.com.au>
325 * egg-action.c (egg_action_sync_property): I was a little too fast
326 in starting to write new closure types. A simple function will do
329 Use the normal gobject marshalers.
331 2002-04-30 James Henstridge <james@daa.com.au>
334 * test-actions.c (toggle_cnp_actions): demonstrate "label" change
337 * egg-action.c (connect_proxy): synchronise the label on menu
340 * test-actions.c (toggle_cnp_actions): add an action that toggles
341 the sensitivity of the cut/copy/paste actions.
343 * egg-action.c (egg_action_set_property): add code to handle cases
344 where label and short_label are unset (label defaults to label
345 associated with stock id, short_label defaults to label).
347 2002-04-29 James Henstridge <james@daa.com.au>
349 * egg-action.c (egg_action_notify_closure_new): new function to
350 create a closure for watching property change notifications on the
351 action and propagating them to the proxy.
353 2002-04-28 James Henstridge <james@daa.com.au>
355 * egg-action-group.c (egg_action_group_add_actions): move
356 implementation from gmenu-action-store.c
358 * egg-action-group.h: add defs for the add_actions() convenience
361 * egg-action.c (egg_action_get_property): if ->label hasn't been
362 set, but a stock_id has been set, look up the label corresponding
365 2002-04-27 James Henstridge <james@daa.com.au>
367 * (lots of files): move to libegg, and rename to Egg namespace.
368 Some cleanups (change EggActionGroup to a plain GObject rather
371 2002-03-03 James Henstridge <james@daa.com.au>
373 * gmenu-merge.c (gmenu_merge_insert_action_group): add
375 (gmenu_merge_remove_action_group): add implementation.
376 (gmenu_merge_get_widget): function to get a proxy at a particular
379 2002-03-02 James Henstridge <james@daa.com.au>
381 * gmenu-merge.c: fix some bugs found when writing the test prog.
383 * testmerge.c (print_node): new test program for merge code.
385 * gmenu-merge.[ch]: check in first go at GMarkup parsing code for
386 adding UI elements to the merged UI.
388 2002-02-18 Anders Carlsson <andersca@gnu.org>
390 * gmenu-action.h: Add gmenu_action_set_sensitive to header.
392 * gmenu-action.c (gmenu_action_set_sensitive): Implement
395 2002-01-11 James Henstridge <james@daa.com.au>
397 * gmenu-markup.c (start_element_handler): get rid of extra
398 gtk_menu_item_set_accel_path() call, as the gtk bug is gone.
400 2002-01-08 James Henstridge <james@daa.com.au>
402 * tester.c (create_window): create accel group here rather than
403 using action group's accel group (which doesn't exist anymore).
404 (main): get rid of accel_group mentions here.
406 * gmenu-markup.c (gmenu_create_from_string): store accel group
407 pointer in context struct.
408 (gmenu_create_from_file): handle accel_group arg.
409 (start_element_handler): set accel group on menus, and set the
410 accel path on menu items (again) to work around a bug in gtk.
412 * gmenu-markup.h (gmenu_create_from_{file,string}): add
413 GdkAccelGroup arg to function prototypes.
415 * gmenu-toggle-action.c (create_menu_item): same here.
417 * gmenu-action.c (gmenu_action_set_accel_path): don't set up an
418 accel on the action itself -- just store the quark.
419 (create_menu_item): make accel label watch accels on menu item
422 * gmenu-action.h: get rid of GtkAccelGroup stuff.
424 * gmenu-action-store.c: same.
426 * gmenu-action-store.h: get rid of GtkAccelGroup mentions in