Enlightenment CVS committal
Author : moom
Project : e17
Module : proto
Dir : e17/proto/etk/data/themes/default/macros
Modified Files:
focus.edc
Log Message:
Changes:
--------
- [Etk_Colorpicker] more work in the colorpicker
- [Etk_Menu_Item] etk_menu_item_set_from_stock() now sets the label of a menu
item, and if the item is a Etk_Menu_Item_Image, it changes its icon.
- [Etk_Message_Dialog] fix a segv in Etk_Message_Dialog
- [Etk_Message_Dialog] *API BREAK* etk_message_dialog_icon_set/get() -->
etk_message_dialog_message_type_set/get()
- [Etk_Message_Dialog] *API BREAK* the property "dialog_type" --> "message_type"
- [Etk_Message_Dialog] etk_message_dialog_message_type_set() now also changes
the title of the message dialog
- [Etk_Message_Dialog] etk_message_dialog_message_type_set() now also changes
the title of the message dialog
- [Etk_Notebook] *API BREAK* etk_notebook_page_num_get() -->
etk_notebook_page_index_get()
- [Etk_Notebook] *API BREAK* etk_notebook_prev/next_page() -->
etk_notebook_page_prev/next()
- [Etk_Widget] fix a segv with the "unrealize" signal
- [Automake] The theme is now automatically recompiled each time an .edc file
is modified
Documentation:
--------------
- Etk_Menu_Item.c/h
- Etk_Message_Dialog.c/h
- Etk_Notebook.c/h
===================================================================
RCS file: /cvs/e/e17/proto/etk/data/themes/default/macros/focus.edc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- focus.edc 13 Feb 2006 23:28:43 -0000 1.2
+++ focus.edc 25 May 2006 21:06:59 -0000 1.3
@@ -1,6 +1,6 @@
#define FOCUS_GLOW(x1, y1, offx1, offy1, to1, x2, y2, offx2, offy2, to2) \
part { \
- name: "focus"; \
+ name: "focus_glow"; \
mouse_events: 0; \
description { \
state: "default" 0.0; \
@@ -35,9 +35,68 @@
#define FOCUS_GLOW_ACTION \
action: STATE_SET "focused" 0.0; \
transition: DECELERATE 0.2; \
-target: "focus";
+target: "focus_glow";
#define UNFOCUS_GLOW_ACTION \
action: STATE_SET "default" 0.0; \
transition: ACCELERATE 0.5; \
-target: "focus";
+target: "focus_glow";
+
+#define FOCUS_RECT_PART(part_name, to_part, x1, y1, offx1, offy1, x2, y2,
offx2, offy2) \
+part { \
+ name: part_name; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ visible: 0; \
+ color: 255 255 255 0; \
+ rel1 { \
+ relative: x1 y1; \
+ offset: offx1 offy1; \
+ to: to_part;\
+ } \
+ rel2 { \
+ relative: x2 y2; \
+ offset: offx2 offy2; \
+ to: to_part; \
+ } \
+ image { \
+ normal: "focus_rect.png"; \
+ } \
+ fill { \
+ smooth: 0; \
+ size { \
+ relative: 0.0 0.0; \
+ offset: 32 32; \
+ } \
+ } \
+ } \
+ description { \
+ state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ color: 255 255 255 255; \
+ } \
+}
+
+#define FOCUS_RECT(to_part, x1, y1, offx1, offy1, x2, y2, offx2, offy2) \
+FOCUS_RECT_PART("focus_rect_top", to_part, x1, y1, offx1, offy1, x2, y1,
offx2, offy1) \
+FOCUS_RECT_PART("focus_rect_left", to_part, x1, y1, offx1, (offy1 + 1), x1,
y2, offx1, (offy2 - 1)) \
+FOCUS_RECT_PART("focus_rect_right", to_part, x2, y1, offx2, (offy1 + 1), x2,
y2, offx2, (offy2 - 1)) \
+FOCUS_RECT_PART("focus_rect_bottom", to_part, x1, y2, offx1, offy2, x2, y2,
offx2, offy2)
+
+#define FOCUS_RECT_ACTION \
+action: STATE_SET "focused" 0.0; \
+transition: LINEAR 0.2; \
+target: "focus_rect_top"; \
+target: "focus_rect_left"; \
+target: "focus_rect_right"; \
+target: "focus_rect_bottom";
+
+#define UNFOCUS_RECT_ACTION \
+action: STATE_SET "default" 0.0; \
+transition: LINEAR 0.2; \
+target: "focus_rect_top"; \
+target: "focus_rect_left"; \
+target: "focus_rect_right"; \
+target: "focus_rect_bottom";
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs