From d07573c090f8ca8c3fdb8f4d3f63b32be96ea7d6 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Tue, 13 Nov 2001 00:53:47 +0000 Subject: added gtkaccelmap.sgml. other updates. Mon Nov 12 23:06:38 2001 Tim Janik * added gtkaccelmap.sgml. other updates. Mon Nov 12 23:08:37 2001 Tim Janik * gtk/maketypes.awk: fix type utils generation on unix. * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator registry. * gtk/gtkaccelgroup.[hc]: major API/implementation revamp: removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default, gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry, gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove, gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object. introduced ::accel_changed signal for change notification, and gtk_accel_group_connect/disconnect to connect closures to accel groups. made gtk_accel_group_attach/detach and gtk_accel_group_activate private functions. deprecated gtk_accel_group_ref/unref. * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention to accel group changed notification and basically operate on closures. removed gtk_accel_label_get_accel_object and gtk_accel_label_set_accel_object. introduced gtk_accel_label_set_accel_closure, and for convenience, gtk_accel_label_set_accel_widget. * gtk/gtkitemfactory.[hc]: removed accelerator propagation code which mostly moved into gtkaccelmap.[hc]. removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_* and gtk_item_factory_print_func. * gtk/gtkmain.c: call _gtk_accel_map_init(). * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(), that associates an accelerator path with menu items, through which persistent accelerator settings on menu items are enabled. * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator paths of menu item can be default constructed to allow installation of accelerators on menu items that don't come with an accelerator binding by default. * gtk/gtksettings.c: fix STRING type rc settings by special casing them appropriately in the parser. * gtk/gtksignal.[hc]: allow a class function offset of 0 for gtk_signal_newv(). * gtk/gtkwidget.[hc]: accelerator API revamp. removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal, gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and gtk_widget_(un)lock_accelerators. accelerators maintained through gtk_widget_add/remove_accelerator() are not runtime changable now, the correct sequence to setup a widget for runtime changable accelerators is now: gtk_accel_map_add_entry(accel_path, key, mods); _gtk_widget_set_accel_path(widget, accel_path, accel_group); * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel group changes (as well as mnemonic changes) through the new signal ::accels_changed. Sat Nov 10 12:08:56 2001 Tim Janik * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle GString->string conversions. --- gtk/gtkitemfactory.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'gtk/gtkitemfactory.h') diff --git a/gtk/gtkitemfactory.h b/gtk/gtkitemfactory.h index 2fba37fd58..394ed0fe26 100644 --- a/gtk/gtkitemfactory.h +++ b/gtk/gtkitemfactory.h @@ -79,11 +79,7 @@ struct _GtkItemFactoryClass { GtkObjectClass object_class; - gchar *cpair_comment_single; - GHashTable *item_ht; - - gpointer dummy; }; struct _GtkItemFactoryEntry @@ -122,12 +118,6 @@ struct _GtkItemFactoryEntry struct _GtkItemFactoryItem { gchar *path; - guint accelerator_key; - guint accelerator_mods; - guint modified : 1; - guint in_propagation : 1; - gchar *dummy; - GSList *widgets; }; @@ -147,9 +137,6 @@ void gtk_item_factory_construct (GtkItemFactory *ifactory, /* These functions operate on GtkItemFactoryClass basis. */ -void gtk_item_factory_parse_rc (const gchar *file_name); -void gtk_item_factory_parse_rc_string (const gchar *rc_string); -void gtk_item_factory_parse_rc_scanner (GScanner *scanner); void gtk_item_factory_add_foreign (GtkWidget *accel_widget, const gchar *full_path, GtkAccelGroup *accel_group, @@ -168,19 +155,6 @@ GtkWidget* gtk_item_factory_get_widget_by_action (GtkItemFactory *ifactory, GtkWidget* gtk_item_factory_get_item_by_action (GtkItemFactory *ifactory, guint action); -/* If `path_pspec' is passed as `NULL', this function will iterate over - * all hash entries. otherwise only those entries will be dumped for which - * the pattern matches, e.g. "*...". - */ -void gtk_item_factory_dump_items (GPatternSpec *path_pspec, - gboolean modified_only, - GtkPrintFunc print_func, - gpointer func_data); -void gtk_item_factory_dump_rc (const gchar *file_name, - GPatternSpec *path_pspec, - gboolean modified_only); -void gtk_item_factory_print_func (gpointer FILE_pointer, - const gchar *string); void gtk_item_factory_create_item (GtkItemFactory *ifactory, GtkItemFactoryEntry *entry, gpointer callback_data, -- cgit v1.2.1