This repository has been archived on 2025-09-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
alsa-scarlett-gui/src/gtkhelper.c
Geoffrey D. Bennett b2823e79be Bump copyright year
2024-02-08 18:08:34 +10:30

27 lines
775 B
C

// SPDX-FileCopyrightText: 2022-2024 Geoffrey D. Bennett <g@b4.vu>
// SPDX-License-Identifier: GPL-3.0-or-later
#include "gtkhelper.h"
void gtk_widget_set_margin(GtkWidget *w, int margin) {
gtk_widget_set_margin_top(w, margin);
gtk_widget_set_margin_bottom(w, margin);
gtk_widget_set_margin_start(w, margin);
gtk_widget_set_margin_end(w, margin);
}
void gtk_widget_set_expand(GtkWidget *w, gboolean expand) {
gtk_widget_set_hexpand(w, expand);
gtk_widget_set_vexpand(w, expand);
}
void gtk_widget_set_align(GtkWidget *w, GtkAlign x, GtkAlign y) {
gtk_widget_set_halign(w, x);
gtk_widget_set_valign(w, y);
}
void gtk_grid_set_spacing(GtkGrid *grid, int spacing) {
gtk_grid_set_row_spacing(grid, spacing);
gtk_grid_set_column_spacing(grid, spacing);
}