diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-06-11 12:12:28 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-06-11 12:12:28 +0800 |
commit | 835ec00d01e23256143229d8e2c99f68afae1e6c (patch) | |
tree | a84f64f459a6f00730cfc651290c2bfdb8e4e2f9 /addressbook/gui/component/e-select-names.c | |
parent | 86e45230bdfccc8c6a80dc81714aeb95cfd03b32 (diff) | |
download | gsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.tar.gz gsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.tar.zst gsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.zip |
Added glade files.
2000-06-11 Christopher James Lahey <clahey@helixcode.com>
* gui/component/Makefile.am: Added glade files.
* gui/component/addressbook.c: Added a test of the Select Names
functionality.
* gui/component/e-addressbook-model.c: Made this class_init
function a bit cleaner.
* gui/component/e-select-names.c: Tested this and fixed some
obvious errors.
* gui/component/select-names.glade: The main window shouldn't be
visible by default.
svn path=/trunk/; revision=3518
Diffstat (limited to 'addressbook/gui/component/e-select-names.c')
-rw-r--r-- | addressbook/gui/component/e-select-names.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/addressbook/gui/component/e-select-names.c b/addressbook/gui/component/e-select-names.c index 2f2d2abec2..b92c842844 100644 --- a/addressbook/gui/component/e-select-names.c +++ b/addressbook/gui/component/e-select-names.c @@ -36,6 +36,7 @@ static void e_select_names_get_arg (GtkObject *object, GtkArg *arg, guint arg_id static void e_select_names_destroy (GtkObject *object); static GnomeDialogClass *parent_class = NULL; +#define PARENT_TYPE gnome_dialog_get_type() /* The arguments we take */ enum { @@ -68,7 +69,7 @@ e_select_names_get_type (void) (GtkClassInitFunc) NULL, }; - type = gtk_type_unique (gtk_vbox_get_type (), &info); + type = gtk_type_unique (PARENT_TYPE, &info); } return type; @@ -81,11 +82,11 @@ e_select_names_class_init (ESelectNamesClass *klass) object_class = (GtkObjectClass*) klass; - parent_class = gtk_type_class (gnome_dialog_get_type ()); + parent_class = gtk_type_class (PARENT_TYPE); - gtk_object_add_arg_type ("EAddressbookModel::book", GTK_TYPE_OBJECT, + gtk_object_add_arg_type ("ESelectNames::book", GTK_TYPE_OBJECT, GTK_ARG_READWRITE, ARG_BOOK); - gtk_object_add_arg_type ("EAddressbookModel::query", GTK_TYPE_STRING, + gtk_object_add_arg_type ("ESelectNames::query", GTK_TYPE_STRING, GTK_ARG_READWRITE, ARG_QUERY); object_class->set_arg = e_select_names_set_arg; @@ -261,7 +262,7 @@ e_select_names_add_section(ESelectNames *e_select_names, char *name, char *id) return; } - table = GTK_TABLE(glade_xml_get_widget (e_select_names->gui, "recipient-table")); + table = GTK_TABLE(glade_xml_get_widget (e_select_names->gui, "table-recipients")); child = g_new(ESelectNamesChild, 1); |