[gtk/wip/otte/for-master: 4/8] listitemwidget: Remove unnecessary code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 4/8] listitemwidget: Remove unnecessary code
- Date: Tue, 20 Oct 2020 02:52:34 +0000 (UTC)
commit 074d54ef5a552e2fba155b541fad1687a2cd8734
Author: Benjamin Otte <otte redhat com>
Date: Tue Oct 20 03:54:07 2020 +0200
listitemwidget: Remove unnecessary code
gtk_widget_insert_after() reorders CSS nodes properly.
gtk/gtklistitemwidget.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/gtk/gtklistitemwidget.c b/gtk/gtklistitemwidget.c
index 8f6a5c5633..ea601be4d5 100644
--- a/gtk/gtklistitemwidget.c
+++ b/gtk/gtklistitemwidget.c
@@ -22,7 +22,6 @@
#include "gtklistitemwidgetprivate.h"
#include "gtkbinlayout.h"
-#include "gtkcssnodeprivate.h"
#include "gtkeventcontrollerfocus.h"
#include "gtkeventcontrollermotion.h"
#include "gtkgestureclick.h"
@@ -636,12 +635,7 @@ gtk_list_item_widget_reorder_child (GtkListItemWidget *self,
}
if (child != sibling)
- {
- gtk_widget_insert_after (child, widget, sibling);
- gtk_css_node_insert_after (gtk_widget_get_css_node (widget),
- gtk_widget_get_css_node (child),
- sibling ? gtk_widget_get_css_node (sibling) : NULL);
- }
+ gtk_widget_insert_after (child, widget, sibling);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]