Free the finish data.
2000-06-02 Christopher James Lahey <clahey@helixcode.com> * widgets/misc/e-clipped-label.c: Free the finish data. svn path=/trunk/; revision=3384
This commit is contained in:
committed by
Chris Lahey
parent
cf4ea01866
commit
f6d3bfae53
@ -1,3 +1,7 @@
|
||||
2000-06-02 Christopher James Lahey <clahey@helixcode.com>
|
||||
|
||||
* widgets/misc/e-clipped-label.c: Free the finish data.
|
||||
|
||||
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
|
||||
|
||||
* tests/test-movemail.c (main): Don't call e_setup_base_dir.
|
||||
|
||||
@ -48,6 +48,7 @@ static void e_clipped_label_size_allocate (GtkWidget *widget,
|
||||
static gint e_clipped_label_expose (GtkWidget *widget,
|
||||
GdkEventExpose *event);
|
||||
static void e_clipped_label_recalc_chars_displayed (EClippedLabel *label);
|
||||
static void e_clipped_label_destroy (GtkObject *object);
|
||||
|
||||
|
||||
static GtkMiscClass *parent_class;
|
||||
@ -100,6 +101,8 @@ e_clipped_label_class_init (EClippedLabelClass *class)
|
||||
widget_class->size_allocate = e_clipped_label_size_allocate;
|
||||
widget_class->expose_event = e_clipped_label_expose;
|
||||
|
||||
object_class->destroy = e_clipped_label_destroy;
|
||||
|
||||
e_clipped_label_ellipsis = _("...");
|
||||
}
|
||||
|
||||
@ -248,6 +251,20 @@ e_clipped_label_expose (GtkWidget *widget,
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
e_clipped_label_destroy (GtkObject *object)
|
||||
{
|
||||
EClippedLabel *label;
|
||||
|
||||
g_return_if_fail (E_IS_CLIPPED_LABEL (object));
|
||||
|
||||
label = E_CLIPPED_LABEL(object);
|
||||
|
||||
g_free (label->label);
|
||||
g_free (label->label_wc);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* e_clipped_label_get_text:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user