mirror of
https://github.com/davatorium/rofi.git
synced 2025-09-04 22:43:27 -04:00
Fix #237 add none style to separator style
This commit is contained in:
parent
aea2458575
commit
2d167e21d7
3 changed files with 29 additions and 27 deletions
|
@ -873,6 +873,7 @@ static void menu_update ( MenuState *state )
|
||||||
( ( pixel & 0x000000FF ) >> 0 ) / 256.0,
|
( ( pixel & 0x000000FF ) >> 0 ) / 256.0,
|
||||||
( ( pixel & 0xFF000000 ) >> 24 ) / 256.0
|
( ( pixel & 0xFF000000 ) >> 24 ) / 256.0
|
||||||
);
|
);
|
||||||
|
if ( strcmp ( config.separator_style, "none" ) ) {
|
||||||
if ( strcmp ( config.separator_style, "dash" ) == 0 ) {
|
if ( strcmp ( config.separator_style, "dash" ) == 0 ) {
|
||||||
const double dashes[1] = { 4 };
|
const double dashes[1] = { 4 };
|
||||||
cairo_set_dash ( d, dashes, 1, 0.0 );
|
cairo_set_dash ( d, dashes, 1, 0.0 );
|
||||||
|
@ -890,12 +891,13 @@ static void menu_update ( MenuState *state )
|
||||||
cairo_move_to ( d, 0, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
|
cairo_move_to ( d, 0, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
|
||||||
cairo_line_to ( d, state->w, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
|
cairo_line_to ( d, state->w, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
|
||||||
cairo_stroke ( d );
|
cairo_stroke ( d );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ( config.sidebar_mode == TRUE ) {
|
||||||
for ( unsigned int j = 0; j < num_switchers; j++ ) {
|
for ( unsigned int j = 0; j < num_switchers; j++ ) {
|
||||||
textbox_draw ( switchers[j].tb, d );
|
textbox_draw ( switchers[j].tb, d );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state->update = FALSE;
|
state->update = FALSE;
|
||||||
|
|
||||||
// Draw to actual window.
|
// Draw to actual window.
|
||||||
|
|
|
@ -666,7 +666,7 @@ void textbox_setup ( Display *display )
|
||||||
|
|
||||||
void textbox_cleanup ( void )
|
void textbox_cleanup ( void )
|
||||||
{
|
{
|
||||||
printf("cleanup\n");
|
printf ( "cleanup\n" );
|
||||||
if ( p_context ) {
|
if ( p_context ) {
|
||||||
g_object_unref ( p_context );
|
g_object_unref ( p_context );
|
||||||
p_context = NULL;
|
p_context = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue