int main(int argc, char **argv) { List *a = create_fixed(6); List *b = create_fixed(6); delall_recur(a); delall_recur(b); a->n->n = NULL; b->n->n = NULL; return 1; }
int main(int argc, char **argv) { List *a = create_fixed(6); List *b = create_fixed(6); insert_iter(a, 3); insert_iter(b, 4); a->n->n = NULL; b->n->n = NULL; return 1; }
int main(int argc, char **argv) { List *a = create_fixed(6); List *b = create_fixed(6); List *rev_a = reverse_iter(a); a->n->n = NULL; b->n->n = NULL; rev_a->n->n = NULL; return 1; }
int main(int argc, char **argv) { List *head = create_fixed(6); insert_iter(head, 3); return 1; }
int main(int argc, char **argv) { List *head = create_fixed(6); remove_iter(head, 4); return 1; }
int main(int argc, char **argv) { List *head = create_fixed(6); delall_iter(head); return 1; }
GtkWidget * create_grabs_page (void) { GtkWidget *vbox, *grid, *label; vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4); g_object_set (vbox, "margin", 4, NULL); gtk_widget_show (vbox); label = gtk_label_new ("Move the mouse over the widgets and canvas items on the right to see what events they receive.\nClick buttons to start explicit or implicit pointer grabs and see what events they receive now.\n(They should all receive the same events.)"); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE); gtk_widget_show (label); grid = gtk_grid_new (); g_object_set (grid, "margin", 12, NULL); gtk_grid_set_row_spacing (GTK_GRID (grid), 12); gtk_grid_set_column_spacing (GTK_GRID (grid), 12); gtk_box_pack_start (GTK_BOX (vbox), grid, FALSE, FALSE); g_object_set (grid, "halign", GTK_ALIGN_CENTER, NULL); gtk_widget_show (grid); /* Drawing area with explicit grabs. */ create_fixed (GTK_GRID (grid), 1, "Widget with Explicit Grabs:", "widget-explicit"); /* Drawing area with implicit grabs. */ create_fixed (GTK_GRID (grid), 2, "Widget with Implicit Grabs:", "widget-implicit"); /* Canvas with explicit grabs. */ create_canvas (GTK_GRID (grid), 3, "Canvas with Explicit Grabs:", "canvas-explicit"); /* Canvas with implicit grabs. */ create_canvas (GTK_GRID (grid), 4, "Canvas with Implicit Grabs:", "canvas-implicit"); return vbox; }
GtkWidget * create_grabs_page (void) { GtkWidget *table, *label; table = gtk_table_new (5, 2, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table), 12); gtk_table_set_row_spacings (GTK_TABLE (table), 12); gtk_table_set_col_spacings (GTK_TABLE (table), 12); gtk_widget_show (table); label = gtk_label_new ("Move the mouse over the widgets and canvas items on the right to see what events they receive.\nClick buttons to start explicit or implicit pointer grabs and see what events they receive now.\n(They should all receive the same events.)"); gtk_table_attach (GTK_TABLE (table), label, 0, 2, 0, 1, 0, 0, 0, 0); gtk_widget_show (label); /* Drawing area with explicit grabs. */ create_fixed (GTK_TABLE (table), 1, "Widget with Explicit Grabs:", "widget-explicit"); /* Drawing area with implicit grabs. */ create_fixed (GTK_TABLE (table), 2, "Widget with Implicit Grabs:", "widget-implicit"); /* Canvas with explicit grabs. */ create_canvas (GTK_TABLE (table), 3, "Canvas with Explicit Grabs:", "canvas-explicit"); /* Canvas with implicit grabs. */ create_canvas (GTK_TABLE (table), 4, "Canvas with Implicit Grabs:", "canvas-implicit"); return table; }