summaryrefslogtreecommitdiff
path: root/src/bin/e_widget_toolbar.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-12-10 10:48:42 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-12-10 10:48:42 +0000
commit580e7b68c9ee2a9c14ae12e5a4980d81dd67ca96 (patch)
treefdb98f11c7585bd5967c7c195134550fd91dc809 /src/bin/e_widget_toolbar.c
parent1f5f230345a8b177677b6bd5a369559a15435cdd (diff)
avoid o_box being null by creating early.
SVN revision: 38081
Diffstat (limited to 'src/bin/e_widget_toolbar.c')
-rw-r--r--src/bin/e_widget_toolbar.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/e_widget_toolbar.c b/src/bin/e_widget_toolbar.c
index 6c827c8..0cb53b5 100644
--- a/src/bin/e_widget_toolbar.c
+++ b/src/bin/e_widget_toolbar.c
@@ -52,6 +52,9 @@ e_widget_toolbar_add(Evas *evas, int icon_w, int icon_h)
52 52
53 o = e_scrollframe_add(evas); 53 o = e_scrollframe_add(evas);
54 wd->o_base = o; 54 wd->o_base = o;
55 o = e_box_add(evas);
56 wd->o_box = o;
57 o = wd->o_base;
55 e_scrollframe_custom_theme_set(o, "base/theme/widgets", "e/widgets/toolbar"); 58 e_scrollframe_custom_theme_set(o, "base/theme/widgets", "e/widgets/toolbar");
56 e_scrollframe_single_dir_set(o, 1); 59 e_scrollframe_single_dir_set(o, 1);
57 e_scrollframe_policy_set(o, E_SCROLLFRAME_POLICY_AUTO, E_SCROLLFRAME_POLICY_OFF); 60 e_scrollframe_policy_set(o, E_SCROLLFRAME_POLICY_AUTO, E_SCROLLFRAME_POLICY_OFF);
@@ -66,9 +69,8 @@ e_widget_toolbar_add(Evas *evas, int icon_w, int icon_h)
66 evas_object_show(o); 69 evas_object_show(o);
67 e_widget_sub_object_add(obj, o); 70 e_widget_sub_object_add(obj, o);
68 e_widget_resize_object_set(obj, o); 71 e_widget_resize_object_set(obj, o);
69 72
70 o = e_box_add(evas); 73 o = wd->o_box;
71 wd->o_box = o;
72 e_box_orientation_set(o, 1); 74 e_box_orientation_set(o, 1);
73 e_box_homogenous_set(o, 1); 75 e_box_homogenous_set(o, 1);
74 e_scrollframe_child_set(wd->o_base, o); 76 e_scrollframe_child_set(wd->o_base, o);