Enlightenment CVS committal Author : davemds Project : e17 Module : proto/edje_editor
Dir : e17/proto/edje_editor/src/bin Modified Files: edje_editor_gradient.c Log Message: * Update gradient combobox when add/remove spectra. Thanks to Toma for spotting out =================================================================== RCS file: /cvs/e/e17/proto/edje_editor/src/bin/edje_editor_gradient.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- edje_editor_gradient.c 12 Jul 2008 14:45:03 -0000 1.4 +++ edje_editor_gradient.c 13 Jul 2008 13:40:53 -0000 1.5 @@ -224,6 +224,7 @@ etk_signal_connect("value-changed", ETK_OBJECT(UI_GradientRel2YOffsetSpinner), ETK_CALLBACK(_gradient_RelSpinners_value_changed_cb), (void *)REL2YO_SPINNER); + etk_signal_connect("item-activated", ETK_OBJECT(UI_GradientTypeComboBox), ETK_CALLBACK(_gradient_type_combo_activated_cb), NULL); etk_signal_connect("item-activated", ETK_OBJECT(UI_GradientSpectraComboBox), @@ -359,16 +360,25 @@ Etk_Combobox_Item *item; Evas_List *spectrums, *l; + //Block signal propagation + etk_signal_block("item-activated", ETK_OBJECT(UI_GradientSpectraComboBox), + ETK_CALLBACK(_gradient_spectra_combo_activated_cb), NULL); + + etk_combobox_clear(ETK_COMBOBOX(UI_GradientSpectraComboBox)); + spectrums = l = edje_edit_spectrum_list_get(edje_o); - while(l) { item = etk_combobox_item_append(ETK_COMBOBOX(UI_GradientSpectraComboBox), etk_image_new_from_edje(EdjeFile,"SPECTRA.PNG"), (char*)l->data); l = l->next; } - edje_edit_string_list_free(spectrums); + + //Reenable signal propagation + etk_signal_unblock("item-activated", ETK_OBJECT(UI_GradientSpectraComboBox), + ETK_CALLBACK(_gradient_spectra_combo_activated_cb), NULL); + } Etk_Bool ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs