[gtk+] pathbar: Order button CSS nodes right



commit c6834a002ffbc39216c39bd3592571d73ad8f1bd
Author: Benjamin Otte <otte redhat com>
Date:   Thu Mar 17 13:50:05 2016 +0100

    pathbar: Order button CSS nodes right
    
    The previous code ordered them the wrong way, so the first button (from
    a CSS pov) was the last visible one.

 gtk/gtkpathbar.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 83396a0..c626a3e 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1618,16 +1618,16 @@ gtk_path_bar_set_file_finish (struct SetFileInfo *info,
       gtk_path_bar_clear_buttons (info->path_bar);
       info->path_bar->priv->button_list = g_list_reverse (info->new_buttons);
       info->path_bar->priv->fake_root = info->fake_root;
-      prev = gtk_widget_get_css_node (info->path_bar->priv->up_slider_button);
+      prev = gtk_widget_get_css_node (info->path_bar->priv->down_slider_button);
 
       for (l = info->path_bar->priv->button_list; l; l = l->next)
        {
          GtkWidget *button = BUTTON_DATA (l->data)->button;
           GtkCssNode *node = gtk_widget_get_css_node (button);
 
-          gtk_css_node_insert_after (gtk_widget_get_css_node (GTK_WIDGET (info->path_bar)),
-                                     node,
-                                     prev);
+          gtk_css_node_insert_before (gtk_widget_get_css_node (GTK_WIDGET (info->path_bar)),
+                                      node,
+                                      prev);
          gtk_container_add (GTK_CONTAINER (info->path_bar), button);
           prev = node;
        }


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