summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-03-12 16:41:08 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-03-12 16:41:08 -0400
commit389845f1f6e175212554aba7645ce728f0a8f7ec (patch)
tree333f434875f5336d719ee45359c057ccc19452c3
parent799514c57003d174b466c1fbf262f1229cf9d9df (diff)
downloadnautilus-389845f1f6e175212554aba7645ce728f0a8f7ec.tar.gz
pathbar: don't set use-markup before resetting the label
If the label contains markup text, setting use_markup before resetting the text can spawn a warning (and we're resetting the label text right afterwards anyway).
-rw-r--r--src/nautilus-pathbar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index bb1d680e8..6fcd51a35 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -1350,7 +1350,8 @@ nautilus_path_bar_update_button_state (ButtonData *button_data,
gboolean current_dir)
{
if (button_data->label != NULL) {
- g_object_set (button_data->label, "use-markup", current_dir, NULL);
+ gtk_label_set_label (GTK_LABEL (button_data->label), NULL);
+ gtk_label_set_use_markup (GTK_LABEL (button_data->label), current_dir);
}
nautilus_path_bar_update_button_appearance (button_data);