mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
67649763b6
We can use ::destroy in most cases.
27 lines
491 B
C
27 lines
491 B
C
#include <gtk/gtk.h>
|
|
#define GTK_COMPILATION
|
|
#include "gtk/gtkplacesviewprivate.h"
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
GtkWidget *win;
|
|
GtkWidget *view;
|
|
|
|
gtk_init ();
|
|
|
|
win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
|
gtk_window_set_default_size (GTK_WINDOW (win), 400, 600);
|
|
|
|
view = gtk_places_view_new ();
|
|
|
|
gtk_container_add (GTK_CONTAINER (win), view);
|
|
gtk_widget_show (win);
|
|
|
|
g_signal_connect (win, "destroy", G_CALLBACK (gtk_main_quit), win);
|
|
|
|
gtk_main ();
|
|
|
|
return 0;
|
|
}
|