Enlightenment CVS committal
Author : chaos
Project : e17
Module : proto/entropy
Dir : e17/proto/entropy/src/plugins
Modified Files:
etk_list_viewer.c
Log Message:
* Thumbnail on demand
* Visual fix to location add dialog
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/plugins/etk_list_viewer.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -3 -r1.90 -r1.91
--- etk_list_viewer.c 1 Sep 2007 12:13:14 -0000 1.90
+++ etk_list_viewer.c 3 Sep 2007 10:26:04 -0000 1.91
@@ -415,6 +415,23 @@
}
+static void _etk_list_viewer_row_shown(Etk_Object *object, Etk_Tree_Row *row,
void *data)
+{
+ entropy_gui_component_instance* instance;
+ entropy_etk_file_list_viewer* viewer;
+ entropy_gui_event *gui_event;
+ gui_file* file;
+
+
+ file = ecore_hash_get(etk_list_viewer_row_hash, row);
+ instance = file->instance;
+ viewer = instance->data;
+
+ if (!file->file->thumbnail) {
+ entropy_plugin_thumbnail_request(instance, file->file,
(void*)gui_event_callback);
+ }
+}
+
static void _etk_list_viewer_row_clicked(Etk_Object *object, Etk_Tree_Row
*row, Etk_Event_Mouse_Up *event, void *data)
{
entropy_gui_component_instance* instance;
@@ -554,7 +571,6 @@
}
if (!file->thumbnail) {
- entropy_plugin_thumbnail_request(instance, file,
(void*)gui_event_callback);
thumbnail_filename= etk_theme_icon_path_get();
/* [TODO] ETK_STOCK_BIG needs to be gotten from the config */
thumbnail_key = etk_stock_key_get(ETK_STOCK_TEXT_X_GENERIC, ETK_STOCK_BIG);
@@ -941,6 +957,10 @@
etk_signal_connect("row-clicked", ETK_OBJECT( viewer->tree ),
ETK_CALLBACK(_etk_list_viewer_row_clicked), NULL);
+
+ etk_signal_connect("row-shown", ETK_OBJECT( viewer->tree ),
+ ETK_CALLBACK(_etk_list_viewer_row_shown), NULL);
+
etk_signal_connect("key-down", ETK_OBJECT(viewer->tree),
ETK_CALLBACK(_etk_entropy_list_viewer_key_down_cb), instance);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs