/**
* SECTION:hildon-button
- * @short_description: Widget representing a button in the Hildon framework.
+ * @short_description: Two-label buttons in the Hildon framework.
*
- * The #HildonButton is a GTK widget which represents a clickable
- * button. It is derived from the #GtkButton widget and provides
+ * The #HildonButton is a clickable button for Hildon applications.
+ * It is derived from the #GtkButton widget and provides
* additional commodities specific to the Hildon framework.
*
* The height of a #HildonButton can be set to either "finger" height
*
* This will clear any previously set title.
*
- * If @title is set to %NULL, the title label will be hidden and the
- * value label will be realigned.
+ * If @title is set to %NULL or an empty string, the title label will
+ * be hidden and the value label will be realigned.
*
* Since: 2.2
**/
/* If the button has no title, hide the label so the value is
* properly aligned */
- if (title) {
+ if (title && title[0] != '\0') {
hildon_button_construct_child (button);
gtk_widget_show (GTK_WIDGET (priv->title));
} else {
*
* This will clear any previously set value.
*
- * If @value is set to %NULL, the value label will be hidden and the
- * title label will be realigned.
+ * If @value is set to %NULL or an empty string, the value label will
+ * be hidden and the title label will be realigned.
*
* Since: 2.2
**/
/* If the button has no value, hide the label so the title is
* properly aligned */
- if (value) {
+ if (value && value[0] != '\0') {
hildon_button_construct_child (button);
gtk_widget_show (GTK_WIDGET (priv->value));
} else {