Removed unused smart callbacks.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 21 May 2006 14:56:15 +0000 (14:56 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 21 May 2006 14:56:15 +0000 (14:56 +0000)
src/rb_smart.c

index 030909523b1de41889df82fd3d6152dc213d6e19..32a729d868519b9ef9bcc439a011e29cf0872685 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_smart.c 380 2006-05-21 14:54:58Z tilman $
+ * $Id: rb_smart.c 381 2006-05-21 14:56:15Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
 static ID id_smart_object;
 
 SMART_CB (delete);
-SMART_CB (raise);
-SMART_CB (lower);
 SMART_CB (show);
 SMART_CB (hide);
 SMART_CB (clip_unset);
-SMART_CB_OBJ (stack_above);
-SMART_CB_OBJ (stack_below);
 SMART_CB_OBJ (clip_set);
 SMART_CB_COORD (move);
 SMART_CB_COORD (resize);
 
-static void on_layer_set (Evas_Object *o, int layer)
-{
-       SMART_CB_BODY (layer_set);
-
-       rb_funcall (self, id, 1, FIX2INT (layer));
-}
-
 static void on_color_set (Evas_Object *o, int r, int g, int b, int a)
 {
        SMART_CB_BODY (color_set);
@@ -114,9 +103,9 @@ static VALUE c_init (VALUE self, VALUE evas)
                smart = Data_Make_Struct (rb_cObject, Evas_Smart *, NULL, NULL, s);
 
                *s = evas_smart_new (StringValuePtr (name),
-                                    NULL, on_delete, on_layer_set,
-                                    on_raise, on_lower, on_stack_above,
-                                    on_stack_below, on_move, on_resize,
+                                    NULL, on_delete, NULL,
+                                    NULL, NULL, NULL, NULL,
+                                    on_move, on_resize,
                                     on_show, on_hide, on_color_set,
                                     on_clip_set, on_clip_unset, NULL);