Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_combo.c Log Message: - use signals instead of separate groups to change the button appearance on the combo widget =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_combo.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -3 -r1.41 -r1.42 --- ewl_combo.c 7 Dec 2006 20:04:32 -0000 1.41 +++ ewl_combo.c 2 Jan 2007 17:02:17 -0000 1.42 @@ -53,7 +53,6 @@ combo->button = ewl_button_new(); ewl_container_child_append(EWL_CONTAINER(combo), combo->button); - ewl_widget_appearance_set(combo->button, "decrement"); ewl_widget_internal_set(combo->button, TRUE); ewl_object_alignment_set(EWL_OBJECT(combo->button), EWL_FLAG_ALIGN_RIGHT); @@ -171,13 +170,13 @@ /* XXX put checks to make sure all the needed module and view * function callbacks are setup */ - /* change the button appearance and expand the menu */ - ewl_widget_appearance_set(combo->button, "increment"); - ewl_widget_show(combo->popup); ewl_window_raise(EWL_WINDOW(combo->popup)); ewl_widget_focus_send(EWL_WIDGET(combo->popup)); + ewl_widget_state_set(combo->button, "expanded", + EWL_STATE_PERSISTENT); + if (!ewl_mvc_dirty_get(EWL_MVC(combo))) DRETURN(DLEVEL_STABLE); @@ -226,7 +225,8 @@ combo = EWL_COMBO(data); ewl_widget_hide(combo->popup); - ewl_widget_appearance_set(combo->button, "decrement"); + ewl_widget_state_set(combo->button, "collapsed", + EWL_STATE_PERSISTENT); } DLEAVE_FUNCTION(DLEVEL_STABLE); @@ -256,7 +256,8 @@ ewl_mvc_selected_set(EWL_MVC(combo), i, -1); ewl_widget_hide(combo->popup); - ewl_widget_appearance_set(combo->button, "decrement"); + ewl_widget_state_set(combo->button, "collapsed", + EWL_STATE_PERSISTENT); DLEAVE_FUNCTION(DLEVEL_STABLE); } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs