mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
[Test] Fix the test.
This commit is contained in:
parent
0f21541327
commit
74144db77d
14 changed files with 144 additions and 13 deletions
|
@ -220,7 +220,6 @@ static char * combi_mgrv ( const Mode *sw, unsigned int selected_line, int *stat
|
|||
if ( !config.combi_hide_mode_prefix ) {
|
||||
retv = g_strdup_printf ( "%s %s", dname, str );
|
||||
g_free ( str );
|
||||
}
|
||||
|
||||
if ( attr_list != NULL ) {
|
||||
ThemeWidget *wid = rofi_config_find_widget ( sw->name, NULL, TRUE );
|
||||
|
@ -235,6 +234,7 @@ static char * combi_mgrv ( const Mode *sw, unsigned int selected_line, int *stat
|
|||
*attr_list = g_list_append ( *attr_list, pa );
|
||||
}
|
||||
}
|
||||
}
|
||||
return retv;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -153,6 +153,13 @@ void mode_set_private_data ( Mode *mode, void *pd )
|
|||
|
||||
const char *mode_get_display_name ( const Mode *mode )
|
||||
{
|
||||
ThemeWidget *wid = rofi_config_find_widget ( mode->name, NULL, TRUE );
|
||||
if ( wid ) {
|
||||
Property *p = rofi_theme_find_property ( wid, P_STRING, "display-name", FALSE );
|
||||
if ( p != NULL ) {
|
||||
return p->value.s;
|
||||
}
|
||||
}
|
||||
if ( mode->display_name != NULL ) {
|
||||
return mode->display_name;
|
||||
}
|
||||
|
|
|
@ -16,6 +16,8 @@ const char * const PropertyTypeName[P_NUM_TYPES] = {
|
|||
"Boolean",
|
||||
/** Color */
|
||||
"Color",
|
||||
/** Image */
|
||||
"Iamge",
|
||||
/** Padding */
|
||||
"Padding",
|
||||
/** Link to global setting */
|
||||
|
|
|
@ -62,6 +62,17 @@ unsigned int test =0;
|
|||
abort ( ); \
|
||||
} \
|
||||
}
|
||||
ThemeWidget *rofi_configuration = NULL;
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
int monitor_active ( G_GNUC_UNUSED workarea *mon )
|
||||
|
|
|
@ -55,6 +55,16 @@ static int test = 0;
|
|||
}
|
||||
#include "theme.h"
|
||||
ThemeWidget *rofi_theme = NULL;
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
gboolean rofi_theme_parse_string ( const char *string )
|
||||
{
|
||||
|
|
|
@ -56,6 +56,16 @@ static int test = 0;
|
|||
}
|
||||
ThemeWidget *rofi_theme = NULL;
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
double textbox_get_estimated_char_height ( void )
|
||||
{
|
||||
return 12.0;
|
||||
|
|
|
@ -48,6 +48,16 @@ static int test = 0;
|
|||
#include "theme.h"
|
||||
ThemeWidget *rofi_theme = NULL;
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gboolean rofi_theme_parse_string ( const char *string )
|
||||
{
|
||||
return FALSE;
|
||||
|
|
|
@ -63,12 +63,24 @@ static int test = 0;
|
|||
}
|
||||
|
||||
#include "widgets/textbox.h"
|
||||
|
||||
ThemeWidget *rofi_theme = NULL;
|
||||
|
||||
gboolean rofi_theme_parse_string ( const char *string )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
double textbox_get_estimated_char_height ( void )
|
||||
{
|
||||
return 12.0;
|
||||
|
|
|
@ -45,6 +45,16 @@
|
|||
|
||||
ThemeWidget *rofi_theme = NULL;
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gboolean rofi_theme_parse_string ( G_GNUC_UNUSED const char *string )
|
||||
{
|
||||
return FALSE;
|
||||
|
|
|
@ -49,6 +49,16 @@
|
|||
|
||||
ThemeWidget *rofi_theme = NULL;
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gboolean rofi_theme_parse_string ( const char *string )
|
||||
{
|
||||
return FALSE;
|
||||
|
|
|
@ -56,6 +56,18 @@ unsigned int test =0;
|
|||
} \
|
||||
}
|
||||
|
||||
ThemeWidget *rofi_configuration = NULL;
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int monitor_active ( G_GNUC_UNUSED workarea *mon )
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -52,6 +52,19 @@ unsigned int normal_window_mode = 0;
|
|||
|
||||
#include "view.h"
|
||||
|
||||
|
||||
ThemeWidget *rofi_configuration = NULL;
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gboolean config_parse_set_property ( G_GNUC_UNUSED const Property *p, G_GNUC_UNUSED char **error )
|
||||
{
|
||||
return FALSE;
|
||||
|
|
|
@ -48,6 +48,17 @@
|
|||
#define REAL_COMPARE_DELTA 0.001
|
||||
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
int rofi_view_error_dialog ( const char *msg, G_GNUC_UNUSED int markup )
|
||||
{
|
||||
fputs ( msg, stderr );
|
||||
|
|
|
@ -43,6 +43,19 @@ unsigned int test =0;
|
|||
assert ( a ); \
|
||||
printf ( "Test %3u passed (%s)\n", ++test, # a ); \
|
||||
}
|
||||
|
||||
ThemeWidget *rofi_configuration = NULL;
|
||||
|
||||
uint32_t rofi_icon_fetcher_query ( const char *name, const int size )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gboolean config_parse_set_property ( G_GNUC_UNUSED const Property *p, G_GNUC_UNUSED char **error )
|
||||
{
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue