frame and a spinner with gtk_table_attach to cell - question



Wednesday, January 30

Hello,

If I put a spinner in a frame in a table cell with gtk_table_attach it
unfortunately overlaps and looks garbled :(

How should I do this so that they don't overlap within the same cell ?

Here's what I'm doing now.

.... snippet ...

/* the frame */
mvfr = gtk_frame_new("test radio");
gtk_table_attach(GTK_TABLE(table), mvfr, 0, 1, 0, 1, 
  GTK_SHRINK, GTK_EXPAND, 4, 4);

/* the spinner */
fxadj = (GtkAdjustment *)gtk_adjustment_new(1.0, 1.0, 100.0, 1.0, 1.0, 0.0);
fxspinner = gtk_spin_button_new(fxadj, 0, 0);
gtk_spin_button_set_wrap(GTK_SPIN_BUTTON(fxspinner), TRUE);
gtk_table_attach(GTK_TABLE(table), fxspinner, 0, 1, 0, 1, 
  GTK_SHRINK, GTK_EXPAND, 4, 4);

Thanks for any possible suggestions.

K.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]