Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : libs/etox

Dir     : e17/libs/etox/src


Modified Files:
        Etox_private.h etox_selection.c 


Log Message:

remove etox_selection_set_* functions. These are now replaced by 
etox_selection_apply_context()

Remove the context field from the selections.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/Etox_private.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- Etox_private.h      22 Aug 2003 16:13:10 -0000      1.21
+++ Etox_private.h      27 Aug 2003 18:58:09 -0000      1.22
@@ -165,8 +165,6 @@
                Etox_Line *line;
                Evas_Object *bit;
        } start, end;
-
-       Etox_Context *context;
 };
 
 void etox_free(Evas_Object * et);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox_selection.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- etox_selection.c    21 Aug 2003 02:03:08 -0000      1.11
+++ etox_selection.c    27 Aug 2003 18:58:09 -0000      1.12
@@ -96,8 +96,6 @@
        selected->end.line = l2;
        selected->end.bit = s2;
 
-       selected->context = etox_context_save(etox->smart_obj);
-
        active_selections = evas_list_prepend(active_selections, selected);
 
        etox_layout(etox);
@@ -112,7 +110,6 @@
 {
         CHECK_PARAM_POINTER("selected", selected);
 
-       etox_context_free(selected->context);
        active_selections = evas_list_remove(active_selections, selected);
        FREE(selected);
 }
@@ -147,7 +144,6 @@
           selected = l->data;
 
           active_selections = evas_list_remove(active_selections, selected);
-          etox_context_free(selected->context);
           free(selected);
         }
 
@@ -262,118 +258,6 @@
 etox_selection_bounds(Etox_Selection *selected, double *sx, double *sy,
                double *ex, double *ey)
 {
-}
-
-/**
- */
-void
-etox_selection_set_font(Etox_Selection *selected, char *font, int font_size)
-{
-       /*
-        * Make the necessary context changes.
-        */
-       IF_FREE(selected->context->font);
-       selected->context->font = strdup(font);
-       selected->context->font_size = font_size;
-
-       SELECTION_LOOP_START(selected);
-               estyle_set_font(bit, font, font_size);
-       SELECTION_LOOP_END;
-
-       etox_layout(selected->etox);
-
-       return;
-}
-
-/**
- */
-void
-etox_selection_set_style(Etox_Selection *selected, char *style)
-{
-       /*
-        * Make the necessary context changes.
-        */
-       IF_FREE(selected->context->style);
-       selected->context->style = strdup(style);
-
-       SELECTION_LOOP_START(selected);
-               estyle_set_style(bit, style);
-       SELECTION_LOOP_END;
-
-       etox_layout(selected->etox);
-
-       return;
-}
-
-/**
- */
-void
-etox_selection_set_color(Etox_Selection *selected, int r, int g, int b, int a)
-{
-       /*
-        * Make the necessary context changes.
-        */
-       selected->context->a = a;
-       selected->context->r = r;
-       selected->context->g = g;
-       selected->context->b = b;
-
-       SELECTION_LOOP_START(selected);
-               evas_object_color_set(bit, r, g, b, a);
-       SELECTION_LOOP_END;
-
-       etox_layout(selected->etox);
-
-       return;
-}
-
-/**
- */
-void
-etox_selection_set_wrap_marker_color(Etox_Selection *selected, int r, int g,
-               int b, int a)
-{
-       /*
-        * Make the necessary context changes.
-        */
-       selected->context->marker.a = a;
-       selected->context->marker.r = r;
-       selected->context->marker.g = g;
-       selected->context->marker.b = b;
-
-       SELECTION_LOOP_START(selected);
-               if (!bl->prev && line->flags & ETOX_LINE_WRAPPED) {
-                       evas_object_color_set(bit, r, g, b, a);
-               }
-       SELECTION_LOOP_END;
-
-       etox_layout(selected->etox);
-
-       return;
-}
-
-/**
- */
-void
-etox_selection_set_wrap_marker(Etox_Selection *selected, char *marker,
-               char *style)
-{
-       /*
-        * Make the necessary context changes.
-        */
-       IF_FREE(selected->context->marker.text);
-       IF_FREE(selected->context->marker.style);
-
-       SELECTION_LOOP_START(selected);
-               if (!bl->prev && line->flags & ETOX_LINE_WRAPPED) {
-                       estyle_set_text(bit, marker);
-                       estyle_set_style(bit, style);
-               }
-       SELECTION_LOOP_END;
-
-       etox_layout(selected->etox);
-
-       return;
 }
 
 /**




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to