1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 @GtkScrollArea is a helper to create specific views,
6 which are using scrollable area.
8 <!-- ##### SECTION Long_Description ##### -->
10 When application developer needs a view which contains multiple
11 components, from which some has built-in @GtkScrolledWindow handling.
12 (eg. @GtkTreeView) These widgets creates a problem which can be seen as
13 unfunctional scrolling. @GtkScrollArea creates an area which handles
14 these scrolling problems.
19 Following code is not a working copy,
20 it's only giving an example of possible situation
23 window = gtk_window_new ();
25 buttonA = gtk_button_new ();
26 buttonB = gtk_button_new ();
27 treeview = gtk_tree_view_new ();
28 swindow = gtk_scrolled_window_new ();
30 scrollarea = gtk_scroll_area_new (swindow, treeview);
33 Pack the buttons to the box, the box to the scrolled window
34 and the scrolled window to the window.
37 gtk_box_pack (box, scrollarea);
40 You can trye following situation without scroll area and
41 notice that the treeview is not working as well as it should
47 <!-- ##### SECTION See_Also ##### -->
52 <!-- ##### FUNCTION hildon_scroll_area_new ##### -->