Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin


Modified Files:
        main.c 


Log Message:
- remove dead code
- make sure we get the current formating instead of just the default format if
  no formatting nodes present
- replace 0 length formatting nodes with the new context/length being set
  instead of leaving in the formatting list

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- main.c      10 Jan 2007 01:09:23 -0000      1.49
+++ main.c      10 Jan 2007 02:38:43 -0000      1.50
@@ -832,7 +832,7 @@
                                        || (!strncasecmp(end, "@section ", 9)))
                        {
                                char tmp, key;
-                               int size = 14, prev_size = 0;
+                               int size = 14;
 
                                key = *(end + 1);
                                end += 9;
@@ -863,11 +863,9 @@
                                tmp = *(end + 1);
                                *(end + 1) = '\0';
 
-                               prev_size = ewl_text_font_size_get(tutorial,
-                                                               
ewl_text_cursor_position_get(tutorial));
                                ewl_text_font_size_set(tutorial, size);
                                ewl_text_text_append(tutorial, start);
-                               ewl_text_font_size_set(tutorial, prev_size);
+                               ewl_text_font_size_set(tutorial, 12);
 
                                *(end + 1) = tmp;
                                start = ++end;



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