g_free(t->text);
XDestroyWindow(obt_display, t->iconwin);
XDestroyWindow(obt_display, t->textwin);
- g_free(t);
+ g_slice_free(ObFocusCyclePopupTarget, t);
popup.targets = g_list_delete_link(popup.targets, popup.targets);
}
g_free(t->text);
XDestroyWindow(obt_display, t->iconwin);
XDestroyWindow(obt_display, t->textwin);
- g_free(t);
+ g_slice_free(ObFocusCyclePopupTarget, t);
}
static gboolean popup_setup(ObFocusCyclePopup *p, gboolean create_targets,
g_free(text);
} else {
ObFocusCyclePopupTarget *t =
- g_new(ObFocusCyclePopupTarget, 1);
+ g_slice_new(ObFocusCyclePopupTarget);
t->client = ft;
t->text = text;
gint ml, mt, mr, mb;
gint l, t, r, b;
gint x, y, w, h;
- Rect *screen_area = NULL;
+ const Rect *screen_area = NULL;
gint i;
GList *it;
const ObFocusCyclePopupTarget *newtarget;
p->last_target = newtarget;
- g_free(screen_area);
-
XFlush(obt_display);
}
/* do this stuff only when the dialog is first showing */
if (!popup.mapped) {
- Rect *a;
+ const Rect *a;
popup_setup(&popup, FALSE, FALSE);
g_assert(popup.targets == NULL);
icon_popup_min_width(single_popup, POPUP_WIDTH);
icon_popup_max_width(single_popup, MAX(a->width/3, POPUP_WIDTH));
icon_popup_text_width(single_popup, popup.maxtextw);
- g_free(a);
}
text = popup_get_name(c);