Commit e4faa34c authored by Jon K Hellan's avatar Jon K Hellan Committed by Jon Kåre Hellan

Set invisible to remove flicker

2000-01-18  Jon K Hellan  <hellan@acm.org>

	* src/dialogs/autocorrect.glade, src/dialogs/autosave.glade,
	  src/dialogs/autosave-prompt.glade,
	  src/dialogs/autocorrect-exceptions.glade: Set invisible to
	  remove flicker

	* src/plugin-manager.c (plugin_manager_new): Give list initial
	keyboard focus, make "add" button default.
	(remove_cb): Select next row in list after remove
	(plugin_manager_new): Internationalize texts.

	* src/dialogs/dialog-cell-sort.c (order_box_set_default): Set
	initial keyboard focus.
	(dialog_cell_sort): Use gnome_dialog_close_hides to ensure dialog
	is destroyed exactly once.
	(dialog_cell_sort_adv): Ensure dialog is destroyed exactly once.
	* src/dialogs/cell-sort.glade: Set initial focus for advanced sort
	dialog.
parent 9c09cd96
2000-01-18 Jon K Hellan <hellan@acm.org>
* src/dialogs/autocorrect.glade, src/dialogs/autosave.glade,
src/dialogs/autosave-prompt.glade,
src/dialogs/autocorrect-exceptions.glade: Set invisible to
remove flicker
* src/plugin-manager.c (plugin_manager_new): Give list initial
keyboard focus, make "add" button default.
(remove_cb): Select next row in list after remove
(plugin_manager_new): Internationalize texts.
* src/dialogs/dialog-cell-sort.c (order_box_set_default): Set
initial keyboard focus.
(dialog_cell_sort): Use gnome_dialog_close_hides to ensure dialog
is destroyed exactly once.
(dialog_cell_sort_adv): Ensure dialog is destroyed exactly once.
* src/dialogs/cell-sort.glade: Set initial focus for advanced sort
dialog.
2000-01-17 Morten Welinder <terra@diku.dk>
* src/auto-format.c (do_af_suggest): The difference of two dates
......
2000-01-18 Jon K Hellan <hellan@acm.org>
* src/dialogs/autocorrect.glade, src/dialogs/autosave.glade,
src/dialogs/autosave-prompt.glade,
src/dialogs/autocorrect-exceptions.glade: Set invisible to
remove flicker
* src/plugin-manager.c (plugin_manager_new): Give list initial
keyboard focus, make "add" button default.
(remove_cb): Select next row in list after remove
(plugin_manager_new): Internationalize texts.
* src/dialogs/dialog-cell-sort.c (order_box_set_default): Set
initial keyboard focus.
(dialog_cell_sort): Use gnome_dialog_close_hides to ensure dialog
is destroyed exactly once.
(dialog_cell_sort_adv): Ensure dialog is destroyed exactly once.
* src/dialogs/cell-sort.glade: Set initial focus for advanced sort
dialog.
2000-01-17 Morten Welinder <terra@diku.dk>
* src/auto-format.c (do_af_suggest): The difference of two dates
......
......@@ -27,6 +27,7 @@
<widget>
<class>GnomeDialog</class>
<name>AutoCorrectExceptions</name>
<visible>False</visible>
<title>AutoCorrect Exceptions</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
......
......@@ -27,6 +27,7 @@
<widget>
<class>GnomeDialog</class>
<name>AutoCorrect</name>
<visible>False</visible>
<title>Auto Correct</title>
<type>GTK_WINDOW_DIALOG</type>
<position>GTK_WIN_POS_NONE</position>
......
......@@ -27,6 +27,7 @@
<widget>
<class>GnomeDialog</class>
<name>AutoSavePrompt</name>
<visible>False</visible>
<title>Auto Save</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
......
......@@ -27,6 +27,7 @@
<widget>
<class>GnomeDialog</class>
<name>AutoSave</name>
<visible>False</visible>
<title>Auto Save</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
......
......@@ -337,6 +337,7 @@
<class>GtkCheckButton</class>
<name>cell_sort_adv_case</name>
<can_focus>True</can_focus>
<has_focus>True</has_focus>
<label>Case sensitive</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
......
......@@ -106,7 +106,8 @@ dialog_cell_sort_adv (GtkWidget *widget, OrderBox *orderbox)
orderbox->val = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (rb1));
}
gtk_object_destroy (GTK_OBJECT (dialog));
if (btn != -1)
gtk_object_destroy (GTK_OBJECT (dialog));
gtk_object_unref (GTK_OBJECT (gui));
}
......@@ -164,7 +165,7 @@ order_box_new (GtkWidget * parent, const gchar *frame_text,
static void
order_box_set_default (OrderBox *orderbox)
{
gtk_widget_grab_focus (orderbox->rangetext);
gtk_widget_grab_focus (GTK_COMBO (orderbox->rangetext)->entry);
}
static void
......@@ -647,7 +648,8 @@ dialog_cell_sort (Workbook *inwb, Sheet *sheet)
GTK_SIGNAL_FUNC (dialog_cell_sort_cols_toggled), &sort_flow);
gnome_dialog_set_parent (GNOME_DIALOG (sort_flow.dialog), GTK_WINDOW (sort_flow.wb->toplevel));
gnome_dialog_close_hides(GNOME_DIALOG (sort_flow.dialog), TRUE);
sort_flow.clause_box = gtk_vbox_new (FALSE, FALSE);
gtk_table_attach_defaults (GTK_TABLE (table), sort_flow.clause_box, 0, 1, 0, 1);
......
......@@ -74,6 +74,11 @@ remove_cb (GtkWidget *button, PluginManager *pm)
plugin_unload (pm->workbook, pd);
populate_clist (pm);
if (GTK_CLIST (pm->clist)->rows > row)
gtk_clist_select_row(GTK_CLIST (pm->clist), row, 0);
else
gnome_dialog_set_sensitive (GNOME_DIALOG (pm->dialog),
BUTTON_REMOVE, FALSE);
}
static void
......@@ -110,9 +115,9 @@ plugin_manager_new (Workbook *wb)
return NULL;
pm->workbook = wb;
pm->dialog = gnome_dialog_new("Plug-in Manager",
"Add",
"Remove",
pm->dialog = gnome_dialog_new(_("Plug-in Manager"),
_("Add"),
_("Remove"),
GNOME_STOCK_BUTTON_CLOSE,
NULL);
......@@ -134,6 +139,14 @@ plugin_manager_new (Workbook *wb)
gtk_widget_realize (pm->clist);
populate_clist (pm);
if (GTK_CLIST (pm->clist)->rows > 0) {
gtk_widget_grab_focus (pm->clist);
gtk_clist_select_row(GTK_CLIST (pm->clist), 0, 0);
} else {
gnome_dialog_set_sensitive (GNOME_DIALOG (pm->dialog),
BUTTON_REMOVE, FALSE);
}
gnome_dialog_button_connect(GNOME_DIALOG (pm->dialog), BUTTON_ADD,
GTK_SIGNAL_FUNC (add_cb), pm);
......@@ -152,9 +165,7 @@ plugin_manager_new (Workbook *wb)
gtk_signal_connect (GTK_OBJECT (pm->dialog), "key_press_event",
GTK_SIGNAL_FUNC (pm_key_event), NULL);
gnome_dialog_set_sensitive (GNOME_DIALOG (pm->dialog),
BUTTON_REMOVE, FALSE);
gnome_dialog_set_default (GNOME_DIALOG (pm->dialog), BUTTON_CLOSE);
gnome_dialog_set_default (GNOME_DIALOG (pm->dialog), BUTTON_ADD);
gtk_window_set_policy (GTK_WINDOW (pm->dialog), FALSE, TRUE, FALSE);
gtk_widget_show_all (GNOME_DIALOG (pm->dialog)->vbox);
......
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