Unset the image when the label is set to "(None)". Reported by Neil

* gtk/gtkfilechooserbutton.c (update_label_and_image): Unset
        the image when the label is set to "(None)". Reported by
        Neil Roberts


svn path=/trunk/; revision=20833
This commit is contained in:
Matthias Clasen 2008-07-15 05:29:41 +00:00
parent bae6c5576f
commit b0ac0f978e
2 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,12 @@
2008-07-15 Matthias Clasen <mclasen@redhat.com>
Bug 488766 GtkFileChooserButton doesn't clear icon after
gtk_file_chooser_unselect_all
* gtk/gtkfilechooserbutton.c (update_label_and_image): Unset
the image when the label is set to "(None)". Reported by
Neil Roberts
* tests/testfilechooserbutton.c: Add an "Unselect all" button.
2008-07-15 Matthias Clasen <mclasen@redhat.com>

View File

@ -2387,12 +2387,15 @@ out:
g_free (label_text);
}
else
gtk_label_set_text (GTK_LABEL (priv->label), _(FALLBACK_DISPLAY_NAME));
{
gtk_label_set_text (GTK_LABEL (priv->label), _(FALLBACK_DISPLAY_NAME));
gtk_image_set_from_pixbuf (GTK_IMAGE (priv->image), NULL);
}
}
/* ************************ *
* Child Object Callbacks *
/* Child Object Callbacks *
* ************************ */
/* File System */