aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-field-chooser-dialog.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-22 07:01:29 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-22 07:01:29 +0800
commit588fd23c5c2a93f42e28df892eb8ab7f8078597b (patch)
tree1ed87aebf6d4fe2d00a412f602cb055d1378a776 /widgets/table/e-table-field-chooser-dialog.c
parenta30a2c116239e615c685194c9287c3adc05594a5 (diff)
downloadgsoc2013-evolution-588fd23c5c2a93f42e28df892eb8ab7f8078597b.tar
gsoc2013-evolution-588fd23c5c2a93f42e28df892eb8ab7f8078597b.tar.gz
gsoc2013-evolution-588fd23c5c2a93f42e28df892eb8ab7f8078597b.tar.bz2
gsoc2013-evolution-588fd23c5c2a93f42e28df892eb8ab7f8078597b.tar.lz
gsoc2013-evolution-588fd23c5c2a93f42e28df892eb8ab7f8078597b.tar.xz
gsoc2013-evolution-588fd23c5c2a93f42e28df892eb8ab7f8078597b.tar.zst
gsoc2013-evolution-588fd23c5c2a93f42e28df892eb8ab7f8078597b.zip
Made the Close button work.
2000-06-21 Christopher James Lahey <clahey@helixcode.com> * e-table-field-chooser-dialog.c: Made the Close button work. * e-table-field-chooser.glade, e-table-field-chooser.glade.h: Added a text description of this dialog. svn path=/trunk/; revision=3685
Diffstat (limited to 'widgets/table/e-table-field-chooser-dialog.c')
-rw-r--r--widgets/table/e-table-field-chooser-dialog.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/widgets/table/e-table-field-chooser-dialog.c b/widgets/table/e-table-field-chooser-dialog.c
index b218f07c73..b54c57e80e 100644
--- a/widgets/table/e-table-field-chooser-dialog.c
+++ b/widgets/table/e-table-field-chooser-dialog.c
@@ -29,6 +29,7 @@ static void e_table_field_chooser_dialog_class_init (ETableFieldChooserDialogCla
static void e_table_field_chooser_dialog_set_arg (GtkObject *o, GtkArg *arg, guint arg_id);
static void e_table_field_chooser_dialog_get_arg (GtkObject *object, GtkArg *arg, guint arg_id);
static void e_table_field_chooser_dialog_destroy (GtkObject *object);
+static void e_table_field_chooser_dialog_clicked (GnomeDialog *dialog, gint button);
static GnomeDialogClass *parent_class = NULL;
@@ -68,8 +69,10 @@ static void
e_table_field_chooser_dialog_class_init (ETableFieldChooserDialogClass *klass)
{
GtkObjectClass *object_class;
+ GnomeDialogClass *dialog_class;
object_class = (GtkObjectClass*) klass;
+ dialog_class = GNOME_DIALOG_CLASS (klass);
parent_class = gtk_type_class (gnome_dialog_get_type ());
@@ -77,6 +80,8 @@ e_table_field_chooser_dialog_class_init (ETableFieldChooserDialogClass *klass)
object_class->set_arg = e_table_field_chooser_dialog_set_arg;
object_class->get_arg = e_table_field_chooser_dialog_get_arg;
+ dialog_class->clicked = e_table_field_chooser_dialog_clicked;
+
gtk_object_add_arg_type ("ETableFieldChooserDialog::dnd_code", GTK_TYPE_STRING,
GTK_ARG_READWRITE, ARG_DND_CODE);
gtk_object_add_arg_type ("ETableFieldChooserDialog::full_header", GTK_TYPE_OBJECT,
@@ -176,3 +181,10 @@ e_table_field_chooser_dialog_get_arg (GtkObject *object, GtkArg *arg, guint arg_
break;
}
}
+
+static void
+e_table_field_chooser_dialog_clicked (GnomeDialog *dialog, int button)
+{
+ if (button == 0)
+ gnome_dialog_close(dialog);
+}