Commit c8f36b0e authored by Michael Meeks's avatar Michael Meeks
Browse files

Fix notebook scrolling and focus for lots of sheets.

parent c13d0dde
1999-08-16 Michael Meeks <michael@imaginator.com>
* src/widget-editable-label.c (el_start_editing): Remove
GTK_WIDGET_SET/UNSET_FLAGS (GTK_CAN_FOCUS): broken for
scrolling notebooks.
(el_stop_editing): ditto.
* src/workbook.c (workbook_setup_sheets): remove
unset FOCUS on notebook.
1999-08-15 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-stat.c: Implemented TREND (mostly). Made the second
......
......@@ -42,6 +42,7 @@ Jay:
Miguel:
* Removed function wizard.
* Scrolling sheet tabs.
--------------------------------------------------------------------------
......
1999-08-16 Michael Meeks <michael@imaginator.com>
* src/widget-editable-label.c (el_start_editing): Remove
GTK_WIDGET_SET/UNSET_FLAGS (GTK_CAN_FOCUS): broken for
scrolling notebooks.
(el_stop_editing): ditto.
* src/workbook.c (workbook_setup_sheets): remove
unset FOCUS on notebook.
1999-08-15 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-stat.c: Implemented TREND (mostly). Made the second
......
......@@ -120,12 +120,6 @@ el_start_editing (El *el, const char *text)
{
GtkWidget *toplevel;
/*
* Temporarly be focusable
*/
GTK_WIDGET_SET_FLAGS (GTK_WIDGET (el), GTK_CAN_FOCUS);
gtk_widget_grab_focus (GTK_WIDGET (el));
/*
* Create a GtkEntry to actually do the editing.
*/
......@@ -140,8 +134,6 @@ el_start_editing (El *el, const char *text)
gtk_grab_add (GTK_WIDGET (el));
/* gtk_editable_select_region (GTK_EDITABLE (el->entry, 0, -1)); */
/*
* Syncronize the GtkEntry with the label
*/
......@@ -170,7 +162,6 @@ el_stop_editing (El *el)
}
gtk_grab_remove (GTK_WIDGET (el));
GTK_WIDGET_UNSET_FLAGS (GTK_WIDGET (el), GTK_CAN_FOCUS);
}
static void
......
......@@ -120,12 +120,6 @@ el_start_editing (El *el, const char *text)
{
GtkWidget *toplevel;
/*
* Temporarly be focusable
*/
GTK_WIDGET_SET_FLAGS (GTK_WIDGET (el), GTK_CAN_FOCUS);
gtk_widget_grab_focus (GTK_WIDGET (el));
/*
* Create a GtkEntry to actually do the editing.
*/
......@@ -140,8 +134,6 @@ el_start_editing (El *el, const char *text)
gtk_grab_add (GTK_WIDGET (el));
/* gtk_editable_select_region (GTK_EDITABLE (el->entry, 0, -1)); */
/*
* Syncronize the GtkEntry with the label
*/
......@@ -170,7 +162,6 @@ el_stop_editing (El *el)
}
gtk_grab_remove (GTK_WIDGET (el));
GTK_WIDGET_UNSET_FLAGS (GTK_WIDGET (el), GTK_CAN_FOCUS);
}
static void
......
......@@ -1164,7 +1164,6 @@ static void
workbook_setup_sheets (Workbook *wb)
{
wb->notebook = gtk_notebook_new ();
GTK_WIDGET_UNSET_FLAGS (wb->notebook, GTK_CAN_FOCUS);
gtk_signal_connect_after (GTK_OBJECT (wb->notebook), "switch_page",
GTK_SIGNAL_FUNC(do_focus_sheet), wb);
......
Supports Markdown
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