Commit 852d09b7 authored by Almer. S. Tigelaar's avatar Almer. S. Tigelaar Committed by Almer S. Tigelaar

: New, makes dialogs close when enter is pressed inside a gtkcombo.

2000-05-04  Almer. S. Tigelaar.  <almer1@dds.nl>

	* src/gnumeric-util.[ch] :
	(gnumeric_combo_enters) : New, makes dialogs
	close when enter is pressed inside a gtkcombo.

	* src/dialogs/dialog-stf.c :
	(stf_dialog_editables_enter) : Modified to use
	the above function for combo boxes.

	* src/dialogs/dialog-stf-export.c :
	(stf_export_dialog_editables_enter) : Modified to
	use the above function for combo boxes.
parent 081fdafa
2000-05-04 Almer. S. Tigelaar. <almer1@dds.nl>
* src/gnumeric-util.[ch] :
(gnumeric_combo_enters) : New, makes dialogs
close when enter is pressed inside a gtkcombo.
* src/dialogs/dialog-stf.c :
(stf_dialog_editables_enter) : Modified to use
the above function for combo boxes.
* src/dialogs/dialog-stf-export.c :
(stf_export_dialog_editables_enter) : Modified to
use the above function for combo boxes.
2000-05-03 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_invalid) : new function.
......
2000-05-04 Almer. S. Tigelaar. <almer1@dds.nl>
* src/gnumeric-util.[ch] :
(gnumeric_combo_enters) : New, makes dialogs
close when enter is pressed inside a gtkcombo.
* src/dialogs/dialog-stf.c :
(stf_dialog_editables_enter) : Modified to use
the above function for combo boxes.
* src/dialogs/dialog-stf-export.c :
(stf_export_dialog_editables_enter) : Modified to
use the above function for combo boxes.
2000-05-03 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_invalid) : new function.
......
2000-05-04 Almer. S. Tigelaar. <almer1@dds.nl>
* src/gnumeric-util.[ch] :
(gnumeric_combo_enters) : New, makes dialogs
close when enter is pressed inside a gtkcombo.
* src/dialogs/dialog-stf.c :
(stf_dialog_editables_enter) : Modified to use
the above function for combo boxes.
* src/dialogs/dialog-stf-export.c :
(stf_export_dialog_editables_enter) : Modified to
use the above function for combo boxes.
2000-05-03 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_invalid) : new function.
......
2000-05-04 Almer. S. Tigelaar. <almer1@dds.nl>
* src/gnumeric-util.[ch] :
(gnumeric_combo_enters) : New, makes dialogs
close when enter is pressed inside a gtkcombo.
* src/dialogs/dialog-stf.c :
(stf_dialog_editables_enter) : Modified to use
the above function for combo boxes.
* src/dialogs/dialog-stf-export.c :
(stf_export_dialog_editables_enter) : Modified to
use the above function for combo boxes.
2000-05-03 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_invalid) : new function.
......
2000-05-04 Almer. S. Tigelaar. <almer1@dds.nl>
* src/gnumeric-util.[ch] :
(gnumeric_combo_enters) : New, makes dialogs
close when enter is pressed inside a gtkcombo.
* src/dialogs/dialog-stf.c :
(stf_dialog_editables_enter) : Modified to use
the above function for combo boxes.
* src/dialogs/dialog-stf-export.c :
(stf_export_dialog_editables_enter) : Modified to
use the above function for combo boxes.
2000-05-03 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_invalid) : new function.
......
2000-05-04 Almer. S. Tigelaar. <almer1@dds.nl>
* src/gnumeric-util.[ch] :
(gnumeric_combo_enters) : New, makes dialogs
close when enter is pressed inside a gtkcombo.
* src/dialogs/dialog-stf.c :
(stf_dialog_editables_enter) : Modified to use
the above function for combo boxes.
* src/dialogs/dialog-stf-export.c :
(stf_export_dialog_editables_enter) : Modified to
use the above function for combo boxes.
2000-05-03 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_invalid) : new function.
......
2000-05-04 Almer. S. Tigelaar. <almer1@dds.nl>
* src/gnumeric-util.[ch] :
(gnumeric_combo_enters) : New, makes dialogs
close when enter is pressed inside a gtkcombo.
* src/dialogs/dialog-stf.c :
(stf_dialog_editables_enter) : Modified to use
the above function for combo boxes.
* src/dialogs/dialog-stf-export.c :
(stf_export_dialog_editables_enter) : Modified to
use the above function for combo boxes.
2000-05-03 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_invalid) : new function.
......
......@@ -350,10 +350,8 @@ stf_export_dialog_editables_enter (StfE_DruidData_t *druid_data)
{
gnumeric_editable_enters (druid_data->window,
GTK_EDITABLE (druid_data->format_page_data->format_custom));
gtk_combo_disable_activate (druid_data->format_page_data->format_quotechar);
gnumeric_editable_enters (druid_data->window,
GTK_EDITABLE (druid_data->format_page_data->format_quotechar->entry));
gnumeric_combo_enters (druid_data->window,
druid_data->format_page_data->format_quotechar);
}
/**
......
......@@ -484,9 +484,9 @@ stf_dialog_editables_enter (DruidPageData_t *pagedata)
gnumeric_editable_enters
(pagedata->window,
GTK_EDITABLE (pagedata->csv_info->csv_customseparator));
/* gnumeric_editable_enters
gnumeric_combo_enters
(pagedata->window,
GTK_EDITABLE (pagedata->csv_info->csv_textindicator->entry));*/
pagedata->csv_info->csv_textindicator);
gnumeric_editable_enters
(pagedata->window,
GTK_EDITABLE (&pagedata->fixed_info->fixed_colend->entry));
......
......@@ -223,6 +223,26 @@ void gnumeric_editable_enters (GtkWindow *window, GtkEditable *editable)
GTK_OBJECT(window));
}
/**
* gnumeric_combo_enters:
* @window: dialog to affect
* @combo: Combo to affect
*
* This calls upon gnumeric_editable_enters so the dialog
* is closed instead of the list with options popping up
* when enter is pressed
**/
void
gnumeric_combo_enters (GtkWindow *window, GtkCombo *combo)
{
g_return_if_fail (window != NULL);
g_return_if_fail (combo != NULL);
gtk_combo_disable_activate (combo);
gnumeric_editable_enters (window,
GTK_EDITABLE (combo->entry));
}
int
gtk_radio_group_get_selected (GSList *radio_group)
{
......
......@@ -15,7 +15,9 @@ void gnumeric_dialog_show (GtkWidget *parent, GnomeDialog *dialog,
void gnumeric_set_transient (CommandContext *context, GtkWindow *window);
void gnumeric_editable_enters (GtkWindow *window,
GtkEditable *editable);
void gnumeric_combo_enters (GtkWindow *window,
GtkCombo *combo);
/* A simple routine for making a popup menu */
int run_popup_menu (GdkEvent *event, int button, char **strings);
......
......@@ -223,6 +223,26 @@ void gnumeric_editable_enters (GtkWindow *window, GtkEditable *editable)
GTK_OBJECT(window));
}
/**
* gnumeric_combo_enters:
* @window: dialog to affect
* @combo: Combo to affect
*
* This calls upon gnumeric_editable_enters so the dialog
* is closed instead of the list with options popping up
* when enter is pressed
**/
void
gnumeric_combo_enters (GtkWindow *window, GtkCombo *combo)
{
g_return_if_fail (window != NULL);
g_return_if_fail (combo != NULL);
gtk_combo_disable_activate (combo);
gnumeric_editable_enters (window,
GTK_EDITABLE (combo->entry));
}
int
gtk_radio_group_get_selected (GSList *radio_group)
{
......
......@@ -15,7 +15,9 @@ void gnumeric_dialog_show (GtkWidget *parent, GnomeDialog *dialog,
void gnumeric_set_transient (CommandContext *context, GtkWindow *window);
void gnumeric_editable_enters (GtkWindow *window,
GtkEditable *editable);
void gnumeric_combo_enters (GtkWindow *window,
GtkCombo *combo);
/* A simple routine for making a popup menu */
int run_popup_menu (GdkEvent *event, int button, char **strings);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment