Quick fix.

This commit is contained in:
Dave Davenport 2016-03-21 20:27:16 +01:00
parent 8914fbf2df
commit 3ac0c6dd7d
5 changed files with 10 additions and 12 deletions

View File

@ -139,9 +139,9 @@ update-manpage: $(top_srcdir)/doc/rofi-manpage.markdown
##
# Rofi test program
##
check_PROGRAMS=rofi_test textbox_test helper_test helper_expand
check_PROGRAMS=history_test textbox_test helper_test helper_expand
rofi_test_CFLAGS=\
history_test_CFLAGS=\
$(AM_CFLAGS)\
$(glib_CFLAGS)\
$(libsn_CFLAGS)\
@ -149,11 +149,11 @@ rofi_test_CFLAGS=\
-I$(top_srcdir)/config/\
-I$(top_builddir)/
rofi_test_LDADD=\
history_test_LDADD=\
$(glib_LIBS)
rofi_test_SOURCES=\
history_test_SOURCES=\
source/history.c\
config/config.c\
include/rofi.h\
@ -252,7 +252,7 @@ helper_expand_CFLAGS=${helper_test_CFLAGS}
helper_expand_LDADD=${helper_test_LDADD}
TESTS=\
rofi_test\
history_test\
helper_test\
helper_expand
@ -308,7 +308,7 @@ test-x1: $(bin_PROGRAMS)
.PHONY: indent
indent: $(rofi_SOURCES) $(helper_test_SOURCES) $(textbox_test_SOURCES) $(rofi_test_SOURCES)
indent: $(rofi_SOURCES) $(helper_test_SOURCES) $(textbox_test_SOURCES) $(history_test_SOURCES) $(helper_expand_SOURCES)
uncrustify -c $(top_srcdir)/data/uncrustify.cfg --replace $^
.PHONY: cppcheck

View File

@ -401,14 +401,13 @@ static ModeMode run_mode_result ( Mode *sw, int mretv, char **input, unsigned in
delete_entry ( rmpd->cmd_list[selected_line] );
// Clear the list.
retv = RELOAD_DIALOG;
retv = RELOAD_DIALOG;
run_mode_destroy ( sw );
run_mode_init ( sw );
}
return retv;
}
static char *_get_display_value ( const Mode *sw, unsigned int selected_line, G_GNUC_UNUSED int *state, int get_entry )
{
const RunModePrivateData *rmpd = (const RunModePrivateData *) sw->private_data;

View File

@ -1415,7 +1415,7 @@ static void rofi_view_mainloop_iter ( RofiViewState *state, xcb_generic_event_t
state->selected_line = UINT32_MAX;
if ( state->selected < state->filtered_lines ) {
( state->selected_line ) = state->line_map[state->selected];
state->retv = MENU_OK;
state->retv = MENU_OK;
}
else{
// Nothing entered and nothing selected.

View File

@ -280,8 +280,8 @@ void monitor_active ( workarea *mon )
// place the menu above the window
// if some window is focused, place menu above window, else fall
// back to selected monitor.
mon->x = t->dst_x-r->x;
mon->y = t->dst_y-r->y;
mon->x = t->dst_x - r->x;
mon->y = t->dst_y - r->y;
mon->w = r->width;
mon->h = r->height;
mon->t = r->border_width;

View File

@ -73,5 +73,4 @@ int main ( int argc, char ** argv )
str = rofi_expand_path ( "~root/" );
TASSERT ( str[0] == '/' );
g_free ( str );
}