Changeset 95c675b in mainline for uspace/lib/gui/window.c


Ignore:
Timestamp:
2017-10-17T13:11:35Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60af4cdb
Parents:
dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.c

    rdbf32b1 r95c675b  
    677677}
    678678
     679int window_set_caption(window_t *win, const char *caption)
     680{
     681        char *cap;
     682       
     683        if (caption == NULL) {
     684                win->caption = NULL;
     685        } else {
     686                cap = str_dup(caption);
     687                if (cap == NULL)
     688                        return ENOMEM;
     689                free(win->caption);
     690                win->caption = cap;
     691        }
     692       
     693        win->is_focused = false;
     694        handle_refresh(win);
     695       
     696        return EOK;
     697}
     698
    679699void window_refresh(window_t *win)
    680700{
Note: See TracChangeset for help on using the changeset viewer.