Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void drawBoard(GtkWidget* table, GtkWidget** entries[][9])
- {
- for(last_i=1; last_i<10; last_i++)
- {
- for(last_j=1; last_j<10; last_j++)
- {
- addField(entries[last_i][last_j],table);
- gtk_entry_set_width_chars(entries[last_i][last_j], 2); //<-- w tym miejscu program siÄ™ wysypuje
- }
- }
- }
- void addField(GtkWidget* field, GtkWidget *table)
- {
- field = gtk_entry_new_with_max_length(1);
- gtk_table_attach_defaults (GTK_TABLE (table), field, last_j-1, last_j, last_i-1, last_i);
- //reszta funkcji
- }
- int main(){
- GtkWidget *entries[9][9];
- drawBoard(table, entries);
- }
Advertisement
Add Comment
Please, Sign In to add comment