[nautilus] pathbar: don't set use-markup before resetting the label



commit 389845f1f6e175212554aba7645ce728f0a8f7ec
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 12 16:41:08 2012 -0400

    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).

 src/nautilus-pathbar.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index bb1d680..6fcd51a 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]