Commit 2114b5ab authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

enable adjustment of the scrolled window to keep the focused font visible.

Wed Apr 29 00:56:19 1998  Tim Janik  <timj@gtk.org>

        * app/text_tool.c (text_create_dialog): enable adjustment of the
                scrolled window to keep the focused font visible.
parent dd27ee94
Wed Apr 29 00:56:19 1998 Tim Janik <timj@gtk.org>
* app/text_tool.c (text_create_dialog): enable adjustment of the
scrolled window to keep the focused font visible.
Tue Apr 28 15:09:02 PDT 1998 Manish Singh <yosh@gimp.org>
* plug-ins/CEL/CEL.c
......
......@@ -445,7 +445,10 @@ text_create_dialog (TextTool *text_tool)
text_tool->font_list = gtk_list_new ();
gtk_container_add (GTK_CONTAINER (list_box), text_tool->font_list);
gtk_list_set_selection_mode (GTK_LIST (text_tool->font_list), GTK_SELECTION_BROWSE);
gtk_container_set_focus_vadjustment (GTK_CONTAINER (text_tool->font_list),
gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (list_box)));
GTK_WIDGET_UNSET_FLAGS (GTK_SCROLLED_WINDOW (list_box)->vscrollbar, GTK_CAN_FOCUS);
for (i = 0; i < nfonts; i++)
{
list_item = gtk_list_item_new_with_label (font_info[i]->family);
......
......@@ -445,7 +445,10 @@ text_create_dialog (TextTool *text_tool)
text_tool->font_list = gtk_list_new ();
gtk_container_add (GTK_CONTAINER (list_box), text_tool->font_list);
gtk_list_set_selection_mode (GTK_LIST (text_tool->font_list), GTK_SELECTION_BROWSE);
gtk_container_set_focus_vadjustment (GTK_CONTAINER (text_tool->font_list),
gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (list_box)));
GTK_WIDGET_UNSET_FLAGS (GTK_SCROLLED_WINDOW (list_box)->vscrollbar, GTK_CAN_FOCUS);
for (i = 0; i < nfonts; i++)
{
list_item = gtk_list_item_new_with_label (font_info[i]->family);
......
......@@ -445,7 +445,10 @@ text_create_dialog (TextTool *text_tool)
text_tool->font_list = gtk_list_new ();
gtk_container_add (GTK_CONTAINER (list_box), text_tool->font_list);
gtk_list_set_selection_mode (GTK_LIST (text_tool->font_list), GTK_SELECTION_BROWSE);
gtk_container_set_focus_vadjustment (GTK_CONTAINER (text_tool->font_list),
gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (list_box)));
GTK_WIDGET_UNSET_FLAGS (GTK_SCROLLED_WINDOW (list_box)->vscrollbar, GTK_CAN_FOCUS);
for (i = 0; i < nfonts; i++)
{
list_item = gtk_list_item_new_with_label (font_info[i]->family);
......
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