Enlightenment CVS committal

Author  : moom
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/bin


Modified Files:
        Makefile.am etk_canvas_test.c etk_embed_test.c 
        etk_iconbox_test.c etk_menu_test.c etk_test.c etk_test.h 
        etk_text_view_test.c etk_tree_test.c 


Log Message:
A lot of changes and API breaks. Most of the existing apps are probably 
broken...

* [Etk_Theme] The whole theme system has been rewritten to make it simpler and 
more powerful
* [Etk_Theme] The widgets now use the same theme naming convention as e17 (i.e. 
"etk/widget" for the groups, "etk.swallow.name" for the swallow parts, 
"etk.text.name" for the text parts, ...). It means that all the (few) existing 
themes are broken :(
* [Etk_Main] Replace the main Ecore_Job by an idle-enterer: it improves the 
perfs A LOT when a large part of the screen has to be redrawn (e.g scrolling 
the iconbox or the tree is now ultra fast!!)
* [Etk_Selection] Rewrite the selection/clipboard system
* [Etk_Widgets] Fix problems caused by the premul-color change
* [Etk_Entry] The entry has received more work: it is now entirely themable and 
it now supports copy/paste
* [Etk_Box] Fix a bug/segv that happened when more than one child were packed 
in the end-group
* [Etk_Toolbar] Some work on the toolbar
* [Etk_Button] Bugs have been fixed, and the code has been fully 
documented/cleaned up
* [Etk_Label] Bugs have been fixed, and the code has been fully 
documented/cleaned up
* [Etk_Dialog] The behaviour of etk_dialog_pack_*() has been changed: packing a 
widget in the end-group now *appends* it into this group (it was prepended 
before)
* [X11 engine] Fix a bug with the popup window creation (the mouse was not 
correctly grabbed)
* [Etk_Statusbar] The API has been changed: etk_statusbar_push/pop/remove() --> 
etk_statusbar_message_push/pop/remove()
* [Etk_Tooltip] The tooltips are disabled for now since they are a bit buggy
* [Etk_Widget] etk_widget_visibility_locked_set/get() --> 
etk_widget_internal_set/get()
* [Etk_Toplevel] Etk_Toplevel_Widget --> Etk_Toplevel
* [Etk_Container] Add etk_container_remove_all()
* [Etk_Iconbox] Add etk_iconbox_scrolled_view_get()
* [Etk_Main] Don't use the "-e" program arg to detect the engine to use
* [Documentation] More documentation for a lot of widgets

More API breaks to come... enjoy! :)


===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/Makefile.am,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- Makefile.am 24 Jun 2006 15:59:12 -0000      1.16
+++ Makefile.am 6 Oct 2006 17:04:13 -0000       1.17
@@ -34,7 +34,7 @@
 etk_filechooser_test.c \
 etk_notebook_test.c \
 etk_progress_bar_test.c \
-etk_xdnd_test.c \
+etk_dnd_test.c \
 etk_combobox_test.c \
 etk_iconbox_test.c \
 etk_text_view_test.c \
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_canvas_test.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- etk_canvas_test.c   16 Aug 2006 16:38:49 -0000      1.11
+++ etk_canvas_test.c   6 Oct 2006 17:04:13 -0000       1.12
@@ -31,7 +31,8 @@
    etk_widget_size_request_set(canvas, 300, 200);
    etk_box_append(ETK_BOX(vbox), canvas, ETK_BOX_START, ETK_BOX_EXPAND_FILL, 
0);
 
-   button = etk_button_new_with_label("Add object");
+   button = etk_button_new_from_stock(ETK_STOCK_LIST_ADD);
+   etk_button_label_set(ETK_BUTTON(button), "Add object");
    etk_signal_connect_swapped("clicked", ETK_OBJECT(button), 
ETK_CALLBACK(_etk_test_canvas_object_add), canvas);
    etk_box_append(ETK_BOX(vbox), button, ETK_BOX_START, ETK_BOX_NONE, 0);
 
@@ -71,6 +72,8 @@
       g = rand() % 255;
       b = rand() % 255;
       a = ETK_MAX(rand() % 255, 40);
+      evas_color_argb_premul(a, &r, &g, &b);
+      
       evas_object_color_set(object, r, g, b, a);
    }
    /* Or add an image */
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_embed_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- etk_embed_test.c    3 Sep 2006 18:36:11 -0000       1.7
+++ etk_embed_test.c    6 Oct 2006 17:04:13 -0000       1.8
@@ -178,7 +178,7 @@
    
    evas_object_move(panel_clip, 0, y);
    evas_object_resize(panel_clip, win_w, win_h - y);
-   evas_object_color_set(panel_clip, 255, 255, 255, alpha);
+   evas_object_color_set(panel_clip, alpha, alpha, alpha, alpha);
    
    etk_widget_size_request(embed, &embed_size);
    evas_object_move(embed_object, (win_w - embed_size.w) / 2, y + 20);
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_iconbox_test.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- etk_iconbox_test.c  26 Aug 2006 09:38:06 -0000      1.8
+++ etk_iconbox_test.c  6 Oct 2006 17:04:13 -0000       1.9
@@ -42,6 +42,8 @@
 {
    static Etk_Widget *win = NULL;
    Etk_Widget *iconbox;
+   Etk_Iconbox_Model *mini_model;
+   int i;
    
    if (win)
    {
@@ -51,7 +53,6 @@
   
    win = etk_window_new();
    etk_window_title_set(ETK_WINDOW(win), "Etk Iconbox Test");
-   etk_widget_size_request_set(ETK_WIDGET(win), 100, 100);
    etk_window_resize(ETK_WINDOW(win), 600, 330);
    etk_signal_connect("delete_event", ETK_OBJECT(win), 
ETK_CALLBACK(etk_window_hide_on_delete), NULL);
    
@@ -72,7 +73,7 @@
    
    if (!(iconbox = ETK_ICONBOX(object)))
       return;
-   if (event->button != 1 || !(event->flags & ETK_MOUSE_DOUBLE_CLICK))
+   if (event->button != 1 || !(event->flags & ETK_MOUSE_DOUBLE_CLICK) || 
(event->flags & ETK_MOUSE_TRIPLE_CLICK))
       return;
    if (!(icon = etk_iconbox_icon_get_at_xy(iconbox, event->canvas.x, 
event->canvas.y, ETK_FALSE, ETK_TRUE, ETK_TRUE)))
       return;
@@ -98,7 +99,7 @@
       return;
    
    etk_iconbox_clear(iconbox);
-   etk_iconbox_append(iconbox, etk_theme_icon_theme_get(), "actions/go-up_48", 
"..");
+   etk_iconbox_append(iconbox, etk_theme_icon_get(), "actions/go-up_48", "..");
    
    /* First, add the folders */
    ecore_list_goto_first(files);
@@ -111,7 +112,7 @@
       if (!ecore_file_is_dir(file_path))
          continue;
       
-      etk_iconbox_append(iconbox, etk_theme_icon_theme_get(), 
"places/folder_48", filename);
+      etk_iconbox_append(iconbox, etk_theme_icon_get(), "places/folder_48", 
filename);
    }
    
    /* Then the files */
@@ -141,7 +142,7 @@
          }
       }
       
-      etk_iconbox_append(iconbox, etk_theme_icon_theme_get(), icon ? icon : 
"mimetypes/text-x-generic_48", filename);
+      etk_iconbox_append(iconbox, etk_theme_icon_get(), icon ? icon : 
"mimetypes/text-x-generic_48", filename);
    }
    
    ecore_list_destroy(files);
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_menu_test.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- etk_menu_test.c     17 Aug 2006 15:44:07 -0000      1.17
+++ etk_menu_test.c     6 Oct 2006 17:04:13 -0000       1.18
@@ -242,12 +242,12 @@
    
    if (!(item = ETK_MENU_ITEM(object)))
       return;
-   etk_statusbar_push(ETK_STATUSBAR(_etk_test_menu_statusbar), 
etk_menu_item_label_get(item), 0);
+   etk_statusbar_message_push(ETK_STATUSBAR(_etk_test_menu_statusbar), 
etk_menu_item_label_get(item), 0);
 }
 
 /* Called when a menu item is deselected */
 static void _etk_test_menu_item_deselected_cb(Etk_Object *object, void *data)
 {
-   etk_statusbar_pop(ETK_STATUSBAR(_etk_test_menu_statusbar), 0);
+   etk_statusbar_message_pop(ETK_STATUSBAR(_etk_test_menu_statusbar), 0);
 }
 
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_test.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- etk_test.c  15 Aug 2006 16:33:26 -0000      1.28
+++ etk_test.c  6 Oct 2006 17:04:13 -0000       1.29
@@ -98,8 +98,8 @@
       ETK_TEST_BASIC_WIDGET
    },
    {
-      "X Drag / Drop",
-      etk_test_xdnd_window_create,
+      "Drag and Drop",
+      etk_test_dnd_window_create,
       ETK_TEST_MISC
    },
    {
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_test.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- etk_test.h  24 Jun 2006 15:59:12 -0000      1.16
+++ etk_test.h  6 Oct 2006 17:04:13 -0000       1.17
@@ -17,7 +17,7 @@
 void etk_test_filechooser_window_create(void *data);
 void etk_test_notebook_window_create(void *data);
 void etk_test_progress_bar_window_create(void *data);
-void etk_test_xdnd_window_create(void *data);
+void etk_test_dnd_window_create(void *data);
 void etk_test_combobox_window_create(void *data);
 void etk_test_iconbox_window_create(void *data);
 void etk_test_text_view_window_create(void *data);
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_text_view_test.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- etk_text_view_test.c        24 Aug 2006 18:09:16 -0000      1.15
+++ etk_text_view_test.c        6 Oct 2006 17:04:13 -0000       1.16
@@ -223,7 +223,6 @@
       iter = etk_textblock_iter_new(message_tb);
       etk_textblock_iter_forward_end(iter);
       
-      /* TODO: we need to wrap the modifiers! */
       if (event->modifiers & ETK_MODIFIER_SHIFT)
       {
          cursor = etk_text_view_cursor_get(ETK_TEXT_VIEW(object));
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_tree_test.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- etk_tree_test.c     24 Aug 2006 18:09:16 -0000      1.34
+++ etk_tree_test.c     6 Oct 2006 17:04:13 -0000       1.35
@@ -68,11 +68,11 @@
    etk_tree_freeze(ETK_TREE(tree));
    for (i = 0; i < 1000; i++)
    {
-      row = etk_tree_append(ETK_TREE(tree), col1, etk_theme_icon_theme_get(), 
"places/user-home_16", "Row1",
+      row = etk_tree_append(ETK_TREE(tree), col1, etk_theme_icon_get(), 
"places/user-home_16", "Row1",
          col2, 10.0, col3, PACKAGE_DATA_DIR "/images/1star.png", col4, 
ETK_FALSE, NULL);
-      row = etk_tree_append_to_row(row, col1, etk_theme_icon_theme_get(), 
"places/folder_16", "Row2",
+      row = etk_tree_append_to_row(row, col1, etk_theme_icon_get(), 
"places/folder_16", "Row2",
          col2, 20.0, col3, PACKAGE_DATA_DIR "/images/2stars.png", col4, 
ETK_FALSE, NULL);
-      etk_tree_append_to_row(row, col1, etk_theme_icon_theme_get(), 
"mimetypes/text-x-generic_16", "Row3",
+      etk_tree_append_to_row(row, col1, etk_theme_icon_get(), 
"mimetypes/text-x-generic_16", "Row3",
          col2, 30.0, col3, PACKAGE_DATA_DIR "/images/3stars.png", col4, 
ETK_FALSE, NULL);
    }
    etk_tree_thaw(ETK_TREE(tree));



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