2006-09-19 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ * hildon-widgets/hildon-caption.c: Do not draw the focus border when
+ the label has no text set. Fixes #NB40649.
+ Also fixing some memory leaks in properties setting.
+
+2006-09-19 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+
* hildon-widgets/hildon-time-editor.c:
(hildon_time_editor_entry_clicked): This function has been
removed. It is not needed any more.
/* If our child control is focused, we draw nice looking focus
graphics for the caption */
- if ( priv->is_focused )
+ if ( priv->is_focused && priv->text )
{
/* Determine focus box dimensions */
gtk_widget_get_child_requisition( priv->caption_area, &req );
}
/* Update label */
- priv->text = g_strdup( g_value_get_string(value) );
+ priv->text = g_value_get_string(value);
hildon_caption_set_label_text( priv );
break;
priv->separator = NULL;
}
- priv->separator = g_strdup( g_value_get_string(value) );
+ priv->separator = g_value_get_string(value);
hildon_caption_set_label_text( priv );
break;
priv->icon = NULL;
priv->group = NULL;
priv->is_focused = FALSE;
+ priv->text = NULL;
priv->separator = g_strdup(_("ecdg_ti_caption_separator"));