diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-10 21:43:28 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-10 21:43:28 +0200 |
commit | a12feb1d950d2fc2d30ac69f1175e9fa7d48deaf (patch) | |
tree | db6b08ea008d3c4e42d0c83d01267f17e568da53 /src/keyevents.c | |
parent | c262680c9375940fbd2c1ebf97a15843422a2ede (diff) | |
download | feh-a12feb1d950d2fc2d30ac69f1175e9fa7d48deaf.zip |
Remove D_ENTER/D_RETURN, use gdb tracepoints + readelf/awk magic instead
Diffstat (limited to 'src/keyevents.c')
-rw-r--r-- | src/keyevents.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index a5cafb9..67f5389 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -31,7 +31,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. void feh_event_invoke_action(winwidget winwid, char *action) { - D_ENTER(4); D(4, ("action is '%s'\n", action)); D(4, ("winwid is '%p'\n", winwid)); if (action) { @@ -47,7 +46,7 @@ void feh_event_invoke_action(winwidget winwid, char *action) printf("For now, open the image to perform the action on it.\n"); } } - D_RETURN_(4); + return; } void feh_event_handle_keypress(XEvent * ev) @@ -61,8 +60,6 @@ void feh_event_handle_keypress(XEvent * ev) feh_menu_item *selected_item; feh_menu *selected_menu; - D_ENTER(4); - winwid = winwidget_get_from_window(ev->xkey.window); /* nuke dupe events, unless we're typing text */ @@ -100,11 +97,11 @@ void feh_event_handle_keypress(XEvent * ev) break; } - D_RETURN_(4); + return; } if (winwid == NULL) - D_RETURN_(4); + return; if (winwid->caption_entry) { switch (keysym) { @@ -125,7 +122,7 @@ void feh_event_handle_keypress(XEvent * ev) fp = fopen(caption_filename, "w"); if (!fp) { weprintf("couldn't write to captions file %s:", caption_filename); - D_RETURN_(4); + return; } fprintf(fp, "%s", FEH_FILE(winwid->file->data)->caption); free(caption_filename); @@ -154,7 +151,7 @@ void feh_event_handle_keypress(XEvent * ev) } break; } - D_RETURN_(4); + return; } switch (keysym) { @@ -289,7 +286,7 @@ void feh_event_handle_keypress(XEvent * ev) } if (len <= 0 || len > (int) sizeof(kbuf)) - D_RETURN_(4); + return; kbuf[len] = '\0'; switch (*kbuf) { @@ -409,5 +406,5 @@ void feh_event_handle_keypress(XEvent * ev) default: break; } - D_RETURN_(4); + return; } |