summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-07-15 05:29:41 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-07-15 05:29:41 +0000
commitb0ac0f978e05a1b13368dfef8f8f1724c776851f (patch)
tree505d7581d33db94db426818fa9143d44401c7754 /gtk/gtkfilechooserbutton.c
parentbae6c5576f46fa540e8ff6eee6da44dfd5de0c36 (diff)
downloadgtk+-b0ac0f978e05a1b13368dfef8f8f1724c776851f.tar.gz
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
Diffstat (limited to 'gtk/gtkfilechooserbutton.c')
-rw-r--r--gtk/gtkfilechooserbutton.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 5647ccc30c..1967d4989f 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -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 */