forked from AuroraMiddleware/gtk
box: Remove unnecessary code
gtk_widget_insert_after() reorders CSS nodes properly.
This commit is contained in:
parent
d9b216e629
commit
d77902365d
@ -58,7 +58,6 @@
|
|||||||
#include "gtkbox.h"
|
#include "gtkbox.h"
|
||||||
#include "gtkboxlayout.h"
|
#include "gtkboxlayout.h"
|
||||||
#include "gtkbuildable.h"
|
#include "gtkbuildable.h"
|
||||||
#include "gtkcsspositionvalueprivate.h"
|
|
||||||
#include "gtkintl.h"
|
#include "gtkintl.h"
|
||||||
#include "gtkorientable.h"
|
#include "gtkorientable.h"
|
||||||
#include "gtkprivate.h"
|
#include "gtkprivate.h"
|
||||||
@ -504,9 +503,6 @@ gtk_box_insert_child_after (GtkBox *box,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
gtk_widget_insert_after (child, widget, 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -542,9 +538,6 @@ gtk_box_reorder_child_after (GtkBox *box,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
gtk_widget_insert_after (child, widget, 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user