mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
project wide: adapt to new non-NULL value of view_get_string_prop()
This commit is contained in:
parent
023427b4f4
commit
c772224a54
4 changed files with 11 additions and 13 deletions
|
|
@ -280,6 +280,10 @@ struct lab_img *
|
|||
desktop_entry_icon_lookup(struct server *server, const char *app_id, int size,
|
||||
float scale)
|
||||
{
|
||||
if (string_null_or_empty(app_id)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct sfdo *sfdo = server->sfdo;
|
||||
if (!sfdo) {
|
||||
return NULL;
|
||||
|
|
@ -328,6 +332,10 @@ desktop_entry_icon_lookup(struct server *server, const char *app_id, int size,
|
|||
const char *
|
||||
desktop_entry_name_lookup(struct server *server, const char *app_id)
|
||||
{
|
||||
if (string_null_or_empty(app_id)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct sfdo *sfdo = server->sfdo;
|
||||
if (!sfdo) {
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue