]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Privatize view_append_children()
authorJohan Malm <jgm323@gmail.com>
Fri, 26 Sep 2025 18:21:34 +0000 (19:21 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 29 Sep 2025 19:22:46 +0000 (20:22 +0100)
include/view.h
src/view.c

index 0970bb020a02de42fe76b5654c472b2066348b49..ba6625505c44b662ee4d1b6ca83efa7212d1a920 100644 (file)
@@ -553,7 +553,6 @@ void view_move_to_output(struct view *view, struct output *output);
 
 void view_move_to_front(struct view *view);
 void view_move_to_back(struct view *view);
-void view_append_children(struct view *view, struct wl_array *children);
 
 /**
  * view_get_modal_dialog() - returns any modal dialog found among this
index 29736b80136a00ec352b86cb3c3d7740ce955022..792401cfdbc168f8b58c931073d5e5b7f7808f85 100644 (file)
@@ -808,6 +808,15 @@ _minimize(struct view *view, bool minimized)
        }
 }
 
+static void
+view_append_children(struct view *view, struct wl_array *children)
+{
+       assert(view);
+       if (view->impl->append_children) {
+               view->impl->append_children(view, children);
+       }
+}
+
 static void
 minimize_sub_views(struct view *view, bool minimized)
 {
@@ -2337,15 +2346,6 @@ view_move_to_back(struct view *view)
        desktop_update_top_layer_visibility(view->server);
 }
 
-void
-view_append_children(struct view *view, struct wl_array *children)
-{
-       assert(view);
-       if (view->impl->append_children) {
-               view->impl->append_children(view, children);
-       }
-}
-
 struct view *
 view_get_modal_dialog(struct view *view)
 {