rofi  1.5.4
rofi-icon-fetcher.c File Reference
#include "rofi-icon-fetcher.h"
#include "rofi-types.h"
#include "helper.h"
#include "settings.h"
#include "xcb.h"
#include "keyb.h"
#include "view.h"
#include "nkutils-xdg-theme.h"
Include dependency graph for rofi-icon-fetcher.c:

Go to the source code of this file.

Data Structures

struct  IconFetcher
 
struct  IconFetcherNameEntry
 
struct  IconFetcherEntry
 

Macros

#define G_LOG_DOMAIN   "Helpers.IconFetcher"
 

Functions

static void rofi_icon_fetch_entry_free (gpointer data)
 
void rofi_icon_fetcher_init (void)
 
void rofi_icon_fetcher_destroy (void)
 
static void rofi_icon_fetcher_worker (thread_state *sdata, G_GNUC_UNUSED gpointer user_data)
 
uint32_t rofi_icon_fetcher_query (const char *name, const int size)
 
cairo_surface_t * rofi_icon_fetcher_get (const uint32_t uid)
 

Variables

IconFetcherrofi_icon_fetcher_data = NULL
 

Macro Definition Documentation

◆ G_LOG_DOMAIN

#define G_LOG_DOMAIN   "Helpers.IconFetcher"

The log domain of this Helper.

Definition at line 29 of file rofi-icon-fetcher.c.

Function Documentation

◆ rofi_icon_fetch_entry_free()

static void rofi_icon_fetch_entry_free ( gpointer  data)
static

Definition at line 81 of file rofi-icon-fetcher.c.

References IconFetcherNameEntry::name, IconFetcherNameEntry::sizes, and IconFetcherEntry::surface.

Referenced by rofi_icon_fetcher_init().

Here is the caller graph for this function:

◆ rofi_icon_fetcher_worker()

static void rofi_icon_fetcher_worker ( thread_state sdata,
G_GNUC_UNUSED gpointer  user_data 
)
static

Definition at line 132 of file rofi-icon-fetcher.c.

References cairo_image_surface_create_from_svg(), config, IconFetcherEntry::entry, Settings::icon_theme, IconFetcherNameEntry::name, rofi_view_reload(), IconFetcherEntry::size, IconFetcherEntry::surface, and IconFetcher::xdg_context.

Referenced by rofi_icon_fetcher_query().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ rofi_icon_fetcher_data

IconFetcher* rofi_icon_fetcher_data = NULL

The icon fetcher internal state.

Definition at line 79 of file rofi-icon-fetcher.c.