Tilman Sauerbeck <[EMAIL PROTECTED]> [2005-10-05 00:03]: > see attached patch.
Whoops, it's attached now :) Regards, Tilman -- learn to quote: http://www.netmeister.org/news/learn2quote.html
Index: src/bin/e_border.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.441
diff -u -r1.441 e_border.c
--- src/bin/e_border.c 4 Oct 2005 11:15:32 -0000 1.441
+++ src/bin/e_border.c 4 Oct 2005 21:59:45 -0000
@@ -48,6 +48,8 @@
static int _e_border_cb_pointer_warp(void *data, int ev_type, void *ev);
static void _e_border_cb_signal_bind(void *data, Evas_Object *obj, const char
*emission, const char *source);
+static void _e_border_cb_debug(void *data, Evas_Object *obj, const char
*emission, const char *source);
+static const char *_e_border_debug_log ();
static int _e_border_cb_mouse_in(void *data, int type, void *event);
static int _e_border_cb_mouse_out(void *data, int type, void *event);
static int _e_border_cb_mouse_wheel(void *data, int type, void *event);
@@ -3702,6 +3704,16 @@
(char *)emission, (char *)source);
}
+static void
+_e_border_cb_debug(void *data, Evas_Object *obj, const char *emission, const
char *source)
+{
+ FILE *fp;
+
+ fp = fopen (_e_border_debug_log (), "a");
+ fprintf (fp, "%s\n", source);
+ fclose (fp);
+}
+
static int
_e_border_cb_mouse_in(void *data, int type, void *event)
{
@@ -4168,6 +4180,23 @@
return 0;
}
+static const char *
+_e_border_debug_log ()
+{
+ static char buf[PATH_MAX];
+
+ if (*buf == 0)
+ {
+ char *tmp = e_user_homedir_get();
+
+ snprintf(buf, sizeof (buf), "%s/.e/e/logs/debug-border.log",
+ tmp);
+ free(tmp);
+ }
+
+ return buf;
+}
+
static void
_e_border_eval(E_Border *bd)
{
@@ -4771,6 +4800,9 @@
ecore_x_window_move(bd->client.shell_win, l, t);
if (bd->bg_object)
{
+ if (ecore_file_exists (_e_border_debug_log()))
+ edje_object_signal_callback_add(bd->bg_object, "debug", "*",
+ _e_border_cb_debug, NULL);
edje_object_signal_callback_add(bd->bg_object, "*", "*",
_e_border_cb_signal_bind, bd);
if (bd->focused)
pgpw7yiCHAi0r.pgp
Description: PGP signature
