Enlightenment CVS committal
Author : doursse
Project : e17
Module : proto
Dir : e17/proto/epdf/src/bin
Modified Files:
epdf_etk_test.c
Log Message:
etk test: fix etk shutdown
===================================================================
RCS file: /cvs/e/e17/proto/epdf/src/bin/epdf_etk_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- epdf_etk_test.c 17 Jan 2007 00:40:23 -0000 1.7
+++ epdf_etk_test.c 17 Jan 2007 01:49:04 -0000 1.8
@@ -26,26 +26,23 @@
int page_count;
int i;
- etk_init (NULL,NULL);
-
if (argc == 1) {
printf ("Usage: %s pdf_file\n", argv[0]);
- etk_main_quit ();
return -1;
}
+ etk_init (&argc, &argv);
+
/* We open the pdf file */
pdf = etk_pdf_new ();
etk_pdf_file_set (ETK_PDF (pdf), argv[1]);
document = ETK_PDF (pdf)->pdf_document;
if (!document) {
printf ("The file %s can't be opened\n", argv[1]);
- etk_main_quit ();
+ etk_shutdown ();
return -1;
}
- index = etk_pdf_pdf_index_get (ETK_PDF (pdf));
-
window = etk_window_new ();
etk_window_title_set (ETK_WINDOW (window), "Etk Pdf Test Application");
etk_signal_connect ("delete_event", ETK_OBJECT (window),
@@ -55,6 +52,7 @@
etk_container_add (ETK_CONTAINER (window), table);
etk_widget_show (table);
+ index = etk_pdf_pdf_index_get (ETK_PDF (pdf));
if (index) {
Etk_Tree_Col *col;
@@ -82,7 +80,7 @@
}
list = etk_tree_new ();
- etk_tree_headers_visible_set (ETK_TREE (list), FALSE);
+ etk_tree_headers_visible_set (ETK_TREE (list), ETK_FALSE);
etk_tree_mode_set (ETK_TREE (list), ETK_TREE_MODE_LIST);
etk_tree_multiple_select_set (ETK_TREE (list), ETK_FALSE);
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs