gnome-control-center/panels/mouse/test-gnome-mouse-test.c
Georges Basile Stavracas Neto 25edfb4a4b mouse: Port to GTK4
This one is an interesting case. It was easier to simply switch
to AdwPreferencesPage than actually port all the GtkFrames in
there.

In addition to that, the mouse test page now uses a GtkPicture
instead of a GtkImage, and the GtkDrawingArea API changes are
reflected in the code.
2021-12-14 22:34:21 -03:00

24 lines
486 B
C

#include <config.h>
#include <gtk/gtk.h>
#include "cc-mouse-resources.h"
#include "cc-mouse-test.h"
int main (int argc, char **argv)
{
GtkWidget *widget;
GtkWidget *window;
gtk_init ();
widget = cc_mouse_test_new ();
window = gtk_window_new ();
gtk_window_set_child (GTK_WINDOW (window), widget);
gtk_window_present (GTK_WINDOW (window));
while (g_list_model_get_n_items (gtk_window_get_toplevels ()) > 0)
g_main_context_iteration (NULL, TRUE);
return 0;
}