Enlightenment CVS committal
Author : moom
Project : e17
Module : proto
Dir : e17/proto/etk/src/bin
Modified Files:
etk_notebook_test.c
Log Message:
* [Notebook] Commit back the changes of Lok to show/hide the tab bar.
The functions have been renamed to etk_notebook_tabs_visible_set/get().
Thanks to Lok :)
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_notebook_test.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- etk_notebook_test.c 2 Jul 2006 04:01:19 -0000 1.8
+++ etk_notebook_test.c 8 Aug 2006 16:33:00 -0000 1.9
@@ -3,6 +3,7 @@
static Etk_Widget *_etk_test_notebook_page1_widget_create();
static Etk_Widget *_etk_test_notebook_page2_widget_create();
+static void _etk_test_notebook_hide_tabs_toggled_cb(Etk_Object *object, void
*data);
/* Creates the window for the notebook test */
void etk_test_notebook_window_create(void *data)
@@ -55,10 +56,15 @@
etk_signal_connect_swapped("clicked", ETK_OBJECT(button),
ETK_CALLBACK(etk_notebook_page_next), notebook);
etk_box_pack_start(ETK_BOX(hbox), button, ETK_FALSE, ETK_TRUE, 0);
+ /* Create the hide tabs toggle button */
+ button = etk_toggle_button_new_with_label("Hide tabs");
+ etk_signal_connect("toggled", ETK_OBJECT(button),
ETK_CALLBACK(_etk_test_notebook_hide_tabs_toggled_cb), notebook);
+ etk_box_pack_start(ETK_BOX(hbox), button, ETK_FALSE, ETK_TRUE, 0);
+
etk_widget_show_all(win);
}
-/* Create the widget for the first page */
+/* Creates the widget for the first page */
static Etk_Widget *_etk_test_notebook_page1_widget_create()
{
Etk_Widget *table;
@@ -106,7 +112,7 @@
return table;
}
-/* Create the widget for the second page */
+/* Creates the widget for the second page */
static Etk_Widget *_etk_test_notebook_page2_widget_create()
{
Etk_Widget *alignment;
@@ -140,4 +146,13 @@
etk_box_pack_start(ETK_BOX(vbox), button_radio, ETK_FALSE, ETK_FALSE, 0);
return alignment;
+}
+
+/* Shows/hides the tab bar when the "hide tabs" button is toggled */
+static void _etk_test_notebook_hide_tabs_toggled_cb(Etk_Object *object, void
*data)
+{
+ Etk_Bool state;
+
+ state = etk_toggle_button_active_get(ETK_TOGGLE_BUTTON(object));
+ etk_notebook_tabs_visible_set(ETK_NOTEBOOK(data), !state);
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs