Commit c45eb8a3 authored by Jody Goldberg's avatar Jody Goldberg

Some minor GUI fixes.

parent 94aa34d5
1999-10-05 Jody Goldberg <jgoldberg@home.com>
From : Jon K Hellan <Jon.K.Hellan@item.ntnu.no>
* src/plugin-manager.c (plugin_manager_new):
Go away on <Esc>, set initial focus.
* src/dialogs/sheet-rename.glade: Made OK button default.
* dialog-simple-input.c
(dialog_get_number) : gnome_dialog_run instead of run_and_close -
otherwise entry widget is destroyed before it is read. Make
<Enter> in entry field activate default button.
(dialog_get_sheet_name) : As above
* dialog-simple-input.c (dialog_get_number): gnome_dialog_run instead
of run_and_close - otherwise entry widget is destroyed before it is
read. Make <Enter> in entry field activate default button.
(dialog_get_sheet_name) : Ditto.
* src/workbook.c (workbook_rename_sheet): Update notebook label
......
1999-10-05 Jody Goldberg <jgoldberg@home.com>
From : Jon K Hellan <Jon.K.Hellan@item.ntnu.no>
* src/plugin-manager.c (plugin_manager_new):
Go away on <Esc>, set initial focus.
* src/dialogs/sheet-rename.glade: Made OK button default.
* dialog-simple-input.c
(dialog_get_number) : gnome_dialog_run instead of run_and_close -
otherwise entry widget is destroyed before it is read. Make
<Enter> in entry field activate default button.
(dialog_get_sheet_name) : As above
* dialog-simple-input.c (dialog_get_number): gnome_dialog_run instead
of run_and_close - otherwise entry widget is destroyed before it is
read. Make <Enter> in entry field activate default button.
(dialog_get_sheet_name) : Ditto.
* src/workbook.c (workbook_rename_sheet): Update notebook label
......
......@@ -88,6 +88,16 @@ row_cb (GtkWidget * clist, gint row, gint col,
gtk_widget_set_sensitive (pm->button_remove, 0);
}
static gint
pm_key_event (GtkWidget *pm, GdkEventKey *event)
{
if (event->keyval == GDK_Escape) {
gtk_widget_destroy(pm);
return 1;
} else
return 0;
}
GtkWidget *
plugin_manager_new (Workbook *wb)
{
......@@ -101,6 +111,7 @@ plugin_manager_new (Workbook *wb)
pm->workbook = wb;
pm->dialog = gtk_window_new (GTK_WINDOW_DIALOG);
/*gnome_dialog_set_parent (GNOME_DIALOG (pm->dialog), GTK_WINDOW (wb->toplevel)); */
pm->hbox = gtk_hbox_new (0, 0);
gtk_container_add (GTK_CONTAINER (pm->dialog), pm->hbox);
......@@ -150,6 +161,11 @@ plugin_manager_new (Workbook *wb)
gtk_signal_connect(GTK_OBJECT (pm->clist), "unselect_row",
GTK_SIGNAL_FUNC (row_cb), pm);
gtk_signal_connect (GTK_OBJECT (pm->dialog), "key_press_event",
GTK_SIGNAL_FUNC (pm_key_event), NULL);
gtk_widget_grab_focus (pm->button_add);
gtk_widget_show_all (pm->hbox);
return pm->dialog;
......
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