mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Quick fix.
This commit is contained in:
parent
8914fbf2df
commit
3ac0c6dd7d
5 changed files with 10 additions and 12 deletions
12
Makefile.am
12
Makefile.am
|
@ -139,9 +139,9 @@ update-manpage: $(top_srcdir)/doc/rofi-manpage.markdown
|
||||||
##
|
##
|
||||||
# Rofi test program
|
# 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)\
|
$(AM_CFLAGS)\
|
||||||
$(glib_CFLAGS)\
|
$(glib_CFLAGS)\
|
||||||
$(libsn_CFLAGS)\
|
$(libsn_CFLAGS)\
|
||||||
|
@ -149,11 +149,11 @@ rofi_test_CFLAGS=\
|
||||||
-I$(top_srcdir)/config/\
|
-I$(top_srcdir)/config/\
|
||||||
-I$(top_builddir)/
|
-I$(top_builddir)/
|
||||||
|
|
||||||
rofi_test_LDADD=\
|
history_test_LDADD=\
|
||||||
$(glib_LIBS)
|
$(glib_LIBS)
|
||||||
|
|
||||||
|
|
||||||
rofi_test_SOURCES=\
|
history_test_SOURCES=\
|
||||||
source/history.c\
|
source/history.c\
|
||||||
config/config.c\
|
config/config.c\
|
||||||
include/rofi.h\
|
include/rofi.h\
|
||||||
|
@ -252,7 +252,7 @@ helper_expand_CFLAGS=${helper_test_CFLAGS}
|
||||||
helper_expand_LDADD=${helper_test_LDADD}
|
helper_expand_LDADD=${helper_test_LDADD}
|
||||||
|
|
||||||
TESTS=\
|
TESTS=\
|
||||||
rofi_test\
|
history_test\
|
||||||
helper_test\
|
helper_test\
|
||||||
helper_expand
|
helper_expand
|
||||||
|
|
||||||
|
@ -308,7 +308,7 @@ test-x1: $(bin_PROGRAMS)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: indent
|
.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 $^
|
uncrustify -c $(top_srcdir)/data/uncrustify.cfg --replace $^
|
||||||
|
|
||||||
.PHONY: cppcheck
|
.PHONY: cppcheck
|
||||||
|
|
|
@ -408,7 +408,6 @@ static ModeMode run_mode_result ( Mode *sw, int mretv, char **input, unsigned in
|
||||||
return retv;
|
return retv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static char *_get_display_value ( const Mode *sw, unsigned int selected_line, G_GNUC_UNUSED int *state, int get_entry )
|
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;
|
const RunModePrivateData *rmpd = (const RunModePrivateData *) sw->private_data;
|
||||||
|
|
|
@ -280,8 +280,8 @@ void monitor_active ( workarea *mon )
|
||||||
// place the menu above the window
|
// place the menu above the window
|
||||||
// if some window is focused, place menu above window, else fall
|
// if some window is focused, place menu above window, else fall
|
||||||
// back to selected monitor.
|
// back to selected monitor.
|
||||||
mon->x = t->dst_x-r->x;
|
mon->x = t->dst_x - r->x;
|
||||||
mon->y = t->dst_y-r->y;
|
mon->y = t->dst_y - r->y;
|
||||||
mon->w = r->width;
|
mon->w = r->width;
|
||||||
mon->h = r->height;
|
mon->h = r->height;
|
||||||
mon->t = r->border_width;
|
mon->t = r->border_width;
|
||||||
|
|
|
@ -73,5 +73,4 @@ int main ( int argc, char ** argv )
|
||||||
str = rofi_expand_path ( "~root/" );
|
str = rofi_expand_path ( "~root/" );
|
||||||
TASSERT ( str[0] == '/' );
|
TASSERT ( str[0] == '/' );
|
||||||
g_free ( str );
|
g_free ( str );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue