X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=e081bd7a1122a84ab6e5991a0c0a45cbaee971b0;hb=cf79064032c57731c50c694ee83c22312976940d;hp=4717ec8c725dce8633fd349ab238dd3c1ec2f0e3;hpb=b3aa041011ed35a56b886c71666520a63f121a8e;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 4717ec8..e081bd7 100644 --- a/xoptions.c +++ b/xoptions.c @@ -1075,7 +1075,7 @@ static int SameRow (Option *opt) { return (opt->min & SAME_ROW && (opt->type == Button || opt->type == SaveButton || opt->type == Label - || opt->type == ListBox || opt->type == BoxBegin)); + || opt->type == ListBox || opt->type == BoxBegin || opt->type == Icon)); } static void @@ -1299,6 +1299,11 @@ printf("n=%d, h=%d, w=%d\n",n,height,width); gtk_table_attach(GTK_TABLE(table), checkbutton, left, left+r, top, top+1, GTK_FILL | GTK_EXPAND, GTK_FILL, 2, 0); option[i].handle = (void *)checkbutton; break; + case Icon: + option[i].handle = (void *) (label = gtk_image_new_from_pixbuf(NULL)); + gtk_widget_set_size_request(label, option[i].max ? option[i].max : -1, -1); + Pack(hbox, table, label, left, left+2, top, 0); + break; case Label: option[i].handle = (void *) (label = gtk_label_new(option[i].name)); /* Left Justify */