aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-field-chooser-dialog.c
diff options
context:
space:
mode:
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);
+}