diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-09 04:45:49 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-09 04:45:49 +0800 |
commit | 82c99d625bf2d763adf0b812dd59b92a4aaa4735 (patch) | |
tree | bbd0e022c15bf6e947f47bcb2bb1950444785d9b /shell/e-shortcuts.h | |
parent | b749cf077233687b34a5ae0aed1ee33d23b76471 (diff) | |
download | gsoc2013-evolution-82c99d625bf2d763adf0b812dd59b92a4aaa4735.tar.gz gsoc2013-evolution-82c99d625bf2d763adf0b812dd59b92a4aaa4735.tar.zst gsoc2013-evolution-82c99d625bf2d763adf0b812dd59b92a4aaa4735.zip |
Change the group icon size using e_shortcuts_set_group_uses_small_icons()
* e-shortcuts-view.c (toggle_large_icons_cb): Change the group
icon size using e_shortcuts_set_group_uses_small_icons() instead
of changing it on the widget directly.
(toggle_small_icons_cb): Likewise.
(group_change_icon_size_callback): New, callback for the
"group_change_icon_size" signal on the EShortcuts object.
(e_shortcuts_view_construct): Connect. Also, initialize the icon
sizes in the icon bars from the EShortcuts object.
* e-shell-view.c (e_shell_view_load_settings): Don't set the
shortcut group icon modes here anymore.
* e-shortcuts.c: New member use_small_icons in struct
ShortcutGroup.
(shortcut_group_new): Init to FALSE.
(e_shortcuts_set_group_uses_small_icons): New.
(e_shortcuts_get_group_uses_small_icons): New.
(class_init): Install "group_change_icon_size" signal.
(save_shortcuts): Save the icon size per-group
here, i.e. <group title="foo" icon_size="small">.
(load_shortcuts): Set the icon size from the group's definition
here.
* e-shortcuts.h: New signal "group_change_icon_size" in
EShortcutsClass.
svn path=/trunk/; revision=17386
Diffstat (limited to 'shell/e-shortcuts.h')
-rw-r--r-- | shell/e-shortcuts.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/shell/e-shortcuts.h b/shell/e-shortcuts.h index 3b93d5c032..a50e726a4a 100644 --- a/shell/e-shortcuts.h +++ b/shell/e-shortcuts.h @@ -71,13 +71,15 @@ struct _EShortcutsClass { /* Signals. */ - void (* new_group) (EShortcuts *shortcuts, int group_num); - void (* remove_group) (EShortcuts *shortcuts, int group_num); - void (* rename_group) (EShortcuts *shortcuts, int group_num, const char *new_title); + void (* new_group) (EShortcuts *shortcuts, int group_num); + void (* remove_group) (EShortcuts *shortcuts, int group_num); + void (* rename_group) (EShortcuts *shortcuts, int group_num, const char *new_title); - void (* new_shortcut) (EShortcuts *shortcuts, int group_num, int item_num); - void (* remove_shortcut) (EShortcuts *shortcuts, int group_num, int item_num); - void (* update_shortcut) (EShortcuts *shortcuts, int group_num, int item_num); + void (* group_change_icon_size) (EShortcuts *shortcuts, int group_num, gboolean use_small_icons); + + void (* new_shortcut) (EShortcuts *shortcuts, int group_num, int item_num); + void (* remove_shortcut) (EShortcuts *shortcuts, int group_num, int item_num); + void (* update_shortcut) (EShortcuts *shortcuts, int group_num, int item_num); }; @@ -136,9 +138,15 @@ void e_shortcuts_add_group (EShortcuts *shortcuts, int group_num, const char *group_title); void e_shortcuts_rename_group (EShortcuts *shortcuts, - int group_name, + int group_num, const char *new_title); +void e_shortcuts_set_group_uses_small_icons (EShortcuts *shortcuts, + int group_num, + gboolean use_small_icons); +gboolean e_shortcuts_get_group_uses_small_icons (EShortcuts *shortcuts, + int group_num); + #ifdef __cplusplus } #endif /* __cplusplus */ |