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.
This commit is contained in:
Tim Janik 1998-04-28 23:03:26 +00:00 committed by Tim Janik
parent dd27ee9478
commit 2114b5abeb
4 changed files with 17 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);

View File

@ -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);

View File

@ -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);