diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-06-22 07:01:29 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-06-22 07:01:29 +0800 |
commit | 588fd23c5c2a93f42e28df892eb8ab7f8078597b (patch) | |
tree | 1ed87aebf6d4fe2d00a412f602cb055d1378a776 /widgets/table | |
parent | a30a2c116239e615c685194c9287c3adc05594a5 (diff) | |
download | gsoc2013-evolution-588fd23c5c2a93f42e28df892eb8ab7f8078597b.tar.gz 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')
-rw-r--r-- | widgets/table/e-table-field-chooser-dialog.c | 12 | ||||
-rw-r--r-- | widgets/table/e-table-field-chooser.glade | 20 | ||||
-rw-r--r-- | widgets/table/e-table-field-chooser.glade.h | 2 |
3 files changed, 33 insertions, 1 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); +} diff --git a/widgets/table/e-table-field-chooser.glade b/widgets/table/e-table-field-chooser.glade index e09b3a9f3a..a5cd37c2df 100644 --- a/widgets/table/e-table-field-chooser.glade +++ b/widgets/table/e-table-field-chooser.glade @@ -75,7 +75,7 @@ <class>GtkVBox</class> <name>vbox-top</name> <homogeneous>False</homogeneous> - <spacing>0</spacing> + <spacing>4</spacing> <child> <padding>0</padding> <expand>True</expand> @@ -83,6 +83,24 @@ </child> <widget> + <class>GtkLabel</class> + <name>label1</name> + <label>To add a column to your table, drag it into +the location in which you want it to appear.</label> + <justify>GTK_JUSTIFY_CENTER</justify> + <wrap>False</wrap> + <xalign>0.5</xalign> + <yalign>0.5</yalign> + <xpad>0</xpad> + <ypad>0</ypad> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>False</fill> + </child> + </widget> + + <widget> <class>GtkScrolledWindow</class> <name>scrolledwindow1</name> <width>200</width> diff --git a/widgets/table/e-table-field-chooser.glade.h b/widgets/table/e-table-field-chooser.glade.h index 344535f180..a36bd6052c 100644 --- a/widgets/table/e-table-field-chooser.glade.h +++ b/widgets/table/e-table-field-chooser.glade.h @@ -5,3 +5,5 @@ */ gchar *s = N_("Field Chooser"); +gchar *s = N_("To add a column to your table, drag it into\n" + "the location in which you want it to appear."); |