summaryrefslogtreecommitdiff
path: root/src/nautilus-gtk4-helpers.h
blob: 201183c1569d3db0bfbc0abcb77e19a75098d4a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include <glib.h>
#include <gio/gio.h>
#include <gtk/gtk.h>

G_BEGIN_DECLS
#if GTK_MAJOR_VERSION < 4

void gtk_button_set_child          (GtkButton         *button,
                                    GtkWidget         *child);
void gtk_box_append                (GtkBox            *box,
                                    GtkWidget         *child);
void gtk_box_remove                (GtkBox            *box,
                                    GtkWidget         *child);
void gtk_overlay_set_child         (GtkOverlay        *overlay,
                                    GtkWidget         *child);
void gtk_scrolled_window_set_child (GtkScrolledWindow *scrolled_window,
                                    GtkWidget         *child);
void gtk_list_box_row_set_child    (GtkListBoxRow     *row,
                                    GtkWidget         *child);
void gtk_info_bar_add_child        (GtkInfoBar        *info_bar,
                                    GtkWidget         *widget);
void gtk_revealer_set_child        (GtkRevealer       *revealer,
                                    GtkWidget         *child);

GtkWidget *gtk_widget_get_first_child (GtkWidget *widget);

#endif
G_END_DECLS