Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests/dnd_snoop


Modified Files:
        ewl_dnd_snoop.c 


Log Message:
Add a button for drag testing.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/dnd_snoop/ewl_dnd_snoop.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_dnd_snoop.c     17 Oct 2006 04:59:54 -0000      1.1
+++ ewl_dnd_snoop.c     29 Nov 2006 15:32:37 -0000      1.2
@@ -99,12 +99,26 @@
        ewl_container_child_append(EWL_CONTAINER(scroll), text);
        ewl_widget_show(text);
 
+       o = ewl_hbox_new();
+       ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
+       ewl_container_child_append(box, o);
+       ewl_widget_show(o);
+
+       box = EWL_CONTAINER(o);
+
        o = ewl_button_new();
        ewl_button_label_set(EWL_BUTTON(o), "Clear");
        ewl_container_child_append(EWL_CONTAINER(box), o);
        ewl_callback_append(o, EWL_CALLBACK_CLICKED, 
                                        ewl_dnd_snoop_cb_clear, NULL);
        ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
+       ewl_widget_show(o);
+
+       o = ewl_button_new();
+       ewl_button_label_set(EWL_BUTTON(o), "Drag This");
+       ewl_dnd_provided_types_set(o, text_types);
+       ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
+       ewl_container_child_append(box, o);
        ewl_widget_show(o);
 
        return 1;



-------------------------------------------------------------------------
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

Reply via email to