Beispiel #1
0
void popup_free(ObPopup *self)
{
    if (self) {
        popup_hide(self); /* make sure it's not showing or is being delayed and
                             will be shown */
        XDestroyWindow(obt_display, self->bg);
        XDestroyWindow(obt_display, self->text);
        RrAppearanceFree(self->a_bg);
        RrAppearanceFree(self->a_text);
        window_remove(self->bg);
        stacking_remove(self);
        g_slice_free(ObPopup, self);
    }
}
Beispiel #2
0
void menu_frame_free(ObMenuFrame *self)
{
    if (self) {
        while (self->entries) {
            menu_entry_frame_free(self->entries->data);
            self->entries = g_list_delete_link(self->entries, self->entries);
        }

        stacking_remove(MENUFRAME_AS_WINDOW(self));
        window_remove(self->window);

        RrAppearanceFree(self->a_items);

        XDestroyWindow(obt_display, self->window);

        g_slice_free(ObMenuFrame, self);
    }
}