Enlightenment CVS committal
Author : doursse
Project : e17
Module : proto/epdf
Dir : e17/proto/epdf/src/plugins/ewl
Modified Files:
ewl_pdf.c
Log Message:
* src/bin/epdf_evas_test.c: (main):
* src/lib/esmart_pdf.c: (_smart_page_render):
* src/lib/etk_pdf.c: (etk_pdf_search_next), (_etk_pdf_load):
* src/lib/ewl_pdf.c: (ewl_pdf_search_next), (ewl_pdf_reveal_cb):
missing removal of remove epdf_document_page_get().
* src/plugins/ewl/ewl_pdf.c: (create_test), (create_pdf_fd_cb),
(create_pdf_fd_window_response):
fill the entry with the filename, remove trailing spaces and
remove some comments.
===================================================================
RCS file: /cvs/e/e17/proto/epdf/src/plugins/ewl/ewl_pdf.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_pdf.c 7 Jul 2007 16:12:09 -0000 1.1
+++ ewl_pdf.c 30 Aug 2007 14:26:09 -0000 1.2
@@ -32,7 +32,7 @@
static int create_test (Ewl_Container *box);
-void
+void
test_info (Ewl_Test *test)
{
test->name = "Pdf";
@@ -96,9 +96,9 @@
EWL_FLAG_FILL_HSHRINK | EWL_FLAG_FILL_VFILL);
ewl_container_child_append (EWL_CONTAINER (scrollpane), list);
/* ewl_callback_append (list, */
-/* EWL_CALLBACK_VALUE_CHANGED, */
-/* EWL_CALLBACK_FUNCTION (_change_page_cb), */
-/* pdf); */
+/* EWL_CALLBACK_VALUE_CHANGED, */
+/* EWL_CALLBACK_FUNCTION (_change_page_cb), */
+/* pdf); */
/* ewl_widget_show (list); */
/* list = ewl_tree_new (1); */
@@ -141,7 +141,7 @@
ewl_widget_show (button);
pdf_load (pdf_file);
-
+
return 1;
}
@@ -156,7 +156,7 @@
ewl_window_title_set (EWL_WINDOW (fd), "Select a Pdf file...");
ewl_window_name_set (EWL_WINDOW (fd), "EWL Pdf Test");
ewl_window_class_set (EWL_WINDOW (fd), "EWL Filedialog");
- ewl_callback_append (fd, EWL_CALLBACK_VALUE_CHANGED,
+ ewl_callback_append (fd, EWL_CALLBACK_VALUE_CHANGED,
create_pdf_fd_window_response, user_data);
ewl_widget_show(fd);
}
@@ -165,10 +165,8 @@
create_pdf_fd_window_response (Ewl_Widget *w, void *ev, void *data)
{
Ewl_Event_Action_Response *e;
- Ewl_Widget *entry;
-
+
e = ev;
- entry = EWL_WIDGET (data);
if (e->response == EWL_STOCK_OK) {
const char *path;
@@ -177,9 +175,8 @@
int l1;
int l2;
- printf("File open from pdf test: %s/%s\n",
- path = ewl_filedialog_directory_get (EWL_FILEDIALOG (w)),
- filename = ewl_filedialog_selected_file_get (EWL_FILEDIALOG (w)));
+ path = ewl_filedialog_directory_get (EWL_FILEDIALOG (w));
+ filename = ewl_filedialog_selected_file_get (EWL_FILEDIALOG (w));
l1 = strlen (path);
l2 = strlen (filename);
@@ -192,7 +189,7 @@
memcpy (file + l1 + 1, filename, l2);
file [l1 + l2 + 1] = '\0';
}
- printf ("file : %s\n", file);
+ ewl_text_text_set (EWL_TEXT (data), file);
pdf_load (file);
free (file);
// free(path); FIXME: Is text widget allocated correctly?
-------------------------------------------------------------------------
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