aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-07-17 14:24:26 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-07-17 14:24:26 +0800
commit81531f8286d0146ea2d8669a71d7587e6f5bbbbf (patch)
treedfceef95c14ff33aae2887f599e516353d2cf4fe /shell
parent4c3eaff412bf29bf8eb5e5dda2f11a9b24a46abb (diff)
downloadgsoc2013-evolution-81531f8286d0146ea2d8669a71d7587e6f5bbbbf.tar
gsoc2013-evolution-81531f8286d0146ea2d8669a71d7587e6f5bbbbf.tar.gz
gsoc2013-evolution-81531f8286d0146ea2d8669a71d7587e6f5bbbbf.tar.bz2
gsoc2013-evolution-81531f8286d0146ea2d8669a71d7587e6f5bbbbf.tar.lz
gsoc2013-evolution-81531f8286d0146ea2d8669a71d7587e6f5bbbbf.tar.xz
gsoc2013-evolution-81531f8286d0146ea2d8669a71d7587e6f5bbbbf.tar.zst
gsoc2013-evolution-81531f8286d0146ea2d8669a71d7587e6f5bbbbf.zip
created a model for the EShortcutBar. This will probably have to be moved
2000-07-16 Damon Chaplin <damon@helixcode.com> * e-shortcuts-view.c (e_shortcuts_view_construct): created a model for the EShortcutBar. This will probably have to be moved to support multiple views. (class_init): #if'd out overriding the class functions. They don't exist any more (they are in the model instead). svn path=/trunk/; revision=4187
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog8
-rw-r--r--shell/e-shortcuts-view.c17
2 files changed, 19 insertions, 6 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index b4b33ed195..827917697d 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,11 @@
+2000-07-16 Damon Chaplin <damon@helixcode.com>
+
+ * e-shortcuts-view.c (e_shortcuts_view_construct): created a model
+ for the EShortcutBar. This will probably have to be moved to support
+ multiple views.
+ (class_init): #if'd out overriding the class functions. They don't
+ exist any more (they are in the model instead).
+
2000-07-12 Christopher James Lahey <clahey@helixcode.com>
* main.c: Fixed to match gconf API change.
diff --git a/shell/e-shortcuts-view.c b/shell/e-shortcuts-view.c
index e5184129f6..fdef7b9933 100644
--- a/shell/e-shortcuts-view.c
+++ b/shell/e-shortcuts-view.c
@@ -109,7 +109,7 @@ load_group (EShortcutsView *shortcuts_view,
}
name = e_folder_get_name (folder);
- e_shortcut_bar_add_item (E_SHORTCUT_BAR (shortcuts_view), group_num, uri, name);
+ e_shortcut_model_add_item (E_SHORTCUT_BAR (shortcuts_view)->model, group_num, -1, uri, name);
}
e_free_string_list (shortcut_list);
@@ -132,8 +132,8 @@ load_all_shortcuts (EShortcutsView *shortcuts_view,
const char *group_title;
group_title = (const char *) p->data;
- group_num = e_shortcut_bar_add_group (E_SHORTCUT_BAR (shortcuts_view),
- group_title);
+ group_num = e_shortcut_model_add_group (E_SHORTCUT_BAR (shortcuts_view)->model,
+ -1, group_title);
load_group (shortcuts_view, shortcuts, group_title, group_num);
}
@@ -321,8 +321,9 @@ remove_shortcut_cb (GtkWidget *widget,
e_shortcuts_remove_shortcut (shortcuts, menu_data->group_num, menu_data->item_num);
/* FIXME not real model-view. */
- e_shortcut_bar_remove_item (E_SHORTCUT_BAR (shortcuts_view),
- menu_data->group_num, menu_data->item_num);
+ e_shortcut_model_remove_item (E_SHORTCUT_BAR (shortcuts_view)->model,
+ menu_data->group_num,
+ menu_data->item_num);
}
static GnomeUIInfo shortcut_right_click_menu_uiinfo[] = {
@@ -507,11 +508,12 @@ class_init (EShortcutsViewClass *klass)
shortcut_bar_class = E_SHORTCUT_BAR_CLASS (klass);
shortcut_bar_class->selected_item = selected_item;
+#if 0
shortcut_bar_class->added_item = added_item;
shortcut_bar_class->removed_item = removed_item;
shortcut_bar_class->added_group = added_group;
shortcut_bar_class->removed_group = removed_group;
-
+#endif
parent_class = gtk_type_class (e_shortcut_bar_get_type ());
signals[ACTIVATE_SHORTCUT] =
@@ -550,6 +552,9 @@ e_shortcuts_view_construct (EShortcutsView *shortcuts_view,
priv = shortcuts_view->priv;
+ e_shortcut_bar_set_model (E_SHORTCUT_BAR (shortcuts_view),
+ e_shortcut_model_new ());
+
e_shortcut_bar_set_icon_callback (E_SHORTCUT_BAR (shortcuts_view), icon_callback,
shortcuts);