From 2ac2af6d4bcdfddf91c661a5c6ba96d6238a5a57 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 27 Jun 2001 03:15:53 +0000 Subject: Added a categories combo here. It's not used yet. 2001-06-26 Christopher James Lahey * gui/component/select-names/e-select-names.c, gui/component/select-names/e-select-names.h, gui/component/select-names/select-names.glade (e_select_names_create_categories): Added a categories combo here. It's not used yet. svn path=/trunk/; revision=10524 --- addressbook/ChangeLog | 8 +++++ .../gui/component/select-names/e-select-names.c | 23 ++++++++++++++ .../gui/component/select-names/e-select-names.h | 1 + .../gui/component/select-names/select-names.glade | 35 ++++++++++++++++++---- 4 files changed, 61 insertions(+), 6 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 09cdfc33f6..970fb7be26 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2001-06-26 Christopher James Lahey + + * gui/component/select-names/e-select-names.c, + gui/component/select-names/e-select-names.h, + gui/component/select-names/select-names.glade + (e_select_names_create_categories): Added a categories combo here. + It's not used yet. + 2001-06-26 Christopher James Lahey * gui/search/addresstypes.xml: Added category searching to the diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index 2a6be901b4..bd042fe53c 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -39,6 +39,8 @@ #include "e-select-names.h" #include #include "e-select-names-table-model.h" +#include +#include static void e_select_names_init (ESelectNames *card); static void e_select_names_class_init (ESelectNamesClass *klass); @@ -383,6 +385,25 @@ e_select_names_hookup_shell_listener (ESelectNames *e_select_names) CORBA_exception_free(&ev); } +GtkWidget *e_select_names_create_categories (gchar *name, + gchar *string1, gchar *string2, + gint int1, gint int2); + +GtkWidget * +e_select_names_create_categories (gchar *name, + gchar *string1, gchar *string2, + gint int1, gint int2) +{ + ECategoriesMasterList *ecml; + GtkWidget *combo; + + ecml = e_categories_master_list_wombat_new (); + combo = e_categories_master_list_combo_new (ecml); + gtk_object_unref (GTK_OBJECT (ecml)); + + return combo; +} + static void e_select_names_init (ESelectNames *e_select_names) { @@ -416,6 +437,8 @@ e_select_names_init (ESelectNames *e_select_names) e_select_names->model = gtk_object_get_data(GTK_OBJECT(e_select_names->table), "model"); e_select_names->adapter = gtk_object_get_data(GTK_OBJECT(e_select_names->table), "adapter"); + e_select_names->categories = glade_xml_get_widget (gui, "custom-categories"); + e_select_names->currently_selected = -1; e_select_names->folders = g_hash_table_new(g_str_hash, g_str_equal); diff --git a/addressbook/gui/component/select-names/e-select-names.h b/addressbook/gui/component/select-names/e-select-names.h index b3fc713623..14dcad325b 100644 --- a/addressbook/gui/component/select-names/e-select-names.h +++ b/addressbook/gui/component/select-names/e-select-names.h @@ -70,6 +70,7 @@ struct _ESelectNames ETableScrolled *table; ETableModel *adapter; EAddressbookModel *model; + GtkWidget *categories; int currently_selected; EvolutionStorageListener *listener; GHashTable *folders; diff --git a/addressbook/gui/component/select-names/select-names.glade b/addressbook/gui/component/select-names/select-names.glade index 4eb3599f85..4c793eaeef 100644 --- a/addressbook/gui/component/select-names/select-names.glade +++ b/addressbook/gui/component/select-names/select-names.glade @@ -78,7 +78,7 @@ GtkTable table-top - 4 + 5 2 False 6 @@ -118,7 +118,7 @@ True True 0 - + = 0 True @@ -177,8 +177,8 @@ 0 1 - 3 - 4 + 4 + 5 0 0 True @@ -201,8 +201,8 @@ 1 2 - 3 - 4 + 4 + 5 0 0 True @@ -261,6 +261,29 @@ False + + + Custom + custom-categories + e_select_names_create_categories + 0 + 0 + Wed, 27 Jun 2001 01:47:01 GMT + + 0 + 1 + 3 + 4 + 0 + 0 + False + False + False + False + True + True + + -- cgit v1.2.3