- table = gtk_table_new (5, 5, FALSE);
- gtk_widget_show (table);
- gtk_box_pack_start (GTK_BOX (hbox), table, FALSE, FALSE, 0);
- for (i = 0; i < 12; ++i) {
- screen_position[i] = gtk_toggle_button_new ();
- gtk_widget_show (screen_position[i]);
-
- if (i <= 2 || i >= 9)
- gtk_widget_set_size_request (screen_position[i], 30, 15);
- else
- gtk_widget_set_size_request (screen_position[i], 15, 25);
-
-// g_signal_connect (G_OBJECT (screen_position[i]), "button-press-event", G_CALLBACK (screen_position_pressed));
-// g_signal_connect (G_OBJECT (screen_position[i]), "key-press-event", G_CALLBACK (screen_position_pressed));
- }
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[0], 1, 2, 0, 1);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[1], 2, 3, 0, 1);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[2], 3, 4, 0, 1);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[3], 0, 1, 1, 2);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[4], 0, 1, 2, 3);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[5], 0, 1, 3, 4);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[6], 4, 5, 1, 2);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[7], 4, 5, 2, 3);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[8], 4, 5, 3, 4);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[9], 1, 2, 4, 5);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[10], 2, 3, 4, 5);
- gtk_table_attach_defaults (GTK_TABLE (table), screen_position[11], 3, 4, 4, 5);
-