File: test-bin.c

package info (click to toggle)
libdazzle 3.44.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,964 kB
  • sloc: ansic: 64,328; xml: 69; javascript: 19; makefile: 12
file content (29 lines) | stat: -rw-r--r-- 861 bytes parent folder | download | duplicates (5)
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
#include <dazzle.h>

gint
main (gint argc,
      gchar *argv[])
{
  GtkWindow *win;

  gtk_init (&argc, &argv);

  win = g_object_new (GTK_TYPE_WINDOW,
                      "title", "Test Bin",
                      NULL);
  gtk_container_add (GTK_CONTAINER (win),
                     g_object_new (DZL_TYPE_BIN,
                                   "visible", TRUE,
                                   "child", g_object_new (GTK_TYPE_LABEL,
                                                          "label", "Some label for the bin",
                                                          "visible", TRUE,
                                                          NULL),
                                   NULL)
                     );

  g_signal_connect (win, "delete-event", gtk_main_quit, NULL);
  gtk_window_present (win);
  gtk_main ();

  return 0;
}